• Subject: Re: RPG enhancement suggestion
  • From: dhandy@xxxxxxxxxxx (Douglas Handy)
  • Date: Wed, 23 Jun 1999 18:39:46 GMT

Colin,

>So we always need a DUMP to be produced automagically, without user
>intervention.

Until Hans gets a chance to do a justification report for the PHB and
include an option to allow DEBUG without including otherwise
unreferenced fields, see if the following will do what you want.  I
haven't tried it -- but it was suggested last month after someone who
wanted to know how to force a DUMP without using the DUMP opcode (and
the associated unreferenced field overhead).

The suggestion was to replace DEBUG with a call to QLREXHAN passing a
single 12-byte variable containing "D-" followed by the program name
(which you could get from the PSDS).  I believe this program is really
part of the COBOL run-time support, but exists on every system.

I haven't tried this myself, or compared its output to that of the
DEBUG opcode.  But it may be an alternative.

To me the idea of including unreferenced fields just because you coded
DEBUG(*YES) always seemed like overkill. 

Doug
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.