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 ? | 11 Yes | 0 No |
Post New Answer View All Answers
can I touch the array during treatments?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........
Explain mdt?
When it is desirable to describe files Internally?
What is the difference between iter and do?
How can we override a file during runtime in rpg?
what is a rpg?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how does the rpg element work?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
do you use message subfiles? What are the necessary keywords required coding a message subfile?
What is the difference between copybooks and subprocedures in as400?
how do I play {insert rpg system here}?