Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

LOCK: lock a member

LOCK explicitly locks a member against modification. ED specifies the member to be locked and LD specifies the library containing this member. The complete type, name and version of the member must be specified.

The member remains locked until UNLOCK or END is entered or the program is terminated. The lockout applies in memory only.

Call parameters

The parameter structures must be given in the following sequence in the subroutine call.

Parameter
structure

Field

Meaning

CB


SCBVERSION

FUNCTION

SUBCODE

ACC

LD-RETURN

Function control block

Interface version

Function code X’0C’

Subcode currently not used: UNUSE

Subroutine access identification

Full DMS file name in LD

LD


PASSWORD

LINK

MAX-NAME-LEN

NAME

Library descriptor

Password as per PASSWORD command

Link name

Maximum length of library name

Library name

ED


TYP

NAME

VERSION

Member descriptor

Member type

Member name

Member version

Return parameters

Parameter
structure

Field

Meaning

CB


RETURNCODE

LMS-MSG

DMS-MSG

PLAM-MSG

Function control block

Return code

LMS message code

DMS message code

PLAM message code

LD


NAME

Library descriptor

Full DMS file name of library (dependent on LD-RETURN

field of CB)

ED


VERSION

Member descriptor

Member version (if call used *HIGH)