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 |
purpose of pannel group??/
ESCAPE message sent by child program can be handled by parent program using which keyword?
Are all these RPG/400 Interviewed Questions being asked recently? are current?
how do u find whether a record is locked or not??
How can you determine the number of characters in a variable?
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??
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?
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
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...
Can AnyOne tell me how to read join logical file in rpg from starting to end?
What is the difference between iter and do?
what is kids-rpg?