I am Submitting one job in batch that job calls three
progams(PGMA, PGMB, PGMC). PGMB should be called after
sucessfully completion of PGMA as like for PGMC also. So
Can you please tell me how can we do that (without using
data area)
Answer Posted / naveen chandra joshi
Suppose CL program is executing all the programs.
First PGMA gets executed, before the *INLR, we populate the value in Data Area (with value, say "Y"). when control comes back to CL program, we read the data area and check the flag value if its 'Y", we execute PGMB and same applies to PGMC...
Other possible scenarios would be to retrieve the return value from PGMA... check that value in your CL program which is calling PGMA, PGMB &PGMC and based on that return value process your execution...
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
How to call one program from another program in RPG? please help me with the code
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
How can we know running job is batch or interactive?
how can I tell when to replace the array?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
what is the difference between do while and do until?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
explain sflclr, sflend, sfldlt, and sflcsrrrn?
How to declare the pull button in AS/400..
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
what is the necessary keyword needed to scroll subfile records?
what is program status data structure?
How Chain operation copies the record's data to the input buffer for the program?
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...
How can we override a file during runtime in rpg?