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



In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D fr..

Answer / amit

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

In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D fr..

Answer / kcsyam

DSPJOBLOG

Is This Answer Correct ?    1 Yes 1 No

In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D fr..

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

In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D fr..

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

Post New Answer

More RPG400 Interview Questions

Can a indexed file be accessed in arrival sequence in RPG?

1 Answers  


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  


1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?

2 Answers   TCS,


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


Maximum how many files declare in rpgle

3 Answers   TCS,


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?

7 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


How we will read call stack?

4 Answers  


what is program status data structure?

1 Answers   IBM,


how we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?

8 Answers  


in which journalling which attributes are necessary

2 Answers   CTS,


Categories