iCmd(cmd, options)


Deprecated: Replaced by CommandCall and will be removed in the next major version.

Generates a CL command.

  • cmd (string) – The command to string run.
  • options (clOptionsDeprecated) – The command options.

string – The generated XML for the CL command.


CL Command Options

  • exec (string) – How to run the command. Valid options: ‘cmd’, ‘system’, or ‘rexx’. Default is cmd.
  • error (string) – Determines action when an error is encountered. Valid options are on, off, or fast. Default is fast. Using on will cause the script execution to stop and log a full error report. Using off or fast continues executing the script. The Difference is that fast will log a brief error report and off will not.
  • hex (string) – Whether to output data in hex format. Valid options are on or off. Default is off.
  • before (string) – The CCSID to convert to before command call.
  • after (string) – The CCSID to convert to after command call.