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 1 file to have multiple header and multiple trailer

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

New User


Joined: 31 May 2005
Posts: 2

PostPosted: Tue May 31, 2005 11:00 am    Post subject: sort 1 file to have multiple header and multiple trailer
Reply with quote

I have a file which needs to be sorted based on keys. The key has duplicate occurences. For 1 key I need to sum the values of other fields under that key. Like this if there are many different keys for each of them the summned up fields have to be produced. The lines in between the '=' are just for understanding they don't have to be produced in the output file.
===================================
Key Company Name
===================================
File header: 0000
Key header: Key1 xxxxxxxxxxxxx
Key trailer: Key1 xxxxxxxxxxxxx sum of diff types of records
File trailer: total no under that key.
of keys
Back to top
View user's profile Send private message

Sixtus
Warnings : 1

New User


Joined: 31 May 2005
Posts: 2

PostPosted: Tue May 31, 2005 2:54 pm    Post subject: Kindly reply
Reply with quote

Hi all I would like to hear your views on the posting, do send them quickly.
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 May 31, 2005 9:15 pm    Post subject:
Reply with quote

Please show an example of exactly what your input records look like and exactly what you want the output records to look like. What is the starting position, length and format of the key? What is the RECFM and LRECL of the input file?
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
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