|
My mistake - I copied data from the wrong FTP'd file. The call should be: CALL PGM(QUSRSPLA) PARM(&RCVVAR &RCVLEN &FMTNAM + &JNAME &JID &SPLFID &SPLFNM &SPLFNUM) I'll double check the parms being passed. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement Sent: Thursday, August 11, 2005 12:26 PM To: Midrange Systems Technical Discussion Subject: RE: QUSRSPLA 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/Q USRSPLA.htm
As an Amazon Associate we earn from qualifying purchases.
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.