Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sort for header record

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

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Sun Dec 06, 2009 3:00 pm    Post subject: Sort for header record
Reply with quote

Hi,

Below is a snippet of the data I need to sort .I want the header record- 10 as first record for their respective set -identified by the ID Number in the first 10 columns.Note set 1 and 3 have the same ID number , Hence cannot sort on ID no and the record type.The data in the header record varies .

4603787478 12WW PRAINGER
4603787478 13CK IMAGEWEAR
4603787478 14WW GRAINGER DCOF KA
4603787478 444603787478 399543
4603787478 47 9OZ EXCEL FR CONT
4603787478 100912010933523242313


4603838394 12WW PRAINGER
4603838394 13CK IMAGEWEAR
4603838394 14WW PRAINGER DCOF KA
4603838394 444603838394 460667
4603838394 47 9OZ EXCEL FR CONT
4603838394 100912010933523262313


4603787478 12WW PRAINGER
4603787478 13CK IMAGEWEAR
4603787478 14WW PRAINGER DCOF KA
4603787478 444603787478 399543
4603787478 47 9OZ EXCEL FR CONT
4603787478 47 9OZ EXCEL FR CONT
4603787478 100912010933523282313

The output should be as follows

4603787478 100912010933523242313
4603787478 12WW GRAINGER
4603787478 13VF IMAGEWEAR
4603787478 14WW GRAINGER DCOF KA
4603787478 444603787478 399543
4603787478 47 9OZ EXCEL FR CONT

4603838394 100912010933523262313
4603838394 12WW GRAINGER
4603838394 13VF IMAGEWEAR
4603838394 14WW GRAINGER DCOF KA
4603838394 444603838394 460667
4603838394 47 9OZ EXCEL FR CONT


4603787478 100912010933523282313
4603787478 12WW GRAINGER
4603787478 13VF IMAGEWEAR
4603787478 14WW GRAINGER DCOF KA
4603787478 444603787478 399543
4603787478 47 9OZ EXCEL FR CONT
4603787478 47 9OZ EXCEL FR CONT

Note:The header record 10 ,is now the first record for each set of data
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Dec 08, 2009 12:26 am    Post subject:
Reply with quote

What is the RECFM and LRECL of the input file?

What is the starting position, length and format of the ID number field?

What is the starting position, length and format of the record type field?
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us