|
Greg, There's something quirky about CL calling prototyped RPG. Try changing this... $Entry_Parms Pr ExtPgm('FF407AR') To this... $Entry_Parms Pr ExtProc( *CL : 'FF407AR') and see if that helps. James "Fleming, Greg \(ED\)" To: <rpg400-l@xxxxxxxxxxxx> <GFLEMING@everglades cc: direct.com> Subject: Parameters Stepping on each other Sent by: rpg400-l-bounces@mid range.com 06/23/2006 04:47 PM Please respond to RPG programming on the AS400 / iSeries This is weird. We have a CL submitting an RPG. When we debug, the parameters look fine in the CL, but they seem to be stepping on each other when we look at them in the RPG. Here's some code snippets: DCL VAR(&PUSERID10) TYPE(*CHAR) LEN(10) DCL VAR(&PASSWRD10) TYPE(*CHAR) LEN(10) DCL VAR(&PIPADDRS) TYPE(*CHAR) LEN(48) DCL VAR(&PFMDIR) TYPE(*CHAR) LEN(256) DCL VAR(&PTODIR) TYPE(*CHAR) LEN(256) DCL VAR(&PFILENAME) TYPE(*CHAR) LEN(50) DCL VAR(&PPRODTYPE) TYPE(*CHAR) LEN(1) SBMJOB CMD(CALL PGM(FF407AR) PARM(&PUSERID10 + &PASSWRD10 &PIPADDRS &PFMDIR &PTODIR + &PFILENAME &PPRODTYPE)) JOB(FTP_PC2PC) + JOBQ(QBATCH2) HOLD(*NO) ------------------------------------------------------------------------ --------------------------------------- D $Entry_Parms Pr ExtPgm('FF407AR') D Pr_UserId 10A D Pr_UserPwrd 10A D Pr_IPAddress 48A D Pr_FrmDir 256A D Pr_ToDir 256A D Pr_FileName 50A D Pr_ProductType... D 1A * D $Entry_Parms Pi D P_UserId 10A D P_UserPwrd 10A D P_IPAddress 48A D P_FrmDir 256A D P_ToDir 256A D P_FileName 50A D P_ProductType... D 1A The first two parms look OK in the RPG, but the IPAddress has the first five chars of the FrmDir tacked onto the end, and all the subsequent parms are likewise including the ones after them, except the last one, which is correct. Any ideas ? Thanks Greg Fleming Programmer/Analyst Everglades Direct, Inc. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.