Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Module Line Numbers in Error Routines 3

Status
Not open for further replies.

RPG42

Programmer
Jan 7, 2005
12
0
0
US
Hi,

Is it possible to get the line number of the module where an error occurs?

I'm working on an e-mail error routine to keep me posted of things like date, time, user, etc.

Does anybody know a good reference for making useful error trapping reports?

I'd appreciate it.

RPG
 
MZTools will add/remove line numbers from your code.

To identify which line was in error, you use the undocumented Erl identifier.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
To build on what redsmooth posted...with MZTools you can easily add and remove line numbers to your project. With those line numbers you can get the line number of the error by using the ERL function to display it. You can see the results by adding a line number in where and error occurs and a display in your error handler:


MSG = " Line Number: " & Erl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top