Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

EXECUTE-CMD Execute command and structured output

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

CMD = <c-string 0..1800 with-low> / <text 0..1800 with-low>

,TEXT-OUTPUT = *SYSOUT / *NONE / <composed-name 1..255>(...)


<composed-name 1..255>(...)




WRITE-MODE = *REPLACE / *EXTEND

,STRUCTURE-OUTPUT = *NONE / <composed-name 1..255>(...)


<composed-name 1..255>(...)




WRITE-MODE = *REPLACE / *EXTEND

,MSG-STRUCTURE-OUTPUT = *NONE / <composed-name 1..255>(...)


<composed-name 1..255>(...)




WRITE-MODE = *REPLACE / *EXTEND /

,RETURNCODE = *STD / *NONE / *VARIABLE(...)


*VARIABLE(...)




SUBCODE1 = *NONE / <composed-name 1..255>




,SUBCODE2 = *NONE / <composed-name 1..255>




,MAINCODE = *NONE / <composed-name 1..255>

Return codes

The following return codes are possible if RETURNCODE = *STD:

(SC2)

SC1

Maincode

Meaning


0CMD0001No error

1CMD0202Syntax error

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

64SDP0091Semantic error

130SDP0099No further address space available
xxxxxxxxxxxother return codes from the executed commands

The following return codes are possible if RETURNCODE = *NONE / *VARIABLE(...):

(SC2)

SC1

Maincode

Meaning


0CMD0001No error (but only in EXECUTE-CMD)

1CMD0202Syntax error

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

64SDP0091Semantic error

130SDP0099No further address space available