The EXECUTE-CMD command passes the command specified with the operand CMD=... on for execution and writes the command output (messages, output information) to a specified variable. Both structured and unstructured output can be generated, depending on the capabilities of the command server. The reaction to errors occurring in command execution can be controlled by evaluation of the return code.
EXECUTE-CMD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Return codes
The following return codes are possible if RETURNCODE = *STD:
(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 | |
130 | SDP0099 | No further address space available | |
xx | xx | xxxxxxx | other return codes from the executed commands |
The following return codes are possible if RETURNCODE = *NONE / *VARIABLE(...):
(SC2) | SC1 | Maincode | Meaning |
0 | CMD0001 | No error (but only in EXECUTE-CMD) | |
1 | CMD0202 | Syntax error | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
64 | SDP0091 | Semantic error | |
130 | SDP0099 | No further address space available |