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???

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1465


how do you use commitment control in rpg?

773


How can we know running job is batch or interactive?

668


what is the difference between do while and do until?

728


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

792






Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1478


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

767


what is the necessary keyword needed to scroll subfile records?

713


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2213


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

839


What is the difference between iter and do?

691


When it is desirable to describe files Internally?

1206


how do I preserve and clean the array?

685


what is the use of sflnxtchg?

822


what is data area and how it is used in rpg program ?

766