View previous topic :: View next topic |
Author |
Message |
pappu47 Beginner
Joined: 10 Jan 2005 Posts: 12 Topics: 4 Location: Hyderabad
|
Posted: Mon Jan 10, 2005 4:21 am Post subject: Need Help on SORT |
|
|
Hi members,
I have an problem while sorting a files.
Example:-
I have 2 files in sortin and each file is having a header and data.I have to sort data records only not the headers.
My situation is If I do sort both headers are coming either top or bottom..
Can some one give the way how to do the sort after each Header I have to sort the data records.
Input :
SORTIN -
File1: Header1
data recs
File2: Header2
data recs
Desired Output:
SORTOUT-
Header1
data recs(sorted)
Header2
data recs(sorted)
Thanx in advance
--Pappu |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Mon Jan 10, 2005 11:15 am Post subject: |
|
|
Pappu,
The examples Kolusu points to assume that there's something in your Header records that identify them as Header records (e.g. 'HDR' in 1-3). Is that the case? _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
|
|
|