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

Index status of Volume


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RamkumarB

New User


Joined: 08 Jun 2009
Posts: 12
Location: Chennai

PostPosted: Wed Mar 16, 2011 12:00 pm
Reply with quote

Hi,

Could you please let me know how to find the INDEX STATUS (Enable/Disable) of specific DASD volume thru batch job.
We can see the INDEX STATUS of volume in ISMF but i want to know how we get it from the job.


Thanks,
Ram
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Mar 16, 2011 12:40 pm
Reply with quote

and after You have seen it with a job what is it going to happen ?
if You tell the exact requirement You will certainly get better answers
Back to top
View user's profile Send private message
RamkumarB

New User


Joined: 08 Jun 2009
Posts: 12
Location: Chennai

PostPosted: Wed Mar 16, 2011 12:45 pm
Reply with quote

As a monitoring purpose, We have to generate a report about index status for some of volumes across different storage groups.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Mar 16, 2011 12:54 pm
Reply with quote

I wonder why so many people and storage supporters are not aware of

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2s272/1.21.5?SHELF=DGT2BK81.bks&DT=20090227163444#HDRRUNBAT

and

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2s272/1.21?SHELF=DGT2BK81.bks&DT=20090227163444

all applied to

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I270/11.0?SHELF=DGT2BK81&DT=20080602132758

using the parameter
Quote:
NODATAINFO
says that no data set information records are generated or written to the output data set. Use this parameter if you want only volume information generated for the given volumes or storage groups.


there are also DFSORT snippets on how to process DCOLLECT data ( just search for them )
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 16, 2011 1:59 pm
Reply with quote

I always use DCOLLECT and REXX in batch
Back to top
View user's profile Send private message
RamkumarB

New User


Joined: 08 Jun 2009
Posts: 12
Location: Chennai

PostPosted: Thu Mar 17, 2011 11:40 am
Reply with quote

hi Expat,

I am new to storage. Could you please explain how we get volume information from DCOLLECT output.


Regards,
Ram
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 17, 2011 1:48 pm
Reply with quote

We use IDCAMS DCOLLECT to get the records, very well documented in the manual, and use REXX to interpret the records, V or VL as I can not recall at the moment, and from those records the index status is found.

I would usually post code that I have already, but as I am working in a non mainframe environment at the moment do not have access to my archives.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 18, 2011 3:35 pm
Reply with quote

for dfsort samples see
www-01.ibm.com/support/docview.wss?rs=114&uid=isg3T7000081

for rexx samplessee
www.cbttape.org/ftp/cbt/CBT206.zip
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Mon May 23, 2011 5:23 pm
Reply with quote

If you have FDR it can provide you with a formatted report without having to post-process anything. It can also selectively report just volumes with a particular VTOCIX status. Example below scans a Storgrp to find volumes with either disabled VTOCIX's or no VTOCIX


//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,VLINDSTA,VLUNIT,VLDEVTYP)
XS STORGRP=sgname*,VLINDSTA.EQ.(NONE,YES)
PRINT SUM=NO,SORT=NO,DATATYPE=VOLDATA,RPTYPE=TABLE,
ENABLE=FASTPATH,SUMDEVICE=UNIQUE,BYTEFORMAT=MEGA


ps: Run the above JCL with sysin card XHELP ALL to print the help 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 Job completes in JES, but the status ... IBM Tools 1
No new posts Cobol file using index COBOL Programming 2
No new posts Volume chain using DFSORT DFSORT/ICETOOL 17
No new posts File Status 04 COBOL Programming 3
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top