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 can we make use of SETLL operation in CL?
what is the difference between SETON RT & RETURN?
why we do STRSRVJOB in batch debugging in as400
i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
what is flat file?
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is file identifier where we can use?
If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?
How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)