PreviousNext
Help > API Functions > Jobs > i5_job_list_read
i5_job_list_read

 

 Get an array for an active job entry.

 

      array i5_job_list_read (resource list)

Parameters

 

 

list

Resource returned by i5_job_list function

 

 

Return

 

Array with the job entry element if OK, false if failed.

 

I5_ERR_BEOF

14

End or begin of file reached

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);