z/OS TSO/E Command Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


LISTDS command

z/OS TSO/E Command Reference
SA32-0975-00

Use the LISTDS command to have the attributes of specific data sets displayed at your terminal. The LISTDS command works differently, depending upon whether the data set is VSAM or non-VSAM. If you are unsure as to whether the data set is VSAM or not, enter the LISTDS command with no operands.

A VSAM data set causes the LISTDS command to display only the data set organization (DSORG), which is VSAM. Use the LISTCAT command to obtain more information about a VSAM data set.

For non-VSAM data sets, you can obtain:
  • The volume serial number of the DASD volume on which the data set resides.
  • The logical record length (LRECL)
  • The block size (BLKSIZE)
  • The record format (RECFM)
  • The data set organization (DSORG). The data set organization is indicated as follows:
    • PS for sequential
    • PO for partitioned
    • IS for indexed sequential
    • DA for direct access
    • VSAM for VSAM data entries
    • ** for unspecified
    • ?? for any other specification
  • Directory information for members of partitioned data sets, if you specify the data set name in the form data_set_name(member_name).
  • Creation date, expiration date, and, security attributes.
  • File name and disposition
  • Data set control blocks (DSCB).
Note: Data sets that are dynamically allocated by the LISTDS command are automatically freed when the command terminates, unless the data set previously was allocated with the permanent attribute. You must explicitly free dynamically allocated data sets.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014