Previous Topic: LIST FunctionNext Topic: RENAME Function


PUNCH Function

PUNCH writes all or part of a member to a punch file.

►►─ PUNCH ─ memname ─┬───────────────────┬────────────────────────────────────►◄
                     └─ ,n1 ─┬─────────┬─┘
                             ├─ ,n2 ───┤
                             └─ ,LAST ─┘
PUNCH

Specifies the PUNCH function.

memname

Specifies the qualified name of the member to punch. For instructions to format the member name, see HEX Function. To punch all of the records in a member, specify:

PUNCH memname
n1

Specifies either one record number or the first record number in a series of records. To punch one record, specify:

PUNCH memname,n1
n2

Specifies the final record number in a series of records. To punch a series of records, specify:

PUNCH memname,n1,n2
LAST

Specifies the last record in the member. To punch a series of records up to and including the last record in a member, specify:

PUNCH memname,n1,LAST

Example

To punch a program called PUNCHEX in system $ID in version 8, enter:

HEX /
PUNCH $IDPUNCHEX/4040404040404040/008L