I want to declare the number of elements of an array
dynamically in RPGLE ? Is it possible? If yes, then how do
I do it ?

Answers were Sorted based on User's Feedback



I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes..

Answer / candy

%elem(array)

Is This Answer Correct ?    0 Yes 0 No

I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes..

Answer / mahalakshmi

Dim(no of elements) as the file level keyword . can anyone tell me if i am wrong.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / member lock. I confused with the Lock type and Status values...Can any body please tell me ...

5 Answers  


Why Rpg/400 is Famous?

2 Answers   IBM,


what is EXCEPT command in rpg and use

1 Answers   Active Brains,






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

0 Answers  


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  


How can read PF in reverse order (end to start) in CL pgm..

8 Answers   TCS,


what do you mean by SESSION/DEVOCE ERROR?

1 Answers   IBM,


1.What is referential Integrity? 2.What is Foreign Key? 3.What is Transfer Control? 4.What is Free format?

3 Answers  


What are the commands that can be executed in CLP but not in RPG? Why?

1 Answers   CSC,


Categories