SM2 output file

SM2 operation

SM2 output file with freely selected file attributes

Such a file is created with the statement OPEN-LOG-FILE FILE=*BY-LINK-NAME after the name and attributes have been defined with the ADD-FILE-LINK command.

It is possible to define

a PAM file in output mode with a freely selectable name, or

a SAM file with freely selectable open mode and file name.

The following table contains the file attributes which are preset in SM2 or can be defined with the FILE command:

File creation

FILE=*STD

FILE=*BY-LINK-NAME

 

operand

 

 

 

 

 

 

 

File attribute

Preset

Optional

 

definition

 

 

 

 

 

 

 

File name

SM2.hostname.

filename 1 )

 

 

yyyy-mm-dd.sss.nn

 

 

 

 

 

 

File link name

 

SMLINK

 

 

 

 

Block size 2 )

BUFFER-LENGTH =

BUFFER-LENGTH = *STD (SIZE=16)

 

*STD (SIZE=16)

 

 

 

 

 

 

Storage space

SPACE=*RELATIVE

selectable 2 )

 

allocation

(PRIMARY-

 

 

 

ALLOCATION=512,

 

 

 

SECONDARY-

 

 

 

ALLOCATION=512)

 

 

 

 

 

 

Access method

SAM

ACCESS-METHOD =

ACCESS-METHOD =

 

 

*UPAM

*SAM

 

 

[,SHARED-UPDATE=

 

 

 

YES]3 )

 

Open mode

OUTIN

OPEN-MODE = *OUTIN

OPEN-MODE =

 

 

 

*OUTPUT / *EXTEND

 

 

 

 

Format of the data

BLOCK-CONTROL-

BLOCK-CONTROL-INFO = *PAMKEY /

blocks

INFO = *WITHIN-

*WITHIN-DATA-BLOCK / *NO

 

DATA-BLOCK

 

 

 

 

 

 

Table 6: Possible attributes of the SM2 output file

SM2 treats the operand BLOCK-CONTROL-INFO= *NO in the same way as

BLOCK-CONTROL-INFO= *WITHIN-DATA-BLOCK.

196

U3585-J-Z125-8-76

Page 196
Image 196
Siemens SM2 monitoring system, U3585-J-Z125-8-76 1 SM2 output file SM2 operation, Block-Control-Info= *Within-Data-Block