You can in Rexx and SDSF , we do it via our DevOPS process we use from bitbucket where our source and CI processes are stored. It takes some work..but works well,
Scott On Thu, Aug 16, 2018 at 3:13 PM Paul Gilmartin < [email protected]> wrote: > On Thu, 16 Aug 2018 11:26:14 -0500, Kirk Wolf wrote: > > > >You don't need to use the SSI to read a spool data set, although you do > >need a way to get the JES SSID and jobid (like from the current JSAB). > > > >It is not too complicated: you just allocate it using SVC99 (and some > >special purpose keys) and open the DD with either a DCB or ACB. > >See Chapter 2 in "z/OS JES Application Programming" - JES Spool Data Set > >Browse > > > Is the Rexx API to SDSF available outside TSO? E.g. in IRXJCL? > (The hard part may be discovering your own JOBID.) > > > >PS> You can use our free Co:Z Utilities in batch to read any spool file > and > >pass the data to your program. > >For example: > > > >//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 > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- Scott Ford IDMWORKS z/OS Development ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
