I use the API QUSRSPLA to get spoolfile informations in my printerprogram.
C call QUSRSPLA
C parm RcvVar
C parm RcvVarLen
C parm 'SPLA0100' RcdFmt
C parm '*' JobName
C parm JobId
C parm JobIdInt
C parm SpoolFile
C parm SpoolNbr
C parm qusec
But I have a problem with the last parameter running this program on
different OS-Releases.
V3R2M0 has no parameter qusec
V4R2M0 can do the call with parameter qusec
V4R3 needs parameter qusec
Is there an API that give me the information of the current OS-
Release to modify the API-Call or is it only possible with the command
RTVSYSINF (Retrieve System Information) to pass the information to the
*DTAARA and read from there ?
Matthias Martin
Chease.
Matthias Martin <Martin-...@t-online.de> a écrit dans le message :
7nl33j$ea3$3...@news08.btx.dtag.de...
Matthias Martin wrote:
>
> Hi all,
>
> I use the API QUSRSPLA to get spoolfile informations in my printerprogram.
> C call QUSRSPLA
> C parm RcvVar
> C parm RcvVarLen
> C parm 'SPLA0100' RcdFmt
> C parm '*' JobName
> C parm JobId
> C parm JobIdInt
> C parm SpoolFile
> C parm SpoolNbr
> C parm qusec
> But I have a problem with the last parameter running this program on
> different OS-Releases.
> V3R2M0 has no parameter qusec
> V4R2M0 can do the call with parameter qusec
> V4R3 needs parameter qusec
> Is there an API that give me the information of the current OS-
> Release to modify the API-Call or is it only possible with the command
> RTVSYSINF (Retrieve System Information) to pass the information to the
> *DTAARA and read from there ?
>
> Matthias Martin
--
Gernot Langle
PARAS Solutions, Inc.
http://www.parassolutions.com
mailto:gla...@parassolutions.com
The 9th parameter qusec has been an OPTIONAL parameter since V2R1M0. If you
don't supply the error code structure, then you will receive a CPFxxxx. If
you receive a CPF3C20, you will have some DIAG messages preceding the CPF3C20
to further indicate what was wrong with the invocation to the API.
You can code the call to the API with either 8 OR 9 parameters on ANY RELEASE
(that is V2R1 and later). If you are getting an error, it is because of a
bug, or something wrong with your input parameter values.
Matthias Martin wrote:
> Hi all,
>
> I use the API QUSRSPLA to get spoolfile informations in my printerprogram.
> C call QUSRSPLA
> C parm RcvVar
> C parm RcvVarLen
> C parm 'SPLA0100' RcdFmt
> C parm '*' JobName
> C parm JobId
> C parm JobIdInt
> C parm SpoolFile
> C parm SpoolNbr
> C parm qusec
> But I have a problem with the last parameter running this program on
> different OS-Releases.
> V3R2M0 has no parameter qusec
> V4R2M0 can do the call with parameter qusec
> V4R3 needs parameter qusec
> Is there an API that give me the information of the current OS-
> Release to modify the API-Call or is it only possible with the command
> RTVSYSINF (Retrieve System Information) to pass the information to the
> *DTAARA and read from there ?
>
> Matthias Martin
--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota
The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.
Thanks
Matthias
--
Rodney Johnson <rjoh...@rchland.ibm.com> schrieb in im Newsbeitrag:
379F08BB...@rchland.ibm.com...