The CLCommand Method
CL Command Execution Method
There are several methods to call a command:
-
CLInteractiveCommand – Returns screen output from a command.
-
$output = $obj->CLInteractiveCommand($Command);
-
CLcommand – Returns only a boolean success flag from a command. Fastest way to run a command.
-
$success = $obj->CLCommand($Command)
-
ClCommandWithOutput – Returns output parameters from commands that have output parameters. Decimal parameters require (?N) rather than (?) in command string.
-
$cmd = 'RTVJOBA JOB(?) USER(?) NBR(?) CURUSER(?) DFTCCSID(?N)';
$output = $obj->CLCommandWithOutput($cmd);
-
Arguments |
Value |
Description |
$Command |
|
Valid CL command string |
Sample Code
This sample shows how to run the following CL commands:
-
ADDLIBLE ZENDSVR
-
DSPLIBL
|
</pre> |
|