View previous topic :: View next topic
|
Author |
Message |
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
Hello..
With PARM = EQUALS , its working fine now.. thanks |
|
Back to top |
|
|
|