MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need Help on SORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
pappu47
Beginner


Joined: 10 Jan 2005
Posts: 12
Topics: 4
Location: Hyderabad

PostPosted: Mon Jan 10, 2005 4:21 am    Post subject: Need Help on SORT Reply with quote

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
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Jan 10, 2005 5:44 am    Post subject: Reply with quote

Pappu47,

Please search before posting. This topic has been discussed earlier. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=3432

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Jan 10, 2005 11:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group