View previous topic :: View next topic
|
Author |
Message |
jitu852
New User
Joined: 30 Apr 2007 Posts: 27 Location: Hyderabad
|
|
|
|
I just want to clarify that the sort step with "//SYSIN DD *"
is sort input dataset on which field bases and what is in the output.
Code: |
//SRTCUSIP EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=input.dataset,DISP=SHR
//SORTOUT DD DSN=output.dataset.sort,
// DISP=(NEW,CATLG),
// UNIT=SMS,SPACE=(TRK,(1000,1000),RLSE)
//SYSIN DD *
|
|
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
SYSIN would contain the sort control statements. SORTIN would contain the data to be sorted. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
And SORTOUT is the output. In general, SYSIN (System Input) is a data definition (DD) statement used to begin an in-stream data set. |
|
Back to top |
|
|
Deepthi Budhiwant
New User
Joined: 15 Dec 2008 Posts: 6 Location: Pune
|
|
|
|
Apart from using instream data, we can also write the sort control statements in a member of a PDS and specify it as:
//SYSIN DD DSN=<Library_Name>(<Member_Name>)
This is generally useful while using procedures as procedures should not contain instream data. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Jitu,
Just FYI .
Sort control statements can also be coded using SYSIN DD DATA. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Or
Code: |
//SYSIN DD DDN=YOUR.SORTCTL.PDS(THISSORT),DISP=SHR |
or even some qsam dataset (as is often done when the sort control is generated from an earlier process in the job). . .
d |
|
Back to top |
|
|
|