question about RRDS relative record number



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

question about RRDS relative record number

Postby Pumpkin » Thu May 19, 2011 5:19 pm

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               
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: question about RRDS relative record number

 

Re: question about RRDS relative record number

Postby Robert Sample » Thu May 19, 2011 5:42 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: question about RRDS relative record number

Postby Pumpkin » Fri May 20, 2011 11:02 am

thanks,Robert.
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post