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 et al.

If you wish to return the Date and Time that the spooled file was created and the Job Name then you will need to call the same program but with the Date format for the returned date in PARM1 and *DATE in PARM6:

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

-

 

-

 

PARM5

-

 

-

 

PARM6

*DATE

 

-

 

#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 version 6.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 et al.

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 - 6 will only be returned from version 6.2.85.

Parameter

In

Len

Out

Len

PARM1

-

 

Total no of pages #3

7

PARM2

-

 

Number of copies#3

7

PARM3

-

 

CCSID#3

7

PARM4

-

 

Character set

10

PARM5

-

 

Codepage

10

PARM6

*PAGES

 

-

 

#3        Value will be returned left justified with leading zeros removed.

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

 

-