Sort Variable Block File


Main Menu        Computer Tips        Software Downloads Menu

  Main Question - Posted From Guest:
what is outrec syntax to sort a variable block file

Guest Says:
http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.icea100/outcst.htm

Guest Says:
variable block sorts have a alot of parms in outrec, you also have parsing like ENDBEFR parameters, BUILD parameters and other parms, check the link which covers all of them. Variable sorts are quite different from fixed block sorts.

Frank Yaeger Says:
"what is outrec syntax to sort a variable block file"

It isn't clear what you're asking.  The SORT statement is used to SORT the file.  For VB records, the first data byte starts in position 5, not position 1 since the RDW occupies positions 1-4.  If you have "short records" (records that are shorter than the SORT fields you specify), you can use VLSHRT to handle that.

The OUTREC statement reformat records.  For a VB file, you have to specify 1,4 (for the RDW) as the first field, and you can specify a position without length as the last field for the variable part.  But exactly how you would code an OUTREC statement depends on what you're trying 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:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080

Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort


Add your reply below ...



This site allows you to ask questions and get answers from various posters, you may also answer any posts if you feel like you have input to give. Feel free to ask for help with any new question you wish, but most of the questions here are tech related. You will find many questions and answers related to your Ipod or Ipod Nano, Itunes, audio and video converting, spyware or adware cleanup, pc or other computer questions, and even mainframe questions. Although these are the tech questions most often asked, you will find help on almost any computer or software related subject. Feel free to go to the main menu and review the posts already present, or feel free to ask your own question. (Some questions will be closed once the moderator feels they are sufficiently answered and that no other input is needed).

Your Name:

Your Reply:

Type in verification code:


Main Menu

Shareware and Freeware Database

Tasks and Spyware Database

Various Computer Help Topics