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
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 |
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 |
How to write record if no field or the field are different in physical file in rpgle ?
What are the types of identifiers?
How to add 2 new fields in a file? How many ways are there in as400?
Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?
how to retrieve RRN value in RPGLE program
Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?
Suppose in CL we reach at end of file and again we have to reach from 1 record
what is the procedure and explain about real time scenario.
0 Answers Adhoc Technologies, Hanuman Automation, HSBC, IBM,
What is the purpose of Panel Groups?
I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?
suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program