Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Overview of the subcodes

The subcodes can only be specified for specific subroutine functions. They are specified in the SUBCODE field of the control block CB. If no subcode is specified, the SUBCODE field in control block CB must be set to blank (X’40’ / UNUSE).

The subcodes determine:

  • the output format of members

  • how records and members are read or written

  • control of version automation.

The following functions have a subcode:

TOCPRIM, TOCSEC, GET, CLOSE, LST, ADD, COPY, OPENGET, OPENPUT, PROVIDE, REN, RETURN and COPYLIB.

The table below shows all subcodes, their meanings and how they are assigned to the respective subroutine functions.

Subcode

Meaning

Function

SHORT

Output format:


Outputs member name and storage mode.

TOCPRIM

Outputs member name, secondary name, secondary
attribute and storage mode.

TOCSEC

LONG

Extended output format:


Outputs user, creation and modification dates and times,
CCS name, protection attributes, borrowing privileges,
member state, holder and access stamp in addition to
member name and storage mode.

TOCPRIM

Outputs user, creation, and modification dates and
times, secondary name and secondary attribute, CCS
name, protection attributes, borrowing privileges,
member state, holder and access stamp in addition to
member name and storage mode.

TOCSEC

DIR

Direct reading of a record:
Outputs the record identified by RECORD-TYPE and
RECORD-NR in control block RD.

GET

SEQ

Sequential reading of a record:
Outputs next the record that has the same access path
identification as the last GET call.

WRITE

Write output member back:
Writes the last member state back into the library.


CLOSE

RESET

Discard output member:
Discards the member state last written.

SYM

Display mode of a record:
Represents the records depending on the member type.


LST

HEX

Display mode of a record:
Outputs the record character by character and in
hexadecimal form (superimposed).

INCP

Version automation:
Increments with prefix

ADD
COPY
OPENPUT
PROVIDE
REN
RETURN

INCB

Version automation:
Increments with base

HIGP

Version automation:

Overwrites the member with the highest version in the
prefix

UNUSE

All versions are specified explicitly

EXTRA

Opens a member for reading irrespective of the
existence of format B records

OPENGET

UNUSE

For future extensions

All as yet
unnamed
functions