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
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 |
Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?
steps for debugging two rpg programs????
Why we cannot call a service program? If I add a PEP can i call the service program?
how can I tell when to replace the array?
What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?
Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
How to declare the more than one file in cl/400.
How can you determine the number of characters in a variable?
Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4
Can we have a Physical file without any member ? Please let me know
1.The questions have given an array declaration and move operation then this statement is correct or not?