Open active job list.
|
resource i5_job_list ( |
[ array elements [, |
|
elements |
JobName, JobUser, JobNumber, JobType, Direction (default is current job) |
|
connection |
Result of i5_connect
|
Use i5_job_list_read function to retrieve the job entries from this handle.
Returns:
The resource for fetching job list if OK and false if failed.
|
I5_ERR_DESC_WRONG_DATAOP |
41 |
Wrong operation on a data field of a description |
|
I5_ERR_PARSEXML |
42 |
Internal error; please contact Aura Equipement; error number 42 |
|
I5_ERR_PHP_OPTIONSTYPE |
259 |
The type of " I5_OPTIONS_ALIAS" option must be x and not x |
|
I5_ERR_PHP_OPTIONSNUMBER |
260 |
Option number -1 is unknown. |
|
I5_ERR_PHP_TYPEPARAM |
262 |
Type of element x in parameter -1 must be y. Type z was provided. |
|
I5_ERR_PHP_VARIABLE |
281 |
You can't use the I5_bind_param function and specify parameters |
|
I5_ERR_PHP_ELEMENT_MISSING |
304 |
An element of the array has a wrong type within function_name(type) function. |
|
I5_ERR_PHP_BAD_KEYNAME |
306 |
Name x is not a property name for a program description |
$HdlSpl = i5_job_list(array(I5_USERNAME => "QPGMR"));
if (is_bool($HdlSpl))
trigger_error("i5_job_list error : ".i5_errormsg(), E_USER_ERROR);
$continue = true;
while ($continue){
$ret = i5_job_list_read($HdlSpl);
if (is_bool($ret)){
$continue = false;
break;
}
if (count($ret) > 0){
print_r($ret[1]);echo "<BR>";
} else {
echo "Nothing to display<BR>";
}
}
$ret = i5_job_list_close($HdlSpl);
if (!$ret)
trigger_error("i5_job_list_close error : ".i5_errormsg(), E_USER_ERROR);