Please enable JavaScript to view this site.
This program will return details from the SPLATR data area which is created in QTEMP by the CRTPPD program. Depending upon the information passed into the program in PARM6 different information will be returned.
Basic Spool File Attributes
No parameters are required to be passed into this exit program to retrieve the default return data. The relevant spooled file attributes are returned as set out in the table below:
Parameter |
In |
Len |
Out |
Len |
PARM1 |
- |
|
User Id |
10 |
PARM2 |
- |
|
User Data |
10 |
PARM3 |
- |
|
Output queue name |
10 |
PARM4 |
- |
|
Output queue library |
10 |
PARM5 |
- |
|
Drawer |
4 |
PARM6 |
- |
|
Spooled File Name |
10 |
Spool File Date & Job details
If you wish to return the Date and Time that the spooled file was created and the Job Name, Job Number, Spool File Number or Forms Type, then you will need to call the same program but with the Date format for the returned date in PARM1 and *DATE in PARM6.
Note: Parameters 4 - 6 will only be returned from v7.0.00.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
Date Format #1 |
|
Spool File Date |
8 |
PARM2 |
Date Separator (*YES, *NO) #2 |
|
Spool File Time |
8 |
PARM3 |
Time Separator (*YES, *NO) #2 |
|
Spool File Job Name |
10 |
PARM4 |
- |
|
Spool File Job Number |
6 |
PARM5 |
- |
|
Spool File Number |
6 |
PARM6 |
*DATE |
|
Forms Type |
10 |
#1 The valid date formats are:
DMY – Date returned DD/MM/YY (the default)
MDY – Date returned MM/DD/YY
YMD – Date returned YY/MM/DD
SYS – Date returned as per the System Value QDATFMT - from v6.2.88.
#2 The Date and Time separator entries will default to *YES (separators being '/' and ':' respectively) if nothing is specified.
Total Number of Pages for Spool File & Language details
If you wish to return the total number of pages for the spooled file for the entire spool file, together with the number of Copies, CCSID, Character set and Codepage then you will need to call the same program but with *PAGES in PARM6.
Note: Parameters 2 - 5 will only be returned from v6.2.85.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
- |
|
Total no of pages #4 |
7 |
PARM2 |
- |
|
Number of copies#4 |
7 |
PARM3 |
- |
|
CCSID#4 |
7 |
PARM4 |
- |
|
Character set |
10 |
PARM5 |
- |
|
Codepage |
10 |
PARM6 |
*PAGES |
|
- |
|
#4 Value are returned left justified with leading zeros removed.
Spool File Page information
From v7.0.00 - If you wish to return the Page Length, Width, LPI or CPI then you will need to call the same program but with *SECOND in PARM6.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
- |
|
Page Length#4 |
3 |
PARM2 |
- |
|
Page Width#4 |
3 |
PARM3 |
- |
|
LPI#5 |
3 |
PARM4 |
- |
|
CPI#5 |
3 |
PARM5 |
- |
|
- |
|
PARM6 |
*SECOND |
|
- |
|
#4 Value are returned left justified with leading zeros removed.
#5 Values are returned left justified with leading zeros removed and in tenths, so a value of 60 indicates 6 LPI or 100 indicates 10 CPI.
Other information
From v7.0.00 - If you wish to return the Device file name / library or the Program that opened the file / library then you will need to call the same program but with *THIRD in PARM6.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
- |
|
Device file name |
10 |
PARM2 |
- |
|
Device file library |
10 |
PARM3 |
- |
|
Program that opened file |
10 |
PARM4 |
- |
|
Program library |
10 |
PARM5 |
- |
|
- |
|
PARM6 |
*THIRD |
|
- |
|
System Name
If you wish to return the System Name for the server then you will need to call the same program but with *SYSTEM in PARM6.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
- |
|
System Name |
8 |
PARM2 |
- |
|
- |
|
PARM3 |
- |
|
- |
|
PARM4 |
- |
|
- |
|
PARM5 |
- |
|
- |
|
PARM6 |
*SYSTEM |
|
- |
|