I understand that we are sorting first from 12 th pos and taking 3 bytes,then 6 th pos and taking 5 bytes and then 5 th pos and taking 1 byte for sorting in ascending order.But i am unable to understand the Outrec Fields.I know that (1,4) means we are forming the first four bytes but i am unable to understand what does ,12 do in extension.
Joined: 26 Nov 2002 Posts: 12394 Topics: 75 Location: San Jose
Posted: Thu Jun 07, 2007 9:31 am Post subject:
Quote:
OUTREC FIELDS=(1,4,12)
yadav2005,
I am guessing that you input file is a variable Blocked (VB) file. For VB files you don't have to mention the length.
The above outrec copies the first 4 bytes of RDW and then copies the contents from pos 12 to the end of each record. Since it is a variable block file we don't mention the length as the length of each record varies.
For variable block files SORT automatically copies the record till the end.
You are correct.My input dataset is a VB File and i have clearly understand by the explanation given by you.Now when i see the SORTOUT output VB dataset and compare with the SORTIN VB Dataset it has made me clear.
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:
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