I have one cl program which calls two rpg programs named a &
b. I am loading a run time array in Pgm A and the control
comes back to cl pgm. i call pgmb and I want to read the
runtime array in pgmb which was loaded in pgma. How it can
be acheived. I should not use any intermediate file or
dataarea to store the loaded values.

Answers were Sorted based on User's Feedback



I have one cl program which calls two rpg programs named a & b. I am loading a run time array i..

Answer / joy mukherjee

We can declare that array in program A as static.
For the variables defined as static the value persist in
between the calls.

Is This Answer Correct ?    5 Yes 0 No

I have one cl program which calls two rpg programs named a & b. I am loading a run time array i..

Answer / ravi kumar

Hi joy mukherjee,

Can you explain clearly?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How we will read call stack?

4 Answers  


i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program

6 Answers  


Interviewer asked me write down DDS for load all subfile .can anybody write dds

0 Answers  


how we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?

8 Answers  


How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

2 Answers  


is this a rpg channel?

0 Answers   IBM,


How to write record if no field or the field are different in physical file in rpgle ?

0 Answers  


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

0 Answers   IBM,


Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,


Can we have a Physical file without any member ? Please let me know

12 Answers  


how to display all the members records in a physical file without using ovrdbf?

9 Answers  


How I can reread the physical file in CL program once the end of file reached in same CL program.

20 Answers   IBM,


Categories