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

HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

0 Answers   iGate,


suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .

4 Answers   CSC,


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,






Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


list down and describe the sub systems vailable

5 Answers   IBM,


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

0 Answers   CTS,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

6 Answers   CTS, IBM,


Categories