Page 1 of 1

question about RRDS relative record number

PostPosted: Thu May 19, 2011 5:19 pm
by Pumpkin
hi,
i know how to use IDCAMS to define a RRDS,but how to define and use the relative record number?
i use repro command , copy a ps file to this new RRDS, and i use print command to print it , as follow.
it shows RRN count from 1 to end of file although i didn't do any thing about it, is it default ,and can it be changed?
thanks!

RELATIVE RECORD NUMBER - 1                 
100101111INFORMATION BUILDERS01234560111111
RELATIVE RECORD NUMBER - 2                 
10011345CAREER TRAINING CTR 12345672222222
RELATIVE RECORD NUMBER - 3                 
100122222HOMELITE TEXTRON CO 34545000000000
RELATIVE RECORD NUMBER - 4                 
100134567NEAS MEMBER BENEFITS00111110000000
RELATIVE RECORD NUMBER - 5                 
100140111DAUPHIN DEPOSIT BANK14099001993000
RELATIVE RECORD NUMBER - 6                 
100154321AIRCRAFT OWNERS ASSC05426124042000
RELATIVE RECORD NUMBER - 7                 
100163333NORFOLK CORP        06396350446288
RELATIVE RECORD NUMBER - 8                 
100172222HOMELITE TEXTRON CO 34545000000000
RELATIVE RECORD NUMBER - 9                 
101114567NEAS MEMBER BENEFITS00111110000000
RELATIVE RECORD NUMBER - 10               

Re: question about RRDS relative record number

PostPosted: Thu May 19, 2011 5:42 pm
by Robert Sample
but how to define and use the relative record number?
In a word -- you don't define it. The first record is relative record number 1, the second record is relative record 2, and so forth until the last (Nth) record of the file, which is relative record N. Relative record 7 will ALWAYS refer to the seventh record in the file -- period. You cannot change this; it is inherent in the very definition of an RRDS. Any given record may contain data or not have data -- but it will always be present in the file.

Read and study this manual called VSAM Demystified: http://www.redbooks.ibm.com/abstracts/sg246105.html?Open and you will learn much.

Re: question about RRDS relative record number

PostPosted: Fri May 20, 2011 11:02 am
by Pumpkin
thanks,Robert.