Member
One named item inside a library, such as one job or one program.
Also written PDS member
Why it matters. You do not submit a library. You submit one member of it, and you name the member in brackets.
See it
Read a name
Tap a dataset to read its name, then open it.
PO. Partitioned: a drawer of folders, with members inside.
Zed's, in development, holding jobs. A library, so it has members.
Members
Tap a member to open it.
Syntax
SUBMIT 'library(member)' LISTDS 'library' MEMBERS
- member
- 1 to 8 characters. The first is a letter or # @ $.
- ( )
- The brackets pick the member.
- Alias
- A second name for the same member.
- Directory
- The list of member names kept at the start of a library.
Try it LISTDS
- 1
List the members inside your library ZB0001.DEV.JCL.
LISTDS 'ZB0001.DEV.JCL' MEMBERS - 2
Send one member to run: CUSTCHK.
SUBMIT 'ZB0001.DEV.JCL(CUSTCHK)' - 3
Now try to submit the library without a member.
SUBMIT 'ZB0001.DEV.JCL'
Remember
- A member is one named item in a library.
- The name is up to 8 characters, in brackets after the library: DSN(MEMBER).
- The brackets pick the member. No brackets means the whole library.
The usual mistake
SUBMIT 'ZB0001.DEV.JCL'
That names the library, not a job inside it.
SUBMIT 'ZB0001.DEV.JCL(CUSTCHK)'
On real z/OS
The refusal for SUBMIT with no member is a Mainframe101 sim: note. The real command gives its own error message. Real members of a PDS also carry user data in the directory (statistics for source members), which MF/OS does not show.
Where can I practise Member?
Right here, at ZedBank. You take a junior job at a simulated bank and use Member in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- Partitioned datasetA dataset that works like a library or folder, holding many separately named members inside one dataset.
- PDSEThe modern version of a partitioned dataset, which reclaims space automatically and removes the old size limits.
- ISPF editorThe full-screen text editor used to write and change JCL, COBOL, REXX and anything else held in a dataset.
- CopybookA shared block of COBOL declarations kept in a library and included into programs, so a record layout is defined once.
- JCLJob Control Language: the language used to tell the mainframe what programs to run, in what order, and with what files.