But then it has to be a separate job
//Lasse

-----Ursprungligt meddelande-----
Från: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> För Schmitt, 
Michael
Skickat: den 16 augusti 2024 16:13
Till: IBM-MAIN@LISTSERV.UA.EDU
Ämne: Re: Ability to pass symbolic variable back from REXX to JCL?

One way is to have the REXX exec write a file of SET statements, then INCLUDE 
that in subsequent jobs.

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Steve Estle
Sent: Friday, August 16, 2024 8:27 AM
To: IBM-MAIN@LISTSERV.UA.EDU
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 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to