On 11/21/2016 8:27 AM, Charles Mills wrote:
Exactly. That is what I intend to do.
Charles
John McKown wrote:
THE PRODUCT IS NOT APF AUTHORIZED DUE TO THE DSN=SOME.NONAPF.LIBRARY ON VOLUME
volser BEING ON THE STEPLIB/JOBLIB​. DSN=SOME.NONAPF.LIBRARY ON volser IS NOT
APF AUTHORIZED.
... or migrated or is not SMS, not cataloged, etc.
I love this idea!!!
However, it's not trivial to determine from where you were loaded. It
could be STEPLIB/JOBLIB, it could be LPA, it could be LNKLST. CSVQUERY
does have an ability to return a token that can, through some complex
and circuitous logic, actually map back to a data set name or HFS path,
but it's not easy and I have a nagging suspicion that at least part of
that processing requires authorization.
IMHO, we need an enhancement to CSVQUERY/CSVINFO (as appropriate) to
return the fully-qualified data set name and volume and/or HFS path from
which a module was actually fetched. (If it came from VLF, that
information would need to be preserved at the time the module is cached
so it can be provided to CSV.)
Of course, there is an implied assumption here that you're invoking
TESTAUTH from inside the program referenced by EXEC PGM=. If not, you
would first need to determine which program name that is. (It's not
difficult, but it is an extra step...)
--
Edward E Jaffe
Phoenix Software International, Inc
831 Parkview Drive North
El Segundo, CA 90245
http://www.phoenixsoftware.com/
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN