Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is there a way to find all volumes that are in DISNEW state?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ananth86

New User


Joined: 10 Jun 2009
Posts: 59
Location: Hyderabad

PostPosted: Mon Oct 25, 2010 12:07 pm    Post subject: Is there a way to find all volumes that are in DISNEW state?
Reply with quote

I am trying to identify all the volumes that are in DISNEW state in a partiular system, I ran Dcollect and the V record that I got dont have the SMS status info. Can someone suggets me any utility to find all the volume that are in DISNEw state?


Thanks
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Oct 25, 2010 1:39 pm    Post subject:
Reply with quote

Methinks you should look at the VL record instead of the V record.
Back to top
View user's profile Send private message
ananth86

New User


Joined: 10 Jun 2009
Posts: 59
Location: Hyderabad

PostPosted: Mon Oct 25, 2010 8:45 pm    Post subject:
Reply with quote

Expat, i tried with the following piece of code
Code:
//SYSIN DD *                                       
  DCOLLECT OFILE(OUTPUT) SMSDATA(ACTIVE) NODATAINFO
/*                                                 

And i use this dcollect data in ISMF , but it is giving me a detailed list, i dont want that , i only want volser and its status. Any other tool that u know can help to collect the data in clean format?

here is the sample output
Code:
 ----------------------------------                                   
 -- SMS Volume : LABV01          --                                   
 ----------------------------------                                   
                                                                       
 VOLSER: LABV01        STORGRP: SGLAB2                                 
 Last Updated: USER198 Date: 2004/01/20                               
 Time Updated: 17:48                                                   
                                                                       
      Status Information                                               
(SMS status, MVS status, Confirmed SMS status)                         
                                                                       
SYSTEM  1: Full access enabled by SMS, Online, Full access enabled by S
SYSTEM  2: Full access enabled by SMS, Online, Full access enabled by S
SYSTEM  3: No access given, ??, No access given                       
SYSTEM  4: No access given, Online, No access given                   
SYSTEM  5: No access given, Online, No access given                   
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Thu Oct 28, 2010 7:50 pm    Post subject:
Reply with quote

There are multiple ways to get this information but it depends exactly want you need to know. When you say a System do you mean one LPAR in a Sysplex or across the whole Sysplex? The status can vary across LPAR's depending on how your Storgrps are defined in the SCDS.

Some options are:

Issue MVS command: D SMS,STORGRP(ALL),LISTVOL
That will list all storgrps and each volumes status into the Syslog.

ISMF option 6 list of volumes in a Storgrp will do it if you use the FILTER option in the subsequent list to select only DISNEW volumes. You can then use the LISTPRT command to put the list in a dataset. There's probably a Naviquest equivalent to do this in Batch as well.


FDREPORT can give a nice formatted report if you have FDRABR installed. This took about 3 mins to run on a 90Tb Sysplex.

//*----------------------------------------------------------
//* FDREPORT - VOLUME REPORT
//*----------------------------------------------------------
//FDREPORT EXEC PGM=FDREPORT,REGION=128M
//SYSPRINT DD SYSOUT=0
//SYSOUT DD SYSOUT=0
//SYSUDUMP DD SYSOUT=0
//ABRMAP DD SYSOUT=*
//ABRSUM DD SYSOUT=0
//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR
//SYSIN DD *
REPORT FIELD=(VLVOLSER,VLSMSVST,STORGRP,VLDEVTYP)
XS VLSMSVST.EQ.(DISABLEN)
SUM FIELD=(STORGRP,VLSMSVST,VLDEVTYP)
PRINT ONLINE,SORT=COMBINE,SUM=YES,DATATYPE=VOLDATA,RPTYPE=TABLE,
ENABLE=(FASTPATH,LARGEDISK,ONELINESUM),
SUMDEVICE=UNIQUE,BYTEFORMAT=MEGA,SUMBYTEF=MEGA
//*
//* OTHER OPTIONS. REMOVE ONLINE FROM PRINT STATEMENT
//* IF SELECTING BY STORGRP
* XS STORGRP=SG1,VLSMSVST.EQ.(QUIESCEA)
* XS STORGRP=SG2,VLSMSVST.EQ.(QUIESCEN)
* XS STORGRP=SG4,VLSMSVST.EQ.(DISABLEA)
* XS STORGRP=SG9,VLSMSVST.EQ.(DISABLEN)
* XS VLSMSVST.EQ.(NONE) * for listing NONSMS VOLUMES
* ENTER XHELP ALL in the SYSIN to get a printed manual
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us