Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to handle variable length record in SORT.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Wed Aug 31, 2005 11:45 am    Post subject: How to handle variable length record in SORT.
Reply with quote

Hi,

I want to sort a variable length record. So, when I need to specify the starting position of the elements based on which the records to be sorted, should I give the starting position as we see in the file OR should I add 4 to the starting position as we see in the file?

Thanks,
Cheers.
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Aug 31, 2005 12:11 pm    Post subject: Re: How to handle variable length record in SORT.
Reply with quote

Hi Avalanches,

You want to sort the variable lengthe file?

Please confirem

Regards
Rupesh
Back to top
View user's profile Send private message
nallapureddy

New User


Joined: 27 Jul 2005
Posts: 18

PostPosted: Wed Aug 31, 2005 2:16 pm    Post subject:
Reply with quote

Hi,

Yeah u should be adding 4 bytes to the starting byte for the VB file.

Thanks,
Madhavi
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Aug 31, 2005 8:49 pm    Post subject:
Reply with quote

For VB records, the first data byte starts in position 5 after the 4-byte RDW. When you view the records, the RDW is often hidden, but it's still there as far as DFSORT is concerned. You need to include the RDW when specifying the starting position, so you'd add 4 to the starting position of the data byte. For example, for the second data byte, you'd specify a starting position of 6 (4 for RDW + 2).
Back to top
View user's profile Send private message
avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Thu Sep 01, 2005 8:55 pm    Post subject: Re: How to handle variable length record in SORT.
Reply with quote

Thanks much guys. I had tested to find out this.

Lesson Learned: Do yourself as much b4 seeking the help!

Cheers.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us