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

What would be the effect on the field where reverse image, underline and high intensity?

7 Answers   IBM,


3. Given the DOS Specification below and the following information: • Indicator 50 is off • No records have been written to the subfile What will be the result if the EXFMT operation code is performed on the record format CTLR? A R SUBFL A DESCRIP 101 6 1ODSPATR(UL) A DFT(’NOT FOUND’) A R CTLR SFLCTL(SUBFL) A N50 SFLDSP A SFLDSPCTL A SFLINZ A 67 SFIJEND A SFLSIZ(13) A SFLPAG(12) A ACCOUNTNO 100 S 10 a.) Only AccountNo will display b.) SUBFL will be initialized with 13 blank records c.) An I/O exception error will occur d.) The screen will display 12 records with ‘NOT FOUND’

4 Answers   IBM,


Can we possible to key with the date field?

1 Answers   IBM,


Need a sql query: retrieve all duplicate records in table?

1 Answers  


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  






We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

0 Answers  


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


how do u find whether a record is locked or not??

4 Answers   CTS,


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

0 Answers  


how do I declare a table or array in rpg iv?

0 Answers   IBM,


1.How to load Records of a Physical file(PF) in the reverse order, in CL program?

2 Answers   Cap Gemini,


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

0 Answers   Wipro,


Categories