Is there a TSO command that will show a Libray type?

j e
j e used Ask the Experts™
on
I have a list of Mainframe libraries -- and I have to identify which ones are in PDSE format.

Is there a command that I can use in batch that will show this?

I have procedures to run LDR and LU commands in batch -- and hoping to find a command to identify library types.

Thanks for the help,
je
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Commented:
If you do a listcat ent all command PDSE's will have "DSNTYPE----------LIBRARY" as part of the output.
You can do listcat's in a batch job by running the program IDCAMS.

listcat ent('fully.qualified.dsn') all                                                              
 NONVSAM ------- fully.qualified.dsn                                                                
      IN-CAT --- catalog                                                        
      HISTORY                                                                                
        DATASET-OWNER-----(NULL)     CREATION--------yyyy.ddd                                
        RELEASE----------------2     EXPIRATION------0000.000                                
        ACCOUNT-INFO-----------------------------------(NULL)                                
        DSNTYPE----------LIBRARY                                                            
      SMSDATA                                                                                
        STORAGECLASS ---sclass     MANAGEMENTCLASS-mclass                                
        DATACLASS --------(NULL)     LBACKUP ---2015.190.0431                                
      VOLUMES                                                                                
        VOLSER------------volume     DEVTYPE------X'3010200F'     FSEQN------------------0    
      ASSOCIATIONS--------(NULL)                                                              
      ATTRIBUTES
j e

Author

Commented:
This works perfectly.  Thanks!
je

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial