That doesn't answer the question. I know of no way to do it as written. Allocating the temporary in the JCL rather than in the REXX is a change of specifications.
Even if IBM added a PASS disposition to SVC 99 TU types 0005 and 0006, there would be no way to identify the passed dataset in the JCL without additional DYNALLOC changes. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Paul Gilmartin [[email protected]] Sent: Tuesday, January 18, 2022 6:08 PM To: [email protected] Subject: Re: TSO RECEIVE prompt for output temporary dataset 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
