Leopold, This is purely a guess, but the last line of the prompt states:
INMR909A You may enter DSNAME, SPACE, UNIT, VOL, OLD/NEW, or RESTORE/COPY/DELETE/END You supplied a DATASET() parameter, but I don't see a RESTORE, COPY or DELETE prior to the END. Try adding: queue "RESTORE" Just before the queue of the "END" command. Chuck Charles (Chuck) Hardee Senior Systems Engineer/Database Administration EAS Information Technology Thermo Fisher Scientific 300 Industry Drive | Pittsburgh, PA 15275 Phone +1 (724) 517-2633 | Mobile +1 (412) 877-2809 | FAX: +1 (412) 490-9230 [email protected] | www.thermofisher.com WORLDWIDE CONFIDENTIALITY NOTE: Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent of a system responsible for delivering the message to the intended recipient, is prohibited. If you are not the intended recipient, please inform the sender and delete all copies. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Leopold Strauss Sent: Thursday, November 19, 2015 6:48 AM To: [email protected] Subject: REXX-question Hi, all I simply wanted to automize the receiving of a lot of XMIT-files in zOS-unix-shell ( not TSO) Last but not least my problem could be broken down to following terminal-input-problem with the RECEIVE-command: rexx-script: parse arg indsn outdsn address tso "PROFILE PROMPT" queue "DATASET('"outdsn"')" queue "END" address tso "RECEIVE INDATASET('"indsn"')" Result: MV21:/u/leoplds$ receive.sh 'LEOPLDS.TEST.XMIT' 'LEOPLDS.TEST.TEST' INMR901I Dataset SYSC.DOCEXEC.V717.LOADLIB from CHR9255 on ESJES2 INMR154I The incoming data set is a 'PROGRAM LIBRARY'. INMR906A Enter restore parameters or 'DELETE' or 'END' + INMR908A The input file attributes are: DSORG=PARTITIONED, RECFM=U, BLKSIZE=32760, LRECL=32756, File size=X'0005C3EE'K bytes + INMR909A You may enter DSNAME, SPACE, UNIT, VOL, OLD/NEW, or RESTORE/COPY/DELETE/END INMR800I The RECEIVE command failed. The PUTGET service routine issued return code 16. I googled a lot, read manuals, but I did not find any working sample, which I could use. appreciating all hints and br -- Mit freundlichen Gruessen / Kind Regards, Leopold Strauss, Team DEV-zOS, T: +43-2236-27551-331 ---------------------------------------------------------------------- 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
