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 |
what is the difference between SETON RT & RETURN?
Can we create 300 logical files based on a single physical file using the CRTLF command only once?.
in which journalling which attributes are necessary??/
What are the commands that can be executed in CLP but not in RPG? Why?
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.
WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?
can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?
Can we have a Physical file without any member ? Please let me know
I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.
what is EXCEPT command in rpg and use
Anybody know the difference of primary file and full procedural file
how can we know running job is batch or intractive ? i need all the possibilites.........plz help me