Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SYNCSORT step with sysin *

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT step with sysin *
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    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 31, 2008 11:11 am    Post subject:
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    Post subject: Reply to: SYNCSORT step with sysin *
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: 1288
Location: Chennai, India

PostPosted: Wed Dec 31, 2008 3:27 pm    Post subject: Reply to: SYNCSORT step with sysin *
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

Site Director


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

PostPosted: Wed Dec 31, 2008 8:58 pm    Post subject: Reply to: SYNCSORT step with sysin *
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us