z/OS ISPF Reference Summary
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


LMDLIST—list a data set

z/OS ISPF Reference Summary
SC19-3624-00

Command invocation format

Read syntax diagramSkip visual syntax diagram
>>-ISPEXEC--LMDLIST--LISTID(dslist-id)-------------------------->

>--+----------------------+--+----------------------+----------->
   |         .-LIST---.   |  '-DATASET(dataset-var)-'   
   '-OPTION(-+--------+-)-'                             
             +-FREE---+                                 
             +-SAVE---+                                 
             +-SAVEC--+                                 
             '-TOTALS-'                                 

   .-STATS(NO)--.                    .-STATUS(YES)-.   
>--+------------+--+--------------+--+-------------+-----------><
   +-STATS(YES)-+  '-GROUP(group)-'  '-STATUS(NO)--'   
   '-STATS(PRT)-'                                      

Call invocation format

Read syntax diagramSkip visual syntax diagram
                                             .-'LISTbbbb'-.   
>>-CALL--ISPLINK--('LMDLISTb'--,dslist-id--,-+------------+----->
                                             +-'FREEbbbb'-+   
                                             +-'SAVEbbbb'-+   
                                             +-'SAVECbbb'-+   
                                             '-'TOTALSbb'-'   

                   .-'NObbbbbb'-.                
>--,dataset-var--,-+------------+--,-+-------+------------------>
                   '-'YESbbbbb'-'    '-group-'   

     .-'Yes--'-.      
>--,-+---------+-);--------------------------------------------><
     '-'NO--'--'      

OR

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPEXEC--(buf-len,--buffer);--------------------------><

Return codes

 0
One of these:
  • LIST option - Normal completion. The name of the next data set in the list is returned in the variable specified in keyword DATASET. Data set statistics are returned, if requested.
  • FREE option - Normal completion. The internal storage associated with the data set is freed.
  • SAVE option - Normal completion. The data set list has been successfully written to a data set. The total number of tracks and data sets are returned to dialog variables in the function pool, if requested.
  • SAVEC option - Normal completion. The data set list has been successfully written to a data set. The total number of tracks and data sets are returned to dialog variables in the function pool, if requested.
  • TOTALS option - Normal completion. No list has been written to a data set. The total number of tracks and data sets are returned into dialog variables the function pool.
 4
No data sets matched specified search criteria (the values for keywords LEVEL and VOLUME on the LMDINIT service).
 8
End of data set list.
10
Data set list does not exist for list-id.
12
A keyword value is incorrect.
16
Truncation or translation error in accessing dialog variables.
20
Severe error; unable to continue.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014