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 

SORT VB file

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


Joined: 05 Oct 2005
Posts: 28
Topics: 20
Location: INDORE

PostPosted: Tue Sep 19, 2006 10:42 am    Post subject: SORT VB file Reply with quote

Hi,
I am having a VB record(RECFM=VB,LRECL=27994)

.I want to sort last 4 character in the ascending order.Is it possible thru SORT ?

Thanks
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Tue Sep 19, 2006 12:44 pm    Post subject: Reply with quote

You need to provide more information than that. A VB file usually has variable length records, so the last 4 characters would be in different positions in different records and sorting on those characters would probably not make a lot of sense.

Is every record actually the same length with fixed length fields? If so, what is the starting position of the 4-byte field you want to sort on (remember that a VB record has the RDW in positions 1-4 so the first data byte starts in position 5).

Are the fields actually variable length and delimited in some way (e.g. comma separated values). If so, what is the layout of the fields and which field do you want to sort on?

Give more details so we can understand what you're trying to do and help. An example of the records in the input file and the expected output records would be helpful.
_________________
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