I missed the "=" in the PARM statement. I should read: //MERGE EXEC PGM=SORT,PARM='NULLOUT=RC4'
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Reda, John Sent: Monday, March 17, 2008 10:28 AM To: [email protected] Subject: Re: Merge - exclude blank lines Sorry, I misunderstood what you wanted. Try adding the NULLOUT=RC4 parameter to your MERGE step and then add another step immediately after that will execute conditionally, only if the output from the previous step is RC=4. For example: //MERGE EXEC PGM=SORT,PARM'NULLOUT=RC4' //....... existing JCL //STEP2 EXEC PGM=SORT,COND=(4,NE,MERGE) //SYSIN DD * SORT FIELDS=COPY //SORTIN DD * //SORTOUT DD DSN=same.output.from.merge.step,DISP=SHR //SYSOUT DD SYSOUT=* ---------------------------------------------------------------------- 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

