I can't get it to work, sadly. You had me real encouraged. //FOO PROC M='' // SET Q='''' // SET P=&Q.&M.&Q //STEP1 EXEC PGM=IEFBR14,PARM=&Q.&P.&Q ... //STEP2 EXEC FOO,M='Life isn''t fair'
Gives me a JCL error IEFC629I INCORRECT USE OF APOSTROPHE ON THE SET STATEMENT on the second SET statement. Any thoughts? I also tried it without the intermediate SET, just IEFBR14,PARM=&Q.&M.&Q. Same sort of problem. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Jan MOEYERSONS Sent: Tuesday, September 14, 2010 3:38 AM To: [email protected] Subject: Re: Another brain-dead quoted PROC parm question On Mon, 13 Sep 2010 12:58:01 -0700, Charles Mills <[email protected]> wrote: >I've got a program FOO that requires a string with embedded blanks as a >parm, e.g. >//STEP1 EXEC PGM=FOO,PARM='Hello World' > Try: //* // SET Q='''' // SET B=' ' // SET P=&Q.Hello&B.World&Q. //* //STEP1 EXEC PGM=IEFBR14,PARM=&Q.&P.&Q. //* Strange as it may seem, this will do away with the requirement for an extra pair of apostrophes with each level of PROC and it will let you specify text with blanks embedded. ---------------------------------------------------------------------- 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

