Page 1 of 1

vtoc information

PostPosted: Fri Feb 25, 2011 11:56 am
by syamcs
i need to get information regarding VTOC. Is it possible to get VTOC information through REXX ,if so can any one help me to resolve this..... :)

Re: vtoc information

PostPosted: Fri Feb 25, 2011 12:29 pm
by mongan
Why use rexx when there is a utility to do this:

//PROG EXEC PGM=IEHLIST,REGION=4M
//SYSPRINT DD SYSOUT=*
//DD1 DD UNIT=3390,VOLUME=SER=MVS319,DISP=SHR
//SYSIN DD *
LISTVTOC FORMAT,VOL=3390=MVS319,DSNAME=(PAGE.VMVS319.LOCAL1.DATA)
/*

You can drop the DSNAME to get a list of the entire VTOC.

Re: vtoc information

PostPosted: Fri Feb 25, 2011 12:37 pm
by syamcs
thank you..... :)

Re: vtoc information

PostPosted: Fri Feb 25, 2011 8:05 pm
by steve-myers
It would help us if we knew what kind of VTOC information you want. The output of the IEHLIST LISTVTOC function is pretty unreadable, even for people that know the contents of the VTOC quite well.

The LISTDSI command in Rexx when it is run in TSO provides most of the information that you could get from LISTVTOC DSNAME=xxx in a far more usable format for Rexx or CLIST.