|
Bob, This is the complete line. I used the middle line of the following example from the RPG ILE reference manual. I was attempting to resize 'Dlr' from elements 1 to Idx, an integer that had been calculated previously. if (oldElems < dynArrInfo.current); %subarr(dynArr : oldElems + 1 : dynArrInfo.current - oldElems); endif; ???? Tim -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob Cozzi Sent: Saturday, January 28, 2006 8:26 AM To: 'RPG programming on the AS400 / iSeries' Subject: RE: %subarr Tim, obviously the line you're trying to get help with is NOT just: %subarr(Dlr:1:Idx); As this does nothing. Why your getting the error is because there is more than likely call to a subprocedure on that same line for which you do not have an array defined as the parameter value, or you don't have CONST with DIM(xx) and xx is not the same as what %SUBARR is returning. -Bob Cozzi www.RPGxTools.com RPG xTools - Enjoy programming again. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tim Kredlo Sent: Friday, January 27, 2006 6:32 PM To: RPG400-L@xxxxxxxxxxxx Subject: %subarr I am attempting to use %subarr for the first time and need some help. I have the following definitions: D DlrDs Ds Qualified D Idx Like(A_8) D Code Like(A_8) D Type Like(A_7) D DlrA Like(A_6) D GrpA Like(A_6) D Name Like(A_40) D City Like(A_20) D Stat Like(A_10) D DlrBase S * Inz D Dlr Ds Based(DlrBase) D LikeDs(DlrDs) D Dim(2500) I create a user space, retrieve its address, and assign the address to 'DlrBase'. I then read through a couple of files and fill Dlr till all (today it was 1809) records have been read. I had then tried to resize Dlr to 1809 (Idx = 1809) elements with the following /Free code: %subarr(Dlr:1:Idx); And received the following compiler error: *RNF5410 30 1 The prototype for the call is not defined. referencing the line# with the '%subarr' Is this telling me that there I do not have the prototype for '%Subarr' ? If so, why not, considering I am at V5R3 with a PTF level of 5207 installed? If not, how can I fix whatever it is I am doing wrong? If I comment out the line containing the '%subarr the program compiles and in debug show expected values. (Dlr.Idx = 1809 (current number of records inserted) and Dlr.DlrA = the correct value from the last record read.), TIA Tim Kredlo
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.