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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between iter and do?

668


what is data area and how it is used in rpg program ?

752


can you debug ile rpg program using isdb?

733


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

511


what is an online rpg?

723






What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2513


When it is desirable to describe files Internally?

1182


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1891


what is the procedure and explain about real time scenario.

1473


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4198


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5392


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

546


How can we know running job is batch or interactive?

647


How to write record if no field or the field are different in physical file in rpgle ?

483


What is file identifier where we can use?

639