Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Question on the output of Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kbmk

New User


Joined: 27 Sep 2007
Posts: 24
Location: Chennai

PostPosted: Wed Oct 28, 2009 5:47 pm    Post subject: Question on the output of Syncsort
Reply with quote

Hi Everyone,

I have submitted two sort jobs. The data are given as follows. The difference in the data for job1 and job2 are that, for job2 first 10 records are alone given as input.
    57AD4 1
    57AD5 2
    57AD5 3
    57AD4 4
    57AD5 5
    57AD4 6
    57AD4 7
    57AD5 8
    57AD4 9
    57AD5 10
    97D53 11
    973G3 12
    97D67 13

What I have expected to see that the output of job1 and job2 to match.
    Job1 Output
    57AD4 4
    57AD4 1
    57AD4 6
    57AD4 7
    57AD4 9
    57AD5 10
    57AD5 8
    57AD5 5
    57AD5 2
    57AD5 3
    97D53 11
    97D67 13
    973G3 12

    Job2 Output
    57AD4 9
    57AD4 4
    57AD4 1
    57AD4 6
    57AD4 7
    57AD5 8
    57AD5 5
    57AD5 2
    57AD5 3
    57AD5 10


JCL used for both of the jobs
Code:

//SORT    EXEC PGM=SORT
//SORTIN  DD *
I/P
//SORTOUT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *
 SORT FIELDS=(1,5,CH,A)
/*
//*


Kindly clarify me on why I am seeing the difference in the output.

Regards,
Bala[/list]
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Oct 28, 2009 7:03 pm    Post subject:
Reply with quote

When the sort field is the same value on multiple records, the output sequence can be different each run unless you add the EQUALS parameter to keep the same sequence as the input file.
Back to top
View user's profile Send private message
kbmk

New User


Joined: 27 Sep 2007
Posts: 24
Location: Chennai

PostPosted: Wed Oct 28, 2009 7:25 pm    Post subject:
Reply with quote

Thanks Dennis:)
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us