Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to call one program from another program in RPG? please help me with the code

1789


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?

5235


How can we know running job is batch or interactive?

1181


how can I tell when to replace the array?

1263


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

2477


what is the difference between do while and do until?

1307


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1782


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1397


How to declare the pull button in AS/400..

2385


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

2372


what is the necessary keyword needed to scroll subfile records?

1219


what is program status data structure?

2515


How Chain operation copies the record's data to the input buffer for the program?

1663


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...

1937


How can we override a file during runtime in rpg?

1245