i5_spool_get_data

 

Get the data from the spool file.

 

string i5_spool_get_data (

string spool_name,
string jobname,
string username,
int job_number,
int spool_id
[,
string filename] )

 

Parameters

 

 

Spool_name

The spool file name

 

Job_name

The name of the job that created the file

 

Username

The username of the job that created the file

 

Job_number

The number of the job that created the file

 

Spool_id

ID of the spool file in the queue (as returned by outq_read)

 

filename

IFS filename to store the data. If not provided, the data is returned as string

 

 

Returns:

String if no file name passed as parameter, false if function failes

 

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_BAD_DEF

305

You cannot define an occurence number; and an occurence reference for the same parameter -1.