can anybody help me that what is the procedure of debugging
the service program?

Answers were Sorted based on User's Feedback



can anybody help me that what is the procedure of debugging the service program?..

Answer / bharat

Hi Swadesh,

I hope u know, service program will always be binded and it
can't be called directly.
Now, to create a wrapper:
create one RPG Program in which service progrem is binded
as follows:
wrapper(test program) will have:
Define all the required fields in parameter list.
CALLB 'ABC' Parameter list;
and then create a module of it.
then create *PGM object of the same wrapper by using CRTPGM
+F4 and bind the service program 'ABC' with the module.
Now, to debug,

Strdbg SRVPGM(ABC)
add brak point
now call the Wrapper program.
------or -----------------------
Strdbg Wrapper program name
than F14 to work with module list
and add your service program(*SRVPGM) and add the break.
Call wrapper.

Is This Answer Correct ?    10 Yes 0 No

can anybody help me that what is the procedure of debugging the service program?..

Answer / bharat

Service program doesn't have any program entry procedure,
so can't be called directlty but it is binded with
reference to other program. So, we can debug it as follows:

Create a wrapper program calling the service program by
binding the service program that you want to debug and then
put that wrapper *PGM in debug and call it. This way we can
debug the service program.

Is This Answer Correct ?    1 Yes 0 No

can anybody help me that what is the procedure of debugging the service program?..

Answer / swadesh.yadav

Thanks Bharat. But i little bit confuse.suppose i have a
service program name ABC so how can i create a wrapper
program? can you explain it with example?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


can anyone say,what is the use of operation extended H/N/P?

2 Answers  


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?

3 Answers  


In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?

1 Answers  


What is the OPEN and CLOSE accesspath?

3 Answers   CTS,






What is the purpose of Panel Groups?

4 Answers  


i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?

6 Answers   Mind Tree,


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


what is the rpg system?

0 Answers   IBM,


Difference between RESET and CLEAR

1 Answers   TCS,


parameters cannot be passed in which one???

4 Answers   CTS,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Categories