IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

When sorting VB files


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
quanzhong

New User


Joined: 12 Aug 2008
Posts: 46
Location: china

PostPosted: Mon Dec 29, 2008 6:24 am
Reply with quote

Hi,

I want to sort a VB file, the MIN length is 350 bytes, and the MAX length is 2500 bytes, now I want to sort out some records based on condition,start at position 1613, length 2, how to achieve that?

thanks.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Mon Dec 29, 2008 6:56 am
Reply with quote

Quote:
now I want to sort out some records based on condition,start at position 1613, length 2


It's not clear what you mean by this. Do you mean you want to sort on a field at position 1613-1614 (SORT), or do you mean you want to only keep records where position 1613-1614 has a specific value (INCLUDE), or what?

You need to state more clearly what you want to do.

Note that for a VB input file, the RDW is in positions 1-4, so the first data byte starts in position 5, not in position 1. So if you are counting the RDW, position 1613 would be the correct position. But if you're not counting the RDW, the correct position would be 1617 (1613+4).

Also, for VB records, you may have to handle "short" records (records with a length less than the maximum last position you define). How you would handle "short records" depends on what you want to do.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links


For some general information on dealing with VB records when sorting, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.1.3?DT=20060615173822

For some general information on dealing with VB records when including, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.2.7?DT=20060615173822
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top