The relative file concept comes when you want use key as relative record number,
the relative file consist of slotes i.always fixed, the maximum and average(minimum) record size must be same
there can following operation possible with RRDS
the access mode are 1]random
the relative file organisation is fatser than other organisation but only limit is the key is not part of file i.e. not included in field
it always star from 1
for example.the relative mostly you can use in telephone exchane where the the numeric no is key
i given you one simpe programe for read the relative file
SELECT FILE1 ASSIGN TO DD1
ORGANIZATION IS RELATIVE
ACCESS MODE IS SEQUENTIAL
RELATIVE KEY IS RKEY
FILE STATUS FS1.
02 X PIC X(80).
77 FS1 PIC 9(2).
OPEN INPUT FILE1.