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

Sort:if data being sorted are same ! order of output query?


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

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Fri Oct 23, 2009 11:33 am
Reply with quote

Hello All.

In my jcl, the sort card is : SORT FIELDS=(01,12,CH,A)

//PS010 EXEC PGM=SORT,
// COND=(4,LT)

I call SORT pgm in JCL

1st 12 bytes of my data are all same , I can't seem to understand the order in which i received the output.

Input:
A000000000000000000000U
A000000000002009102114501111DMC
A000000000002009102114501111MCC
A000000000002009102114501112DMC

Result:
A000000000002009102114501112DMC
A000000000002009102114501111MCC
A000000000002009102114501111DMC
A000000000000000000000U
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 23, 2009 11:38 am
Reply with quote

To preserve the position or records within duplicated sort fields use the EQUALS parameter, otherwise results can vary from run to run.
Back to top
View user's profile Send private message
sunny_io

New User


Joined: 11 Jul 2007
Posts: 68
Location: noida

PostPosted: Fri Oct 23, 2009 12:39 pm
Reply with quote

Hello..
With PARM = EQUALS , its working fine now.. thanks
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top