"THIS IS NOT A LISTSERV COMMAND"

(in response to:

Your  message is  being returned  to you  unprocessed because  it looks  like a
LISTSERV command, rather than material intended for distribution to the members
of the IBM-MAIN list. Please note that LISTSERV commands must always be sent to
the LISTSERV address. If it was indeed  a command you were attempting to issue,
then send it again to [email protected] for execution. Otherwise, please
accept our apologies  and try to rewrite the message  with a slightly different
wording -  for instance, change  the first word of  the message, enclose  it in
quotation marks, insert a line of dashes at the beginning of your message, etc.

)

//*-------------------------------------------------------------------*
//* APF-AUTHORISE OUR STEPLIB DATASET(S)                              *
//*-------------------------------------------------------------------*
//ADDAPF EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //SYSUT2 DD SYSOUT=(*,INTRDR) //SYSUT1 DD *,DLM=@@ /*$VS,'SETPROG APF,ADD,DSN=<your loadlib DSN>,SMS' @@ //*
//*-------------------------------------------------------------------*
//* RUN PROGRAM WHATEVER APF-AUTHORISED                               *
//*-------------------------------------------------------------------*
//WHATEVER EXEC PGM=WHATEVER
//STEPLIB   DD DISP=SHR,DSN=<your loadlib DSN>
//DD1       DD DISP=SHR,DSN=<whatever #1>
//DD...     DD DISP=SHR,DSN=<whatever #...>
//DDn       DD DISP=SHR,DSN=<whatever #n>
//* //*-------------------------------------------------------------------*
//* APF-UNAUTHORISE OUR STEPLIB DATASET(S)                            *
//*-------------------------------------------------------------------*
//DELAPF EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //SYSUT2 DD SYSOUT=(*,INTRDR) //SYSUT1 DD *,DLM=@@ /*$VS,'SETPROG APF,DELETE,DSN=<your loadlib DSN>,SMS' @@ //* In ADDAPF and DELAPF above, replace ",SMS" with ",VOLUME=<volser of your loadlib>" if the loadlib to be APF'd is not SMS-managed.

If the format of the APF list is static, add the following card before the 1st "/*$VS,'SETPROG APF,ADD,DSN=<etc.>" card in step ADDAPF:
/*$VS,'SETPROG APF,FORMAT=DYNAMIC'

Cheers, CP


mf db wrote:

Hello All,

I am looking for some pointer on a way to APF a Program during JCL run time
alone. Is there a facility within z/OS which helps in Authorizing a program.

For example

//STEP1 EXEC PGM=PLADB2
//STEPLIB DD DSN=XX.XX.XX,DISP=SHR


Z/OS : 1.13

Peter

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



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

Reply via email to