× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Mike,

Ok, here's what I have so far:
CL Program to get Total Records in spool file (format SPLA0100).
Following it is a program that calls it, ALWAYS returning &SPL0 as
1077952576.

Once again, I'm wondering if you've read the manual page for the QUSRSPLA API? I don't understand what you're doing here:

            CHGVAR     VAR(&FMTNAM)  VALUE('SPLA0100')
            CHGVAR     VAR(&RESET)   VALUE('*NO')
            CALL       PGM(QUSRSPLA) PARM(&RCVVAR &RCVLEN &FMTNAM +
                         &RESET &ERR)


The API requires at least 8 parameters. Yet, you're only passing 5. And I don't understand which ones you're passing! What is &RESET? There isn't a "reset" parameter. Also, you're passing a 10 character field called &ERR... not sure what that's supposed to do. If you're trying to pass the API error field, you're doing it wrong. It should be the 9th parameter, and the first 4 bytes need to contain the length of the parameter, or needs to be all x'00'. But you have it as the 6th parm, and it's set to blanks!

So, I'm wondering if you've looked at the manual? It tells you what the parameters for the API are, and what values you should pass. Once again, that page of the manual can be found at the following link:
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/info/apis/QUSRSPLA.htm



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.