HP 3000 Manuals

Troubleshooting [ HP RPG/XL Programmer's Guide ] MPE/iX 5.0 Documentation


HP RPG/XL Programmer's Guide

Troubleshooting 

This section suggests ways to determine the cause of an execution error
and also how to expedite the debugging process.

When you have trouble understanding why a particular error occurs, try
one or more of the following:

 *  Request an Error Dump (using column 55 of the Header Specification).

 *  Organize your test files into a separate group.  If your test files
    are on tape under another group (a production group, for example),
    you can use RESTORE to load them into your test group.

 *  If you're testing, try running your program with various files empty.
    This may be helpful in isolating bugs.  To specify that a file
    exists, but has no data, equate the file to $NULL. For example, to
    equate the file GLMAST to $NULL, enter the command,

         :FILE GLMAST=$NULL

 *  Use good programming practices and structured code in your programs.



MPE/iX 5.0 Documentation