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 identify the object has compiled with the debug view as *source without using STRDBG?
I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
Anybody can explain the difference between SFLCLR & SFLINZ?
suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .
Hi,This is raju.Can any body give me the real experience answer for this question? 1.What is the significance of *MAP and *DROP in the CPY command?
How Chain operation copies the record's data to the input buffer for the program?
In how many ways a session/device error occurs,,, and what is the remedy for it?
i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.
In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding
4 Answers Infinite Computer Solutions,
Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?
Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?