MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get the Dataset list that are in Work Volume?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
karavi2000
Beginner


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Fri Apr 16, 2004 2:44 am    Post subject: How to get the Dataset list that are in Work Volume? Reply with quote

Hi,

We have a requirement like to list all the datasets (when given the first qualifier) that are all on the WORK Volume using REXX. When I tried with the LISTDS command, it lists all the datasets but attempts to recall all the datasets that are in TAPE Volume. I dont want to do that. I just want to list all the datasets that are in WORK Volume. Is there any other way to do this? Please let us know.

Thanks & Regards,
Ravishankar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Apr 16, 2004 5:26 am    Post subject: Reply with quote

karavi2000,

Use listcat instead of listds and parse the output using rexx/clist checking the dataclas parameter.

Code:

 LISTCAT LEVEL(HIGH LEVEL QUALIFIER) ALL   


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
karavi2000
Beginner


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Fri Apr 16, 2004 6:43 am    Post subject: Reply with quote

Hi Kolusu,

Thanks. I got a way to go into the problem.

But is there anyway by which I get only the volume information from the LISTCAT. When I tried with VOLUME instead of ALL, still I got all the information. Is there any other way by which I get only the volume information of all the datasets. Please let me know.

Thanks & Regards,
Ravishankar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Apr 16, 2004 7:13 am    Post subject: Reply with quote

karavi2000,

Sure can. You can just get the volume information using the parm VOLUME on the listcat statement. Here is some additional information about listcat.

Code:

The LISTCAT command lists entries from either the master catalog or 
a user catalog.                                                     
                                                                     
Syntax -                                                             
       LISTCAT   CATALOG('catname/password')                         
                 LIBRARY('lib_name')                                 
                 FILE('dname')                                       
                 OUTFILE('dname')                                   
                 LEVEL('level') | ENTRIES('entryname/password' ...) |
                 LIBRARYENTRIES('library_entryname') |               
                 VOLUMEENTRIES('volume_entryname')                   
                 CREATION('nnnn')                                   
                 EXPIRATION('nnnn')                                 
                 NOTUSABLE                                           
                 CLUSTER  DATA  INDEX  ALIAS  SPACE  NONVSAM         
                     USERCATALOG  GENERATIONDATAGROUP  PAGESPACE     
                     ALTERNATEINDEX  PATH                           
                 ALL | NAME | HISTORY | VOLUME | ALLOCATION         
Required - NONE                                                     
Defaults - NAME                                                     
                                                                     
Abbreviations -                                                     
    Note - In addition to normal TSO short forms, these are accepted.
                                                                     
           LISTCAT              LISTC                               
           OUTFILE              OFILE                               
           LEVEL                LVL                                 
           NOTUSABLE            NUS                                 
           INDEX                IX                                   
           SPACE                SPC                                 
           NONVSAM              NVSAM                               
           USERCATALOG          UCAT                                 
           GENERATIONDATAGROUP  GDG                                 
           PAGESPACE            PGSPC                               
           ALTERNATEINDEX       AIX                                 
           LIBRARYENTRIES       LIBENTRIES     LIBENT                 
           VOLUMEENTRIES        VOLENTRIES     VOLENT                 
                                                                       
Operands -                                                             
                                                                       
CATALOG('catname/password')                                           
         - Specifies the name of the catalog containing the entries   
           to be listed.                                               
'catname'                                                             
         - Name of the catalog containing the entries to be           
           listed.                                                     
'password'                                                             
         - Password of the catalog containing the entries to be       
           listed.                                                     
Required - 'catname'                                                   
                                                                       
LIBRARY('library_name')                                               
         - Specifies the name of the library that is used as a filter 
           to restrict the volume entries to be listed.               
'library_name'                                                         
         - Name of the library that is used as a filter to restrict   
           the volume entries to be listed.                           
Required - 'library_name'                                             
                                                                       
FILE('dname')                                                           
         - Identifies the volumes that contain the catalog             
           entries to be listed.                                       
'dname'  - Name of the DD statement that identifies the volumes         
           containing catalog entries to be listed.                     
                                                                       
OUTFILE('dname')                                                       
         - Identifies the alternate output data set.                   
'dname'  - Name of the JCL statement that identifies the               
           alternate output data set.                                   
                                                                       
LEVEL('level')                                                         
         - Specifies the level of entry names to be listed.             
'level'  - level of entry names to be listed.                           
                                                                       
ENTRIES('entryname/password' ...)                                       
         - The names of the individual entries to be listed.           
'entryname'                                                             
         - Name of the object whose entry is to be listed.             
'password'                                                             
         - Password of password-protected cluster or component or       
           object.                                                     
REQUIRED - 'entryname'                                                 
                                                                       
LIBRARYENTRIES('library_entryname')                                     
         - The names of the individual library entry to be listed.     
'library_entryname'                                                     
         - Name of the object whose entry is to be listed. An           
           asterisk "*" may be used as part of the library_entryname   
           to cause a generic search to be performed.                   
REQUIRED - 'library_entryname'                                         
                                                                       
VOLUMEENTRIES('volume_entryname')                                       
         - The names of the individual volume entry to be listed.       
'volume_entryname'                                                     
         - Name of the object whose entry is to be listed in the       
           form 'Vvolser' where volser is a 1-6 character volume       
           serial name. An asterisk "*" may be used as part of the     
           volser to cause a generic search to be performed.           
REQUIRED - 'volume_entryname'                                         
                                                                       
CREATION('nnnn')                                                       
         - Selection of objects listed by creation date.               
'nnnn'   - Objects listed if created 'nnnn' days ago or earlier,       
           where 'nnnn' is a decimal number 0 - 9999.                 
                                                                       
EXPIRATION('nnnn')                                                     
         - Selection of objects listed by expiration date.             
'nnnn'   - Objects listed if expiring 'nnnn' days hence or earlier,   
           where 'nnnn' is a decimal number 0 - 9999.                 
                                                                       
NOTUSABLE                                                             
         - The entries for data and index components that are         
           marked as unusable are to be listed.                       
                                                                       
CLUSTER  - The cluster entries are to be listed.                       
                                                                       
DATA     - The entries for data components are to be listed.           
                                                                       
INDEX    - The entries for index components are to be listed.         
                                                                       
ALIAS    - The alias entries are to be listed.                         
                                                                       
SPACE    - The entries for volumes containing VSAM data spaces are to 
           be listed.  SPACE is mutually exclusive with other entry   
           types. VSAM catalogs only.                                 
                                                                       
NONVSAM  - The entries for non-VSAM data sets are to be listed.       
                                                                       
USERCATALOG                                                           
         - The entries for user catalogs are to be listed.             
                                                                       
GENERATIONDATAGROUP                                                   
         - The entries for generation data groups are to be listed.   
                                                                       
PAGESPACE                                                             
         - The entries for page spaces are to be listed.               
                                                                       
ALTERNATEINDEX                                                       
         - The alternateindex entries are to be listed.               
                                                                     
PATH     - The path entries are to be listed.                         
                                                                     
ALL      - All the fields are to be listed for each catalog entry.   
                                                                     
NAME     - The name and entry type of the cataloged objects are to   
           be listed.                                                 
                                                                     
HISTORY  - The information provided by specifying name and owner     
           identification, creation date, expiration date and catalog
           recovery information for the objects is to be listed.     
                                                                     
VOLUME   - The information provided by specifying HISTORY and volume 
           serial numbers and device types allocated to the objects   
           is to be listed.                                           
                                                                     
ALLOCATION                                                           
         - The information provided by specifying VOLUME and detailed
           information about the allocation are to be listed.         


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group