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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2281


How to select highest score of each subject or how to select highest income of every month?

1297


how do I preserve and clean the array?

677


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

739


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

491






what is *place and *auto keyword in prtf ?plz explain

2730


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1464


how can you display specific subfile page on the screen in unequal subfile?

676


how do I declare a minor?

718


What is file identifier where we can use?

652


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1315


what is the procedure and explain about real time scenario.

1482


is this a rpg channel?

681


which program rpg or cl is efficent to update a transaction onto a database file and why ?

748


how do I play {insert rpg system here}?

587