IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

sort 1 file to have multiple header and multiple trailer


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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 Developer


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

PostPosted: Tue May 31, 2005 9:15 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top