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???
Answers were Sorted based on User's Feedback
Answer / uday bagadi
This Pgm actually getting run-time error not a compile time (compile time error we solved by spoon file) and run-time error handle by debug.As per my knowledge your pgm getting infinite loop so remove child subroutine calling to subroutine
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / karan patel
First of all create the pgm file and than and write SP in place of options and than find ur pgm file last one,than put 5 on that pgm file,it will open a window,type B to go bottom,and just one page up will take u to the code and line by line error in,and than u can resolve it,hopefully u can get all ur errors there....
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / dileep
we can find out error by specify Monitor opcode
Monitor
Parent subroutine
Exsr child subroutine
on Error
Display Subrouitne parent
End Monitor
Monitor
Chile subroutine
Monitor
On Error Child subroutine
Display Subroutine child
End Monitor
Is This Answer Correct ? | 0 Yes | 0 No |
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is the difference between copybooks and subprocedures in as400?
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
What is I90(Insure 90)?
what is EXCEPT command in rpg and use
Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?
Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?
What you have to do in the display file when you are using message subfile?
which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?
can i use unique key in LF