On Fri, 16 Aug 2024 14:28:11 +0000, Seymour J Metz wrote:

>There's no way to do it in a single job. Could you instead dynamically 
>allocate the files?
>    ...
I'm pretty sure that referbacks  won't help either.

Use ADDRESS LINKMVS to invoke the target program[s] in the
same job step.

>________________________________________
>From:  Steve Estle 
>Sent: Friday, August 16, 2024 9:27 AM
>
>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 t llight.  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.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to