|
The SPLA0100 data should include the USERDATA but I believe you have to
use the "QUSRSPLA" API .
Below is some sample code that we are using to get this information .
Declarations
DCL &SplInfo *CHAR 2000
DCL &InfoLen *CHAR 4
DCL &QualJob *CHAR 26
DCL &IntJob *CHAR 16
DCL &IntSplID *CHAR 16
code
CALL PGM(QRCVDTAQ) PARM(&Q &LIB &LEN &DATA &WAIT)
/* A LENGTH OF 0 (&LEN) INDICATES NO DATAQ WAS RETREIVED */
IF COND(&LEN *GT 0) THEN(DO)
/* */
/* QUSRSPLA WILL RETRIEVE OTHER ATTRIBUTES FROM THE */
/* SPOOL FILE (SPECIFICALLY THE USERDATA AREA WHICH */
/* CONTAINS THE UNIVERSITY EMAIL ADDRESS TO ROUTE THE */
/* REPORT TO . */
CHGVAR (&JOBNAME) VALUE(%SST(&DATA 13 10))
CHGVAR (&USER) VALUE(%SST(&DATA 23 10))
CHGVAR (&JOBN) VALUE(%SST(&DATA 33 6))
CHGVAR (&SPLNAME) VALUE(%SST(&DATA 39 10))
CHGVAR (&SPLNBRCHR) VALUE(%SST(&DATA 49 4))
CHGVAR (&SPLNBR) VALUE(%BIN(&SPLNBRCHR))
CHGVAR &QUALJOB VALUE(&JOBNAME *CAT &USER *CAT &JOBN)
CALL PGM(QUSRSPLA) PARM(&SPLINFO &INFOLEN +
'SPLA0100' &QUALJOB &INTJOB &INTSPLID +
&SPLNAME &SPLNBRCHR)
MONMSG MSGID(CPF3342 CPF3344 CPF3350) EXEC(GOTO +
CMDLBL(REPEAT2))
/* ABOVE MONMSG WILL HANDLE CASES WHERE THE JOB SPOOL FILE */
/* MAY HAVE BEEN DELETED BY THE USER BEFORE IT WAS EMAILED */
/* Spoolfile User data is in positions 91 though 100 */
CHGVAR &USERDTA VALUE(%SST(&SPLINFO 91 10))
Michael Kenney
IT Services
University of Windsor
We are trying to streamline our print production. We have attached a dataq
to many of our default outq and then reading the outq to determine if the
user want the output either printed or e-mailed as a PDF to them. The
only problem is that the dataq only gets populated with the information
from spla0100 which does not have the the user data field. Is there any
way to make the dataQ be populated with information from SPLA0200???
J. Scott Carter
Programmer/Analyst
It's not the destination that counts in life it's the journey. The journey
with the people we love is all that really matters. Such a simple truth so
easily forgotten.
_______________________________________________
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.