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

what is file information data structure?

1376


is this a rpg channel?

681


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

493


what is a rpg?

703


what is the procedure and explain about real time scenario.

1482






If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

622


How to handle duplicate error handling in RPG?

1683


are there any useful c runtime apis that I can call from rpg iv?

700


what is the use of sflnxtchg?

805


How to select highest score of each subject or how to select highest income of every month?

1297


explain sflclr, sflend, sfldlt, and sflcsrrrn?

891


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

719


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2521


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

739


what is data area and how it is used in rpg program ?

758