Gets spool file data from the queue.
array
i5_spool_list_read (resource
spool_list)
Parameters
spool_list |
resource received from i5_spool_list |
Return
Next spool file data array in the list, or false if queue is empty.
I5_ERR_MEMALLOC |
3 |
Not enough memory |
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. |
Detail
The data will be formatted using SPLF0300 format. See following link for more details:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/QUSLSPL.htm
Example
while ($continue){
$ret = i5_spool_list_read($HdlSpl);
if (is_bool($ret)){
$continue = false;
break;
}