IBM Z and LinuxONE IBM Z

IBM Z

The enterprise platform for mission-critical applications brings next-level data privacy, security, and resiliency to your hybrid multicloud.

 View Only
  • 1.  How to check the VTOC utilization in batch mode

    Posted 9 hours ago

    Dears,

    The VOTC utilization can be checked from ISPF 3.4, Any method to display from JCL in batch job ?

    Thanks.

    Sincerely Arthur



    ------------------------------
    Arthur Chang
    ------------------------------


  • 2.  RE: How to check the VTOC utilization in batch mode

    Posted 4 hours ago

    I use this:

    //TEST     EXEC PGM=IEHLIST                    
    //SYSPRINT DD SYSOUT=*                         
    //DD1   DD UNIT=3390,VOLUME=SER=SD1004,DISP=OLD
    //SYSIN DD *                                   
       LISTVTOC FORMAT,VOL=3390=SD1004             
    /*                                             

    Scroll down to the bottom of the output and you get nearly the 3.4 style output...



    ------------------------------
    Roy Boxwell
    Senior Software Architect
    Software Engineering GmbH
    Duesseldorf
    +4921196149675
    ------------------------------



  • 3.  RE: How to check the VTOC utilization in batch mode

    Posted 2 hours ago

    Hi Roy,

    Thanks.

    At the bottom of LISTVTOC output there displays the 'BLANK DSCBS' , IT SEEMS OK.

    While if there any way to display the '%USED'  under  'VTOC data' field ?

    Thanks.

    Sincerely Arthur



    ------------------------------
    Arthur Chang
    ------------------------------



  • 4.  RE: How to check the VTOC utilization in batch mode

    Posted 49 minutes ago

    Hi!

     To get that figure you simply divide the total number of datasets on the volume by the sum of the number of Free DSCBs and the total number of datasets on the volume and multiply by 100 rounding up.

    In my case I have 620 datasets on the disk and 3071 Free dscbs with %Used : 17

    So (620 / (620 + 3071)) * 100 = 16.79 which rounds up to 17%

    Cheers!



    ------------------------------
    Roy Boxwell
    Senior Software Architect
    Software Engineering GmbH
    Duesseldorf
    +4921196149675
    ------------------------------



  • 5.  RE: How to check the VTOC utilization in batch mode

    Posted 3 hours ago

    Hi Arthur,

    Yes, you can check VTOC utilization in batch mode using IDCAMS or LISTVTOC utility. Here's an example using IDCAMS:

    //STEP1    EXEC PGM=IDCAMS
    //SYSPRINT DD SYSOUT=*
    //SYSIN    DD *
      LISTVTOC VOL=volser,FORMAT
    /*

    • Replace volser with your volume serial.
    • The FORMAT option provides detailed VTOC information including free space.

    Alternatively, you can use DFSMS utility (DCOLLECT) for more comprehensive reporting.



    ------------------------------
    Venkata Sathish Reddy Ambati
    ------------------------------