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

purpose of pannel group??/

2 Answers   CTS,


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


how do u find whether a record is locked or not??

4 Answers   CTS,


How can you determine the number of characters in a variable?

3 Answers  






1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??

2 Answers  


Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 Answers  


Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output

3 Answers  


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

0 Answers  


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


What is the difference between iter and do?

0 Answers  


what is kids-rpg?

0 Answers   IBM,


Categories