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



A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u..

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

A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u..

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

A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u..

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

Post New Answer

More RPG400 Interview Questions

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?

5 Answers   CitiGroup, Symphony,


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

0 Answers   Wipro,


When a object will be locked & when a record will be locked? Plz explain.

2 Answers  


How to print output from openquery in as400 ?

1 Answers   Four soft,


how to change the length of the field in a physicalfile?

12 Answers  


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

0 Answers  


In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


how do I play {insert rpg system here}?

0 Answers   IBM,


If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,


Can any one plz explain the concept of INFSR, *PSSR, INFDS AND PSDS, I' confusing about PSDS and *PSSR, Wat is the difference btw them, wat PSDS will do????

1 Answers  


How to call one program from another program in RPG? please help me with the code

0 Answers   HCL,


Categories