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 

unable to understand OUTREC

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


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Thu Jun 07, 2007 9:14 am    Post subject: unable to understand OUTREC Reply with quote

Hai All,

I have a code in my Sort Card as follows:
Code:

 SORT FIELDS=(12,3,CH,A,6,5,CH,A,5,1,CH,A)
 OUTREC FIELDS=(1,4,12)                                   

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.
Code:
 OUTREC FIELDS=(1,4,12) 

Please help me in understanding.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12394
Topics: 75
Location: San Jose

PostPosted: Thu Jun 07, 2007 9:31 am    Post subject: Reply with quote

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.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Thu Jun 07, 2007 9:52 am    Post subject: Reply with quote

Kolusu,

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.

Thanks Kolusu once again , you are always great.
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: Sat Jun 09, 2007 11:42 am    Post subject: Reply with quote

yadav2005,

For more information on using OUTREC with VB records, see:

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

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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
_________________
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