What's the purpose of ST1?
As it only creates a NULL SORTOUT file, and causes you confusion, why
include it?
DanD
--------------------------------------------------
From: "Clement Clarke"
Subject: Re: JCL MISTERY (for me)
I'd like to suggest that you change the SORTOUT in ST2 to Disp=(old,pass),
or Mod,Pass. It depends if you want the data added to the first output
file, or replaced. In fact, because the first step won't create any
records, it won't make any difference.
Clem Clarke
Author: Jol, the JCL Replacement Language
Vernooij, CP - SPLXM wrote:
"gnalu" wrote in message
Can somebody explain why the temporary dataset is empty in the last
ST3 step ?
I would like to obtain the record written is ST2, not the null from
the ST1.
//ST1 EXEC PGM=SORT,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD *
//SORTOUT DD DISP=(,PASS),DSN=&&TMPFILE,DCB=*.SORTIN,SPACE=(TRK,1)
OPTION COPY
//ST2 EXEC PGM=SORT,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD *
RECORD1
//SORTOUT DD DISP=(,PASS),DSN=&&TMPFILE,DCB=*.SORTIN,SPACE=(TRK,1)
OPTION COPY
//ST3 EXEC PGM=SORT,PARM='NULLOUT=RC4'
//SYSOUT DD SYSOUT=*
//SORTIN DD DISP=(OLD,DELETE),DSN=&&TMPFILE
//SORTOUT DD SYSOUT=*
OPTION COPY
Regards
Bernard Coeytaux
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html