IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Oct 25, 2010 1:39 pm
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
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 Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Thu Oct 28, 2010 7:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top