Hi Gil, JCL is stored in a file and is read by EXECIO. Regards, David
________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Paul Gilmartin <[email protected]> Sent: Thursday, August 3, 2023 3:53:05 p.m. To: [email protected] <[email protected]> Subject: Re: Accessing JCL SETs in Rexx On Thu, 3 Aug 2023 19:21:27 +0000, David Spiegel wrote: > >My intention is to read a Job and make sure that all datasets are available, >but, the dsnames contain SET variables. > By "read a Job" do you mean that JCL resides in a file or PDS member and you want to read that JCL with EXECIO or linein() and identify all data set names in equivalent JCL having substituted values in its SET statements? I doubt that you can do that without writing your own parser/interpreter. But perhaps TYPRUN=HOLD and scan the JESJCL with the SDSF API. -- gil ---------------------------------------------------------------------- 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
