...
Command - A string containing a CL command to execute.
ignoreError - optional boolean value: “true” = ignore error if command fails; “false” = throw error if command fails. Default is “false”.
msgId - optional strongly-defined char(7) field to be updated with the error MsgId if the command fails.
Return value
-1 : null is passed for command
1: command fails
0: command is successful
Exception Handling
An Error instance will be thrown with the following properties:
...
message - The IBM i message text.
...
, if the 2nd optional parameter ignoreError
is not specified or “false”.
statusCode- The message id.help - The message help text.
RPG Equivalent
QCMDEXC System API
...