On Tue, 18 Jan 2022 22:48:19 +0000, Seymour J Metz wrote:
>What does he code in the JCL of the next step in order to allocate the
>temporary dataset that he created in the REXX?
>
He said and you quoted below: "OP then needs to
finish the next step processing also in the same rexx."
Or, allocate with JCL DD and PASS; snag DSN and VOL
in Rexx for RECEIVE reply.
I could imagine passing DSN and VOL in a file. Butt does
the temp data set survive the job step boundary?
>________________________________________
>From: Sri h Kolusu
>Sent: Tuesday, January 18, 2022 2:35 PM
>
>> The OP wants to RECEIVE to a temp DSN and PASS that data set to a
>> subsequent job step.
>
>Well if REXX is an option then he can allocate a temp dataset and get the
>name using LISTDSI and then issue the RECEIVE command. OP then needs to
>finish the next step processing also in the same rexx.
>
>/* REXX */
>"ALLOC DD(MYRCVD) NEW REU UNIT(SYSDA) RECFM(F B) LRECL(80),
> SPACE(75,30) TRACKS DIR(30) DSORG(PO)"
>DDINFO = LISTDSI("MYRCVD" "FILE")
>SAY "TEMP DATASET NAME: "SYSDSNAME
>X=PROMPT('ON')
>X=MSG('ON')
>RECEIVER='Userid'
>RCVPARMS=''
>OUTDSN=SYSDSNAME
>QUEUE "DATASET('"OUTDSN"') "RCVPARMS
>QUEUE "END"
>"RECEIVE USER("RECEIVER")"
>
>....
>next step process here
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN