|
"Mohammad, Tanveer" wrote: > > Ok, here is my problem. "Options(*varsize)" is not allowed for DS Array. > > I am trying to define the array like this. Is it possible to define > 9999 array using some variable? > > DDSARRY ds dim(9999) qualified > D RAKEMP like(CAKEMP ) > D RAKFNAM like(CAKFNAM) > D RAKLNAM like(CAKLNAM) > D RAKJBTTL like(CAKJBTTL) > No, it's not possible to have DIM(variable). But you can keep track of the number of "real" elements in a separate variable and use that variable in several RPG array operations. See the section called "Using Dynamically-Sized Arrays" in Chapter 9 of the ILE RPG Programmer's Guide: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/info/rzajp/sc092508.pdf.
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.