Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting information about VSAM clusters.

Status
Not open for further replies.

ringd

Programmer
Jul 11, 2000
35
GB
Hello!

Does anybody know how to obtain information on VSAM components, such as last referenced date etc.

The 'LISTDSI' function does not support VSAM. The ISPF 'DSINFO' service does not support KSDS at all, but does support ESDS as long as you provide the DATA component as the dataset name (not the cluster name).

All suggestions are welcome.

Cheers,
Dave.

mailto:dave.ring@barclays.co.uk
 
Hi Dave,

You can use LISTCAT to get the info about a VSAM, but i doubt if you can get the last modified info.

syntax:
"LISTCAT ENTRIES("filename") ALL"

You can give this command in ISPF and see the o/p.
To get the lrecl of the file, the following piece of code can be used:

DO I=0 TO ALLPARM1.0
INDX1 = INDEX(ALLPARM1.I,"MAXLRECL")
IF INDX1 > 0 THEN
DO
MAXLRECL1 = WORD(ALLPARM1.I,2)
LEAVE
END
END


Hope it is useful.
Cheers,
Sudha.
 
Hi Dave,

A small correction the stem variable ALLPARM1 will get value like this

X = OUTTRAP(ALLPARM1.)
"LISTCAT ENTRIES("file name") ALL"
X = OUTTRAP("OFF")

Cheers,
Sudha.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top