|
You probably could have gotten the answers to most of these questions yourself in less time than writing the message to the group if you'd just started debug on a program... DBGVIEW has a lot of options, but you use the ones you need. If you don't want *STMT, don't use it. Most people use *SOURCE or *LIST, some (foolishly in my view) use *ALL. If DBGVIEW(*STMT) is used, then you can still debug but you don't get to see the source, as you read in the documentation. This basically allows you to continue to use the OPM debugger (sometimes called the "system debugger") on RPGIV programs. OPTION(*SRCSTMT) is preferred in RPG IV. It causes the compiler to generate line numbers that typically match that of SEU. Since the compilers were written by C programmers, they didn't really care about line numbers for source code, so they wrote compilers that generated crazy line numbering at compile time. A large number of RPG programmers complained, and IBM added this option to solve the problem. -Bob Cozzi www.RPGxTools.com If everything is under control, you are going too slow. - Mario Andretti -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Shijith_Chand Sent: Thursday, July 14, 2005 9:17 AM To: rpg400-l@xxxxxxxxxxxx Subject: Regarding DBGVIEW(*STMT) in CRTBNRPG Dear all, Can anybody tell me why DBGVIEW (*STMT) is used in comparison With *LIST & *SOURCE. In my opinion this option seems to be very primitive Compared to *LIST & *SOURCE .I guess *LIST provides all the facilities that *STMT provides (that is debug using source statement numbers or line Numbers depending on whether *SRCSTMT option is given) + a view of source Also is it always true that we can never see the source code online while Debugging if *STMT option is given? Please correct me if I am under estimating the *STMT Also please tell me if giving *SRCSTMT & *NOSRCSTMT makes any difference if I am selecting DBGVIEW = *SOURCE? In this case is there any relation between the line numbers shown in the Debug View with either SEU source statement numbers or Compiler Listing? Thanks & Regards, S.chand DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.