FYI, here's a job step that uses Co:Z to read and process its own JCL in a
shell script
//SHELL EXEC PGM=COZBATCH
//STDIN DD * # Run z/OS UNIX login shell
# get the 8 character jobid of the current job
jobid=$(echo $JES_SYS_CORR_CURRJOB | cut -c1-8)
fromdsn -jes.$jobid.jesjclin |
awk myreport.awk # or your program that reads from /dev/stdin
//
On Wed, Apr 10, 2019 at 12:45 AM Klaus Stanislawiak <
[email protected]> wrote:
> David,
>
> You could use the Spool Data Set Browse function to read the JESJCLIN data
> set for the job. Please have a look at:
>
> https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.hasc300/daldsnam.htm
>
> Regards,
> Klaus Stanislawiak
>
> ----------------------------------------------------------------------
> 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