Lots of ways to do this. Work with the syntax of your PARSE verb. Quick and easy: put the parameter with spaces last:
EXEC PGM=IKJEFT01,PARM='MYREXX P1 P3 P2 IS HERE' PARSE ARG A B C A= 'P1' B= 'P3' C= 'P2 IS HERE' HTH. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Michael Knigge Sent: Wednesday, March 25, 2009 10:56 AM To: [email protected] Subject: Pass Parameter containing spaces to Rexx in BATCH All, I want to pass multiple parameters to a rexx running in batch, but one of the parameters can contain spaces (--> multiple words). I tried EXEC PGM=IKJEFT01,PARM='MYREXX P1 "P2 IS HERE" P3' and also EXEC PGM=IKJEFT01,PARM='MYREXX P1 ''P2 IS HERE'' P3' but all in vain. no chance? Thank you all, Michael ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

