Spooled Files Methods
GetSPLList
GetSPLList ($UserName) - Retrieves a list of Spooled files for a user.
Arguments |
Value |
Description |
$UserName |
*CURRENT – default |
IBM i username |
Sample Code
|
$spool_list = $SpoolFiles($UserName=”MIKE”) |
|
The return value contains an array with the following elements:
- Number
- Name
- JobNumber
- JobName
- JobUser
- UserData
- QueueName
- TotalPages
- Status
- DateOpen
- TimeOpen
GetSPLF
GetSPLF ($SplfName , $SplfNbr, $JobNmbr, $JobName, $JobUser, $TMPFName) - Retrieves a Spooled file’s content.
Arguments |
Value |
Description |
$SplName |
|
Spool file name |
$SplNbr |
|
Spool file number |
$JobName |
|
Job name |
$JobUser |
|
Job user |
$TMPFName |
“ “ - default |
File name to store the Spooled file content |
Sample Code
|
$txt = $SpoolFiles->GetSPLF($spool_list[0]['Name'],
|
|
A PHP Script That Shows the Usage of all Spooled File Methods
|
<pre> |
|