Work with a Spool File Entry (Magic xpa 3.x)
Note: Make sure the connection to IBM i is established before proceeding.
Use this function in order to work with a spool file entry. This function allows for the following operations:
-
Change a spool file entry print copies number
-
Hold, release, and delete a spool file entry
The syntax of the UDP is Invoke UDP ('MGEAC32.WRKSPLFE', A, B, C, D, E, F, G, H, I)
Where:
-
A – A string variable representing the system name.
-
B – A string variable representing a spool file entry name.
-
C – A string variable representing the spool file entry number.
-
D – A string variable representing the job name.
-
E – A string variable representing the job number.
-
F – A string variable representing the user name. The default value is the current user.
-
G – A string variable representing spool file entry options, such as C=copies, H=Hold, R=Release, D=Delete. This is a required entry.
-
H – A numeric variable representing the number of copies of the output being printed.
-
I – A numeric variable representing one of the following return codes, 0=successful or -1=Error.
The following example changes the spool file entry number of copies to 2 and puts the entry on hold.
Invoke UDP ('MGEAC32.WRKSPLFE', SystemName, SplfName, SplfNumber, JobNumber, JobName, UserName, 'H', 2, retcode)
Display Spool File Entries
Display a Spool File Entry
Display a Spool File Entry with a Print Control Character