There's no way to do it in a single job. Could you instead dynamically allocate the files?
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Steve Estle <[email protected]> Sent: Friday, August 16, 2024 9:27 AM To: [email protected] Subject: Ability to pass symbolic variable back from REXX to JCL? Hello All, I know we have a lot of REXX coders / developers on here so putting this out as a "is this possible" question. Scenario: A recent effort brought a question to light. We have a home grown REXX routine that dynamically generates dataset names and saves JES job spool dataset off using IOF product routines. The dataset name generated is unique as it includes jobname, jobnumber, and Julian date, timestamp in the dynamically generated dataset name which occurs withing thisi REXX routine (we call it BTCHSAVE). I'd like the ability to access this dynamically generated dataset name as a JCL symbolic variable for subsequent downstream job steps. Is there any way that REXX variables can be somehow be shared / passed back to batch job JCL routine such that the dynamically generated dataset name can be used in subsequent steps of the job? Let me know if anyone has tried to do this or not - possibly a future IDEA for IBM. Thanks in advance, Steve Estle Peraton Systems Programmer ---------------------------------------------------------------------- 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
