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

1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

0 Answers  


what is the procedure and explain about real time scenario.

0 Answers   Adhoc Technologies, Hanuman Automation, HSBC, IBM,


How to print output from openquery in as400 ?

1 Answers   Four soft,


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

2 Answers  






1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?

3 Answers   HSBC,


Explain mdt?

0 Answers  


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?

4 Answers  


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

0 Answers   HCL,


please guys help me,I need to write a program that shows more than one way to display a subfile. Both views are of the same file but sorted differently and show different fields of the same file when the user presses a function key. send me code

4 Answers   Virtusa,


I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


Categories