Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

OPEN-LOG-FILE Open SM2 output file

This statement is used to open an SM2 output file. The current monitoring cycle is interrupted.

Format

OPEN-LOG-FILE

FILE = *STD / *BY-LINK-NAME

,BUFFER-OUTPUT = *NORMAL / *IMMEDIATE

Operands

FILE =
An SM2 output file is opened; it includes the options listed below. If any other SM2 output file has already been opened at this point in time, it will be closed immediately.

FILE = *STD
A SAM file with the name SM2.hostname.yyyy-mm-dd.sss.nn is opened, where hostname stands for the name of the system as it appears on the screens, yyyy.mm.dd for the day and the point in time the file was created, sss for the number of the BS2000 session and nn for the current number of the SM2 output file within this session (counting from 1). The file is created under the ID from which the OPEN statement was issued. For information on the file attributes, see section "Writing to the SM2 output file".

FILE = *BY-LINK-NAME
Opens a SAM or PAM file with the name and file attributes previously defined in a ADD-FILE-LINK command. The link name SMLINK is to be used.

BUFFER-OUTPUT =
Defines file output.

BUFFER-OUTPUT = *NORMAL
A buffer, when full, is always written to a file.

BUFFER-OUTPUT = *IMMEDIATE
At the end of each monitoring cycle, a record for identifying the end of the cycle is written, after which the output buffer is output immediately. Even buffers which are not completely filled with data are output. This could lead to block corruption. Consequently, a file generated in this way should not be processed using SM2U1; the sections of the block not filled with data are removed in this case. This method of file output should be employed if the opened file is to be converted using SM2U1.