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 ? | 11 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 |
Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?
can we use cl programming to update or delete physical files
i hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
what is plat file?
difference between 1:%found and %equal built function in detail with example .
wat is the difference between dataarea and data queue?
5 Answers Airtel, Four soft, Shahi Exports,
i would like to know under what circumstance the object will get locked on AS400.
can you debug ile rpg program using isdb?
use of PUTOVR,OVRDTA,KEEP keywords?
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.
How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?
11 Answers Bank Of America, CSC, IBM,