Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sorting Duplicate fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
elango_K

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Mon May 26, 2014 5:24 pm    Post subject: Sorting Duplicate fields
Reply with quote

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?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon May 26, 2014 5:43 pm    Post subject: Reply to: Sorting Duplicate fields
Reply with quote

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.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1755
Location: Bloomington, IL

PostPosted: Mon May 26, 2014 5:45 pm    Post subject:
Reply with quote

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?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 27, 2014 10:20 pm    Post subject:
Reply with quote

Hello,

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).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us