Read RDF details of KSDS file



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

Read RDF details of KSDS file

Postby Prasanna G » Wed Sep 16, 2015 9:28 pm

Hi

How do I read RDF to get the length of each record present in the VSAM file?

Thanks
Prasanna G.
User avatar
Prasanna G
 
Posts: 59
Joined: Tue Apr 12, 2011 9:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Read RDF details of KSDS file

 

Re: Read RDF details of KSDS file

Postby Robert Sample » Wed Sep 16, 2015 9:33 pm

Are you wanting to do this in REXX, COBOL, PL/I, Assembler, FORTRAN, SAS, or what? Generally, you don't access the RDF as there are other ways to get the record length, depending upon the language being used.

If you do decide to do this, reading the Using Data Sets manual in the DFSMS bookshelf will give you the format for the RDF -- and depending upon your data you may have to look at bits in the RDF.
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: Read RDF details of KSDS file

Postby Prasanna G » Wed Sep 16, 2015 9:52 pm

Through Cobol..
User avatar
Prasanna G
 
Posts: 59
Joined: Tue Apr 12, 2011 9:49 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Read RDF details of KSDS file

Postby Robert Sample » Wed Sep 16, 2015 10:45 pm

In COBOL, you can specify a variable in the FD that will contain the length of the record after a READ is done. See RECORD IS VARYING ... DEPENDING ON in the Enterprise COBOL Language Reference manual.
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


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post