elango_K New User Joined: 18 Aug 2011 Posts: 44 Location: India
I have two input files.
Input file 1 has position 1-4 and 7-10 as number.
Input file 2 has the same position in COMP. There are no other difference in the files.
When I sort file 1 as 7,4,CH,A and file 2 as 7,4,BI,A, the output files do not maintain the same order. This is because the sort card I provide would reslut in duplicate records being picked.
i.e: File 1 contains duplicate records on the fields on which it is being sorted.
I cannnot use EQUALS on sort fields as below this sort step a PGM uses some other logic .
Is there a way by which I can know the order in which the data gets sorted if all the fields provided in sort card are present in multiple records?
Bill Woodger Moderator Emeritus Joined: 09 Mar 2011 Posts: 7312 Location: Inside the Matrix
Beyond the first four lines, I have no idea at what you mean.
Please show some sample input, and the output you are receiving for that sample, and the output that you expect for that sample. Also show the sort cards you are using.
For the explanation, please go through it with a colleague who knows nothing about what you are doing. Once they understand what you want, from what you have explained, post the new explanation.
Akatsukami Global Moderator Joined: 03 Oct 2009 Posts: 1789 Location: Bloomington, IL
EQUALS specifies only that the original order of records be preserved when they collate identically. What downstream logic do you pretend to have that requires them to be presented in a different but known order?
dick scherrer Moderator Emeritus Joined: 23 Nov 2006 Posts: 19254 Location: Inside the Matrix
Suggest you post several lines of input data (both files) and the output data this sample input should generate.
Post the "rules" for getting from the input to the output.
Your "description" is most confusing (at least to me).
All times are GMT + 6 Hours