can anybody help me that what is the procedure of debugging
the service program?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.
i'm working on progA , in that program i want to see the userids of the users who work on this program?
Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20
1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
A rpg or clp command to find if the file field is defined as a character or numeric field.
A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???
what is EXCEPT command in rpg and use
i want to retrieve record b/w 2 dates in as400
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
How to declare the dynamic(run time) array in rpgle? can you please give example