Joined: 03 Apr 2008 Posts: 82 Location: United States
Hi ALl.
We are upgrading to Syncsort v1.3 and were doing a few regressions to check output.
The sort card we are using is :
INREC FIELDS=(1:48,1,
2:56,4,
6:60,3,
9:271,2,
11:304,2,
13:49,1,
14:54,1,
15:X'0000001F',
19:18,3,
22:67,3,
25:327,1,
26:258,5,
31:282,6,
37:328,1)
SORT FIELDS=(1,1,CH,A,
2,4,CH,A,
6,3,CH,A,
9,2,CH,A,
11,2,CH,A,
13,1,CH,A,
19,3,CH,A,
14,1,CH,A)
SUM FIELDS=(15,4,PD,26,5,PD)
I noticed for the same sort card the different versions of syncsort are giving different values in the position 31-36. Please have a look at the card and help me in knowing why this is happening.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
CICS fan,
Are you saying that for the same input file and sort cards, you get different outputs? The functions used here are not so complex, and I believe it should work the same way for 1.2 or 1.3.
BTW, What difference are you seeing in the output files? Is it for a single record or all the records? What are the LRECL/RECFMs of input/output?
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Quote:
there are some records which are having difference in the position 31-36
How did you come to this conclusion? Do you use some utility to compare the output files? Are the number of output records the same? If yes, can you add the EQUALS parameter to your sort card as shown below, test both the versions and compare the output files again?
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
CICS fan,
EQUALS parameter retains the order of equally keyed records in your input file. NOEQUALS which is the default mentions that the order of equally-keyed records can be in any arbitrary order. So please do understand that it's NOT a problem with your SyncSort version. If they chose to go with NOEQUALS, they were not worried about the order of 'equally-keyed' records. Go through the 'EQUALS/NOEQUALS' description in your SyncSort manual if you would like to know more.
SyncSort for z/OS Release 1.3 Manual wrote:
The EQUALS parameter insures that the original order of equal-keyed records is preserved. These records will be in the same order in the output file as they were in the input file. NOEQUALS, the default, specifies that equal-keyed records may not be written in their original input order.