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
 

 

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 Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm


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