To provide an easier to use interface, the RPG xTools converts the output from SPLF0200 format requests to an internal data structure named XT_SFL0200 that contains all the information for a spool file. The entries created by CrtSplList when format SPLF0200 is requested, may be retrieved use the GetNextEntry procedure. The format of the returned entries is that of the XT_SFL0200 data structure.
The XT_SFL0200 data structure is declared in the LISTS source member of the QCPYSRC source file. The format of this data structure is as follows:
D XT_SFL0200 DS Inz
D/IF DEFINED(*V5R1M0)
D QUALIFIED
D/ENDIF
D QUSSPLFNM 10A
D QUSJOBNAM 10A
D QUSUSRNAM 10A
D QUSJOBNBR 6A
D QUSSPLNBR 10I 0
D QUSOUTQNM 10A
D QUSOUTQLB 10A
D QUSDEVNAM 10A
D QUSUSRDTA 10A
D QUSSPLSTS 10A
D QUSPAGCNT 10I 0
D QUSCURPAG 10I 0
D QUSCPYLFT 10I 0
D QUSFORMTP 10A
D QUSPRTPTY 2A
D QUSDTOPN 7A
D QUSTMOPN 6A
D QUSIJOBI 16A
D QUSISPLI 16A
D QUSDEVTP 10A
D QUSDTLUS 7A
D QUSSZMLT 10I 0
D QUSSPLSZ 10I 0
D QUSASP 10I 0
D QUSRESV2 1A
| Subfield Name | Attributes | Description |
QUSSPLFNM
|
Char(10) | Spool file name |
QUSJOBNAM
|
Char(10) | Job name |
QUSUSRNAM
|
Char(10) | User name |
QUSJOBNBR
|
Char(6) | Job number |
QUSSPLNBR
|
Int(4) (10I 0) | Spool file number |
QUSOUTQNM
|
Char(10) | Output queue name |
QUSOUTQLB
|
Char(10) | Output queue library name |
QUSDEVNAM
|
Char(10) | Output device name |
QUSUSRDTA
|
Char(10) | User data |
QUSSPLSTS
|
Char(10) | Spool Status |
QUSPAGCNT
|
Int(4) (10I 0) | Number of pages |
QUSCURPAG
|
Int(4) (10I 0) | Current page being printed |
QUSCPYLFT
|
Int(4) (10I 0) | Number of copies remaining to print |
QUSFORMTP
|
Char(10) | Form type |
QUSPRTPTY
|
Char(2) | Print priority |
QUSDTOPN
|
Char(7) | Date created |
QUSTMOPN
|
Char(6) | Time created |
QUSIJOBI
|
Char(16) | Internal Job Identifier |
QUSISPLI
|
Char(16) | Internal Spool Identifier |
QUSDEVTP
|
Char(10) | Device Type |
QUSDTLUS
|
Char(7) | Date last used |
QUSSZMLT
|
Int(4) (10I 0) | Spool file size multiplier |
QUSSPLSZ
|
Int(4) (10I 0) | Spool file size |
QUSASP
|
Int(4) (10I 0) | Auxiliary Storage Pool (ASP) of spool file |
QUSRESV2
|
Char(1) | Reserved |