Can a run time array be declare like below with no
specified number of elements ? Is it possible ?

DFLD_ARRAY 7 DIM() INZ(*blanks)

What does this mean ? Does this mean that the number of
array elements will be dynamically declared during run
time ?

Answer Posted / jeganath

No, its not possible to declare run time array in rpgle,
we can use %Alloc to allocate memory to elements, but sill
the no of element for an arry will not changed in run time

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you display specific subfile page on the screen in unequal subfile?

671


what is *place and *auto keyword in prtf ?plz explain

2720


how do you use commitment control in rpg?

755


how do I declare a table or array in rpg iv?

733


how can I tell when to replace the array?

698






How many program bind in one module....

2115


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1449


can you debug ile rpg program using isdb?

734


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

546


what is file information data structure?

1363


How to call one program from another program in RPG? please help me with the code

1256


How to declare the pull button in AS/400..

1872


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

762


how do I play {insert rpg system here}?

579


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

749