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
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?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.
How to handle duplicate error handling in RPG?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
How would display prime numbers using CL program?
What is difference between bind by copy and bind by reference?
what is the difference between do while and do until?
what is data area and how it is used in rpg program ?
what are the key words you must use when using a subfile?
how can you display specific subfile page on the screen in unequal subfile?
How to declare the pull button in AS/400..
How to write record if no field or the field are different in physical file in rpgle ?
How to select highest score of each subject or how to select highest income of every month?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?