Close handle received from i5_job_list().
bool
i5_job_list_close (resource
list)
Parameters
list |
Job list handle as returned by i5_job_list()
|
Return
True if OK, false if failed.
I5_ERR_PHP_HDLDFT |
256 |
No default connection found. |
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. |
Example
$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);