Display a Spool File Entry with a Print Control Character (Magic xpa 3.x)
Note: Make sure the connection to IBM i is established before proceeding.
Use this function to display an IBM i spool file entry. The syntax of the UDP is Invoke UDP ('MGEAC32.DSPSPLFEWP', A, B, C, D, E, F, G, H, I, J)
Where:
-
A – A string variable representing the system name.
-
B – A string variable representing a spool file entry name. The default value is QPRINT.
-
C – A string variable representing a spool file entry number. The default value is *LAST.
-
D – A string variable representing a job number. The default value is the current job.
-
E – A string variable representing the job name.
-
F – A string variable representing the user name. The default value is the current user.
-
G – A string variable representing a temporary table library location. The default name is QTEMP.
-
H – A string variable representing the temporary table name for the retrieved spool file entry.
-
I – A string variable specifying which print control characters (if any) are to replace the spooled file’s internal print control characters. The possible values are: *NONE, *FCFC, and *PRTCTL.
-
J – A numeric variable representing one of the following return codes, 0=successful or -1=Error.
The following example retrieves a spool file entry. The spool file entry can be viewed in the QTEMP/MGF255 file:
Invoke UDP ('MGEAC32.DSPSPLFEWP', SystemName, SplfName, SplfNumber, JobNumber, JobName, UserName, ", ", Control Character, retcode)
Display Spool File Entries
Display a Spool File Entry
Work with a Spool File Entry