|
View previous topic :: View next topic
|
| Author |
Message |
swathykrishnan
New User
Joined: 01 Oct 2010 Posts: 43 Location: Bangalore
|
|
|
|
Hi
I have an input file like the one given below
| Code: |
HH THIS FILE HEADER
IBM 100
IBM 300
IBM 400
TT THIS IS TRAILER
|
No other records except Header and Trailer will start with HH and TT.
I have to sort the records between header and trailer and the output file should also have the Header and trailer as it is in the input file. At present i am copying the the header and trailer records to two temp files and merging it with the sorted file.
Is there any other way to do the same?
Please note that I am using DFSORT. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
May I suggest reading the DFSORT smart tips document which shows the easy way to do this.
Click HERE to access the documentation. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
| Back to top |
|
 |
|
|