// DEPRECATED FUNCTIONS BELOW. WILL BE REMOVED SOMETIME AFTER v1.0 /** * CL Command Options * @typedef {object} clOptionsDeprecated * @property {string} [exec=cmd] - How to run the command. * Valid options: 'cmd', 'system', or 'rexx'. Default is ``cmd``. * @property {string} [error=fast] - 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. * @property {string} [hex=off] - Whether to output data in hex format. * Valid options are ``on`` or ``off``. Default is ``off``. * @property {string} [before] - The CCSID to convert to before command call. * @property {string} [after] - The CCSID to convert to after command call. */ /** * @deprecated Replaced by ``CommandCall`` and will be removed in the next major version. * @description Generates a CL command. * @param {string} cmd - The command to string run. * @param {clOptionsDeprecated} [options] - The command options. * @returns {string} The generated XML for the CL command. */ function iCmd(cmd, options) { iCmdDeprecate('As of v1.0, class \'iCmd()\' is deprecated. Please use \'CommandCall\' instead.'); const command = new CommandCall({ command: cmd, type: 'cl', options }); return command.toXML(); }