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)

Answers were Sorted based on User's Feedback



I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be ca..

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

I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be ca..

Answer / henry

I am assuming your "One job" refers a CL program. If thats
correct then CL pgms will be submitted in Batch. inside teh
CL pgms the pgms are called sequencily...one by one. So you
no need to do anything

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More RPG400 Interview Questions

I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes please help me by eloborating on that answer by writing a sample code for that sir

2 Answers   iGate,


How many program bind in one module....

0 Answers  


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


what are the array operations?

1 Answers   IBM,






How do you call procedures in ILE?

3 Answers  


what is commitment control?explain about it?

1 Answers   HSBC,


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

0 Answers  


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

0 Answers   IBM,


how many variables can we declare in cl pgm?

13 Answers  


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


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.

0 Answers  


Categories