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

How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


What is the difference between copybooks and subprocedures in as400?

0 Answers  


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

2 Answers   CTS,


What is I90(Insure 90)?

1 Answers  


what is EXCEPT command in rpg and use

1 Answers   Active Brains,


Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?

6 Answers  


Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?

1 Answers  


What you have to do in the display file when you are using message subfile?

1 Answers  


which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 Answers  


I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


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?

2 Answers   HSBC,


can i use unique key in LF

3 Answers   TCS,


Categories