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

Question on the output of Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
Search our Forums:

Back to Top