In ProgramB there is a SBMJOB, which is a call to program C
.There is also a CALL to program D from B. How would you
check the program C has been executed in D?
Answers were Sorted based on User's Feedback
Can Use Data Area to solve above problem
CHGDTAARA DTAARA(xyz) WITH STATUS 'N'
CALL PGM (PGMC)
MONMSG MSGID(CPF0000) EXEC(GOTO CMDLBL(SNDM))
CHGDTAARA DTAARA(xyz) WITH STATUS 'Y'
SNDM : -------
Now you can check with status in Data Area wether PGMC
Executed or not
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / david lex
On submission of program C, collect the job information.
Pass it to program D/load it in a data file/etc, then have
program D check the status of that job using a CL command
or an API.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / samul
Using SNDPGMMSG in SBMJOB using MSGTYPE(*COMP) and In PGMB
receive the msg from pgmq if it is *COMP then sbmjob
completed normally.
| Is This Answer Correct ? | 0 Yes | 1 No |
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
what is the difference between do while and do until?
How can a screen field that has changed since the last output operation be detected?
What is the purpose of FRCDTA keyword?
when will come session device error?
Setps to create .csv file on IFS folder in AS/400( V4R3)....?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?
Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?
How can i check the object existance in RPG program without using QCMDEXC command.
Can a indexed file be accessed in arrival sequence in RPG?