Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

LMS in interactive/batch mode

LMS runs in interactive or batch mode.

The LMS log is output to system file SYSOUT or to the medium defined by means of MODIFY-LOGGING-PARAMETERS TEXT-OUTPUT= (system file SYSLST, library
member or EDT work file 9). If LMS is to output positive acknowledgments as well as error messages, the logging scope must be defined using MODIFY-LOGGING-PARAMETERS LOGGING=*MAXIMUM.

Interactive mode

Since it is also possible to select members by specifying “wildcards”, it is not immediately apparent which member is currently being processed. A step-by-step approach is therefore advisable in the case of statements which delete or overwrite member data. This is controlled by means of a dialog with the user.

In interactive mode, LMS offers an optional inquiry mechanism which allows the user to control the execution of statements that process members.

The user is asked for each member whether he wishes to process or skip the member or to abort the statement.

The inquiry mechanism is activated by means of the operand DIALOG-CONTROL = *YES. The inquiry mechanism is possible in the ADD-, COPY-, DELETE-, EDIT-, EXTRACT-, MODIFY-ELEMENT, MODIFY-ELEMENT-ATTRIBUTES, MODIFY-ELEMENT-PROTECTION and MODIFY-LMS-DEFAULTS statements. The default value can be modified by the MODIFY-LMS-DEFAULTS statement.

The inquiry mechanism can be restricted to error cases by DIALOG-CONTROL = *ERROR. In the following non-recoverable error cases, the inquiry mechanism is activated in interactive mode even if DIALOG-CONTROL = *NO:

  • A member cannot be accessed, e.g. because it is locked by another user (temporary exclusive use of a member, e.g. due to modification).
  • A library cannot be accessed, e.g. because the current access rights do not permit access (temporary exclusive use of a library).

In interactive mode, it is possible to make LMS behave as if it were running in batch mode by setting RUN-MODE to *BATCH in the MODIFY-LMS-DEFAULTS statement. LMS does not activate the inquiry mechanism then.

Batch mode

In case a library, member or type should be locked, the user can set the NEXT-ATTEMPT operand of the MODIFY-LMS-DEFAULTS statement to define the number of open attempts to be made and the time interval between them. The default setting is that no further attempts are made.