Previous Topic: Usage Considerations and SummaryNext Topic: Input Parameters


List PDS Members with CAZ2LPDS

You can use program CAZ2LPDS to return information about PDS members. You can invoke CAZ2LPDS as a normal batch program, or it can be called in a REXX program or by other means. The returned information is written to a sequential output file, or optionally written to the REXX stack when the caller is a REXX program.

The input PDS and sequential output files must be allocated before invoking CAZ2LPDS. By default, the input and output DDNAMEs are SYSIN and SYSPRINT. The default DDNAMEs can be overridden.

The input PDS must have an LRECL of 80 characters. Currently, this LRECL is a limitation of the CAZ2LAPI program that is used to provide PDS access. The number of members in the input PDS has no limitation.

CAZ2LPDS is designed to support multiple functions. Currently, the only function that is supported is “LISTDIR”, which returns a list of member names from the specified input PDS.

This section contains the following topics:

Input Parameters

Return Codes

Output File Characteristics

Execution Considerations

Batch Execution Examples

REXX Execution Examples