There are various ways to check whether the current environment is APF 
authorized. For example, the TESTAUTH macro will give a return code to indicate 
APF or not. No abend, just yay or nay. Given how simple it is to issue D 
PROG,APF, I for one would object to an IBM project for returning detail info to 
a running program. 

APF authorization does not come or go willy-nilly. Once a process is 
established in production, nothing should change. If something does change, it 
should not take long to figure out what. (Who and why is a whole nother can of 
worms.) 

Also note at AC(1) is not required for every APF program. Only the first 
program--PGM=xxxxxx--in a chain needs to be marked AC(1). IBM has always 
recommended that *only* the first program in a call chain be marked AC(1). The 
others should be AC(0). 

The fundamental difficulty of displaying/presenting the concatenation sequence 
goes to the heart of program fetch and DEB management in general. The mapping 
for a concatenation consists of a series of track extents for input I/O; VOLSER 
identity is not part of the map. The APF indication is set--or unset--as each 
library is opened. Once the DEB is built, volume boundaries are no longer 
available.

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-302-7535 Office
[email protected]

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Charles Mills
Sent: Friday, November 18, 2016 9:11 AM
To: [email protected]
Subject: (External):Re: Which STEPLIB concatenation is not authorized?

Thanks all ...

Various responses:

- I know AC(1) is not sufficient for authorization, but AC(0) is sufficient for 
a lack of authorization, so given my problem of "tell the customer everything 
that is wrong" it would be one thing you would want to tell the customer. (The 
least likely cause in my experience because they just install, they don't 
compose linkedit control cards.)

- Yes, authorized on some other volume or SMS/not is a real likely possibility 
but if I can just tell them STEPLIB(+2) is not authorized it would be a huge 
step forward.

- No, "check the libraries against the output from 'D PROG,APF'" is not the 
easiest way from within a program, and outside of a program is subject to 
eyeball faults.

- argv[0] is available in my universe

- Bin's answer is kind of what I feared. Possibly more complexity than I want 
to take on for what is not really a software problem.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Tom Marchant
Sent: Friday, November 18, 2016 5:38 PM
To: [email protected]
Subject: Re: Which STEPLIB concatenation is not authorized?

On Fri, 18 Nov 2016 14:26:38 +0200, Binyamin Dissen wrote:

>Use the normal services (SWAREQ, RDJFCB, etc.) to get the 
>DSNAMES/VOLSERs of the STEPLIB libraries, and then
>
>              CSVAPF REQUEST=QUERY


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to