What does he code in the JCL of the next step in order to allocate the temporary dataset that he created in the REXX?
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Sri h Kolusu [[email protected]] Sent: Tuesday, January 18, 2022 2:35 PM To: [email protected] Subject: Re: TSO RECEIVE prompt for output temporary dataset > 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 Thanks, Kolusu ---------------------------------------------------------------------- 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
