IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT step with sysin *


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jitu852

New User


Joined: 30 Apr 2007
Posts: 27
Location: Hyderabad

PostPosted: Tue Dec 30, 2008 7:54 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Dec 30, 2008 7:57 pm
Reply with quote

SYSIN would contain the sort control statements. SORTIN would contain the data to be sorted.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 31, 2008 11:11 am
Reply with quote

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
View user's profile Send private message
Deepthi Budhiwant

New User


Joined: 15 Dec 2008
Posts: 6
Location: Pune

PostPosted: Wed Dec 31, 2008 12:48 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Dec 31, 2008 3:27 pm
Reply with quote

Jitu,

Just FYI .

Sort control statements can also be coded using SYSIN DD DATA.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Dec 31, 2008 8:58 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top