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

how to list the volumes that included in a storage group?


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

New User


Joined: 26 Sep 2005
Posts: 7

PostPosted: Sun Oct 09, 2005 2:23 pm
Reply with quote

and then which command can browse the information of a volume?
thanks!
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Oct 10, 2005 4:29 pm
Reply with quote

Hi Naga,

You can try following JCL for the same, If you want the store the value and use it.
Code:

//STEP01  EXEC PGM=SORT                                       
//SYSOUT   DD   SYSOUT=*                                     
//SORTIN  DD DSN=Input File name ,DISP=SHR             
//SORTOUT DD DSN=Output file anme ,DISP=SHR             
//SYSIN   DD *                                               
  OPTION COPY                                                 
  OUTFIL REMOVECC,NODETAIL,                                   
   TRAILER1=(COUNT=(M10,LENGTH=02))                           
/*           


Hope this helps.

Regards

Rupesh
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Oct 10, 2005 4:38 pm
Reply with quote

Hi
Sorry my last Answer was not for this query

Quote:
how to list the volumes that included in a storage group?


In our shop we generally follow the following steps

Code:
TSO QW


S - Request DASD Free Space Information

Code:
Seletc S


Give the vol name

Code:
Volser ==>  Temp*


It will give you the list of volume.

Hope This helps

Regards

Rupesh
Back to top
View user's profile Send private message
hclily

New User


Joined: 26 Sep 2005
Posts: 7

PostPosted: Wed Oct 12, 2005 12:24 pm
Reply with quote

I think that you misunderstand my question,but I have solved that problem yesterday,thanks anyway!
Back to top
View user's profile Send private message
hkb007

New User


Joined: 30 Dec 2005
Posts: 5

PostPosted: Sat Dec 31, 2005 5:26 pm
Reply with quote

Can you share your solution?

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

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Tue Jan 03, 2006 7:14 pm
Reply with quote

Hclily Probably TSO QW command would'n be enable on ur system.as this is a quick view ,However check with the ISMF to get the Volumes list .. and this is a great tool to know abt the storage
Back to top
View user's profile Send private message
philepeo

New User


Joined: 18 Nov 2005
Posts: 4

PostPosted: Sun Feb 05, 2006 7:43 am
Reply with quote

to view volumes in a storage group use ismf, select the option for storage grouge, either generate a list of all storage groups or type in the name of the req'd group and then type LISTVOL as a line command.
Back to top
View user's profile Send private message
Paul Hacker

New User


Joined: 02 Oct 2008
Posts: 15
Location: Tyler, texas

PostPosted: Sat Jun 13, 2009 12:33 am
Reply with quote

philepeo wrote:
to view volumes in a storage group use ismf, select the option for storage grouge, either generate a list of all storage groups or type in the name of the req'd group and then type LISTVOL as a line command.


Sorry to dig up this old post, but how can you make this into a JCL batch? I'd like to get the ISMF to get the listvol for a storage group into a file or report so I can sort it by how fragmented the volumes are on that storage group.

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

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Mon May 06, 2013 8:13 pm
Reply with quote

I know its a old post but i hope this JCL would be useful for those who looking for it.

//STEP1 EXEC PGM=IKJEFT01
//OPS$OPSP DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OC D SMS,STORGRP(SGPR6),LISTVOL
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon May 06, 2013 8:30 pm
Reply with quote

ignich7, you need to be aware that OC is NOT a standard TSO command -- it is something specific to your site. I ran your JCL, exactly as posted, and got back
Code:
1READY
   OC D SMS,STORGRP(SGPR6),LISTVOL
 IKJ56500I COMMAND OC NOT FOUND
 READY
 END
So your vastly out-of-date "helpful" code will work only at your site or other sites with OC (whatever it is and wherever it came from) installed. Perhaps not helpful enough to resurrect a topic last updated almost 4 years ago?
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Thu May 16, 2013 12:55 pm
Reply with quote

Go to ISMF option and select option 6 Storgrp, enter the storgrp name and specify 'ACTIVE' for the CDS name. When it displays the storgrp enter LISTV or LISTVOL to the left of the name. The save the list type LISTPRT on the command line. Same can be done using Naviquest which does the equivalent in batch.

In MVS enter the command D SMS,SG(storgrp),LISTVOL

Other utilities such as FDREPORT can also list the volumes.
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 CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Insufficient Storage ABENDS & Debugging 7
No new posts Build dataset list with properties us... PL/I & Assembler 4
Search our Forums:

Back to Top