Create a spool file list, of certain output queue or for all queues.
resource
i5_spool_list ([
array description, resource connection])
Parameters
description |
The data by which the spool files will be filtered, array with following keys: - username - username that created the job - outq - qualified name for the output queue containing the spool file - userdata - the user-supplied key data for the spool file All keys are optional and can be provided together
|
connection |
Connection - result of i5_connect.
|
Return
Resource if OK, 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 Equipements. 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_UNAVIABLE_PASE |
298 |
This feature is not available on i5/OS environment. |
I5_ERR_PHP_ELEMENT_MISSING |
304 |
An element of the array has a wrong type within function_name(type) function. |
Example
/* Connection */
$Hdlcon = i5_connect($adresse,$user, $mdp, $jobName);
$msg='';
$lecture = false;
/* Ecriture dans la data area */
if (isset($_POST["display"])) {
$donnees = $_POST["data"];
$ret = i5_data_area_write("EASYCOM/MYDTA", $donnees);
if ($ret) {
$msg="Ecriture faite";
}
} else {
$HdlSpl = i5_spool_list(array(I5_USERNAME=>"QPGMR"));
if (is_bool($HdlSpl)){
$ret = i5_errno();
print_r($ret);
}