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 ?



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

Answer / 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

More RPG400 Interview Questions

in which journalling which attributes are necessary??/

1 Answers   CTS,


How do you find whether a job is a batch job or interactive?

4 Answers  


Can we create 300 logical files based on a single physical file using the CRTLF command only once?.

8 Answers  


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E

1 Answers  






How can we override a file during runtime in rpg?

0 Answers  


what is file identifier wher we can use

1 Answers   IBM,


what is meant by record lock.how records are locked.what is the purpose of record lock.if records are locked what happens.how to find out which record is locked.

4 Answers   HCL,


1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?

3 Answers   Cap Gemini,


How do you call procedures in ILE?

3 Answers  


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


what is plat file?

6 Answers   Indian Infotech,


Categories