|
Murali, The answer to your question really can't be determined without looking at the source. Somewhere in your program you have an array with an assigned number of values and the program is using an index to that array which is outside of that range of values. It's as though you had the twelve months of the year and you asked your program to locate the name for the thirteenth month. If this program runs regularly without error, then you can assume that the index value is either coming from file input or the parameter you are passing. Perhaps if you respond to the message with a 'D' you can find some clues in the dump which will help you track it back. If you know what the array represents and what the index is, you may be able to figure whether you have bad data in the file or the parameter is in error. Regards, Andy Nolen-Parkhouse > Hi all, > > Following is the log i have saved when i got an error while running a > batch . > > -------------------------------------------------------------------------- > ------------------------------------------------------OVRDBF > FILE(GMGN) TOFILE(Y.JMGN) SHARE(*NO) SEQONLY(*YES 468) > > OVRDBF FILE(GMNYF0) TOFILE(YMNYF0) SHARE(*NO) SEQONLY(*YES 712) > > OVRDBF FILE(GMNYF2) TOFILE(YMNYF2) SHARE(*NO) SEQONLY(*YES 712) > > CALL BCALC PARM(0) > > Open options ignored for shared open of member NEW.CALL. > > Buffer length longer than record for member NEWMNYF1. > > 1001 - RTVSYSVAL SYSVAL(QSRLNBR) RTNVAR(&SERIAL) > > - RETURN /* RETURN due to end of CL program */ > > 1001 - RTVSYSVAL SYSVAL(QSRLNBR) RTNVAR(&SERIAL) > > - RETURN /* RETURN due to end of CL program */ > > 1001 - RTVSYSVAL SYSVAL(QSRLNBR) RTNVAR(&SERIAL) > > - RETURN /* RETURN due to end of CL program */ > > The BCALC 123090 array index is not valid (C G S D F). > > The BCALC 123090 array index is not valid (C G S D F). > > -------------------------------------------------------------------------- > ------------------------------- > > I have found the following when i took F1 on the error > > Message . . . . : The BCALC 123090 array index is not valid (C G S D F). > > Cause . . . . . : The RPG program BCALC in library GSRC tried to use > the > > array index at statement 123090 which was less than one or greater than > the > > number of elements in the array. > > -------------------------------------------------------------------------- > ---------------------------------------- > > I dont ve source for the program BCALC, we have taken this program from a > vendor.Friday Newyork end of day when i was running the batch i got the > above error,however i contacted the vendor,they yet to fix this ,i would > like to know whats the reason why i got the above error,what will be the > solution to fix that bug sothat i dont get this error again ....i could nt > understand from the help which is saying array index was less than one or > greater than the number of elements in the array.... > > i dont have source else i would ve posted it here.i have only > object....can some one guess and post the valuable suggestions.... > > As always Thank you very much for your help , > > Murali.
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.