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

Want to sort a file skipping the first record


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Fri Nov 09, 2012 10:53 am
Reply with quote

Hi,

I have a file which has a header record and remaining dta record. I want to sort the data based on some currency code it is easy to do.
my queastion here is how can I write the the header record and the sorted data records to my output file?
Example:
Input file:
DATE | LOCATION | CURRENCY | RATE |
20121108 | NY | AUD | 00000045654 |
20121108 | NY | AED | 00000023450 |
20121108 | NY | ART | 00000012345 |

I want my sort file to be

DATE | LOCATION | CURRENCY | RATE |
20121108 | NY | AED | 00000023450 |
20121108 | NY | ART | 00000012345 |
20121108 | NY | AUD | 00000045654 |

Do I need to split the file for header and data first, sort the data file and finally merge the header and data file?

Thanks
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 09, 2012 11:20 am
Reply with quote

Please look at the DATASORT operator of ICETOOL.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top