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

Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,


Maximum how many files declare in rpgle

3 Answers   TCS,


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  


As400 Command to find the Name of the Program to which a Particular Module is Bound..? Ex: IC210AMR (*MODULE) is bound with Other Modules which Forms Program Object as IC210ABP(*PGM) . As400 Command to find the IC210ABP Using IC210AMR..? Thanks

5 Answers   CTS,


there is any limit to display the members in rpg400?

3 Answers  


HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?

1 Answers   TCS,


1. I have2 records in a PF. READ PF DO DSPLY EMPNO RETRN DSPLY EMPNO ENDDO What was the output 2. SETON LR vs RETURN 3. Primary File 4. How to delete a deleted spaces 5. How to read a PF in reverse order in CL 6. I have a object in Lib A, B and C. But it shows in D Lib..Why? 7.

4 Answers   HCL,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


How can we change element of compile time array?Can we do so

1 Answers   TCS,


HI, 1: WHAT IS THE FUNCTION OF %KDS?WITH PROGRAMMING CODES EXAMPLE 2: WHAT IS THE FUNCTION OF Z-ADD AND Z-SUB ? WITH PROGRAMMING CODES EXAMPLE

1 Answers   IBM,


Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


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

0 Answers   IBM,


Categories