PIPE MEMLIST

Syntax

MEMLIST

Read syntax diagramSkip visual syntax diagramMEMLIST (DD) (DSN) dsndd

Synonyms

Stage Name Synonym
MEMLIST MEML

Command Description

The MEMLIST stage creates a list of members in one or more partitioned data sets (PDS) or data definitions (DD). For a DD, the members are listed for each data set in the concatenation. Members defined in an operator data set and members defined using INSTORE COMMON are also listed. For more information, see the OVERRIDE and PIPE INSTORE commands in the NetView® online help.

The output is typically one multiline message for each input, one line for each member, as follows:
Column
Information
1 - 8
Member name
9
Blank
10
Relative data set number
For a PDS, the relative data set number is 1. For DD, the numbers match the concatenated data sets indicated by the LISTA command. For an operator data set member, the number is -1. For an INSTORE member, the number is 0 (zero).

Streams

Stream Type Number Supported
Input 1
Output 2

Termination Conditions

MEMLIST terminates when the input stream or both output streams are disconnected.

Operand Descriptions

(DD)
Specifies that the specification is for a data definition.
(DSN)
Specifies that the specification is for a data set name.
dsndd
The name of a DD or PDS. If an initial (DD) or (DSN) is not specified, the MEMLIST stage examines the specification. If the argument is a single 1- to 8-character value without period delimiters or quotation marks, it is considered a DD. Otherwise, it is considered a DSN. The dsndd value can be specified on the stage, the input stream, or both.

Return Codes

If a secondary output stream is connected, each nonzero return code is sent as a signed 10-digit decimal number, and includes the name of the data set that caused the return code. For example, if XX does not exist, MEMLIST XX produces the following text: '+0000000032 XX'.

Return Code
Meaning
 12
The user is not authorized to the data set.
 28
The data set is unavailable. It might be in use by another user or task.
 32
The data set does not exist.
 69
Input or operand is not valid.
208
An RDJFCB error occurred. It might be a nonpartitioned DSORG.
212
An unspecified OPEN error occurred.
216
An unspecified READ error occurred.
300
A system problem occurred.

Example: Listing PDS Members

The following example illustrates how to list the members of a partitioned data set:
PIPE (END ;) a: MEML USER.INIT | CONS ONLY; a:| COLOR YEL | CONS

Example: Listing Members of Multiple DDs

The following example illustrates how to list members of multiple data definitions:
 PIPE LIT /DSIPARM DSIVTAM/ |  SPLIT | MEML | CONS ONLY