Domain: PROCEDURE
Command description
The following settings for executing the procedure can be changed for test purposes with the MODIFY-PROCEDURE-TEST-OPTIONS command:
Logging of commands and data. Logging can only be enabled when this is allowed for the procedure.
Limiting back branches prevents continuous loops and similar phenomena.
Simulation of SDF-P-BASYS response if full SDF-P functionality is available. These settings apply to the task level.
The following settings are valid at the beginning of the task:
CMD = *NO, DATA = *NO
BACK-BRANCH-LIMIT = *NONE
FUNCTIONALITY = *FULL
MODIFY-PROCEDURE-TEST-OPTIONS is ignored in non-S procedures; logging is controlled with the BEGIN-PROCEDURE command in these procedures.
For details of the logging function, refer to section “Requesting logging”.
Format
MODIFY-PROCEDURE-TEST-OPTIONS |
LOGGING = *PARAMETERS(...) / *YES / *NO / *PARAMETERS(...) CMD = *UNCHANGED / *YES / *NO ,DATA = *UNCHANGED / *YES / *NO ,BACK-BRANCH-LIMIT = *UNCHANGED / *NONE / <text 0..1800 with-low arith-expr> ,FUNCTIONALITY = *UNCHANGED / *FULL / *BASIC |
Operands
LOGGING = *PARAMETERS(...)
Controls logging. This operand has no effect on procedures which are protected by a read password (see section “Setting the logging”).
CMD = *UNCHANGED / *YES / *NO
Specifies whether commands are logged.
If *UNCHANGED is specified, the current declaration is accepted unchanged.
The specification *YES is effective only if command logging is allowed in the first place.
DATA = *UNCHANGED / *YES / *NO
Specifies whether data is logged.
If *UNCHANGED is specified, the current declaration is accepted unchanged. The specification *YES is effective only if data logging is allowed in the first place.
LOGGING = *YES
Enables the declared logging function.
The specification *YES is effective only if command logging is allowed in the first place.
LOGGING = *NO
Disables logging.
Note
The entries LOGGING = *YES and LOGGING = *PARAMETERS(CMD=*YES,DATA=*YES) are equivalent, as are LOGGING = *NO and LOGGING =
*PARAMETERS(CMD=*NO,DATA=*NO).
BACK-BRANCH-LIMIT =
Determines the maximum number of back branches permitted in the procedure. This does not include back branches initiated with the SKIP-COMMANDS command.
BACK-BRANCH-LIMIT = *UNCHANGED
The current declaration is used unchanged.
BACK-BRANCH-LIMIT = *NONE
The number of back branches in unlimited.
BACK-BRANCH-LIMIT = <text 0..1800 with-low arith-expr>
Integer expression indicating the maximum number of permissible back branches.Error handling is activated when this limit is reached.
FUNCTIONALITY =
Determines which SDF-P functionality is to be activated or simulated. The setting is valid in the task level, i.e. it exists until the task is terminated or until the next modification.
FUNCTIONALITY = *UNCHANGED / *FULL / *BASIC
The previous definition is still valid.
FUNCTIONALITY = *FULL
If the SDF-P subsystem (purchased separately) is loaded in the system, then the full SDF-P functionality is activated.
FUNCTIONALITY = *BASIC
SDF-P-BASYS functionality will be simulated. If the SDF-P product (purchased separately) is available in the system, the MODIFY-PROCEDURE-TEST-OPTIONS command will also be executed with this setting.
Command return code
(SC2) | SC1 | Maincode | Meaning |
0 | CMD0001 | No error | |
1 | CMD0202 | Syntax error | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
64 | SDP0091 | Semantic error | |
64 | SDP0133 | Invalid data type in expression | |
130 | SDP0099 | No further address space available |
Example
See the function LOGGING-MODE( ), "LOGGING-MODE( ) Check logging ".