Hi Barbara,

(I "moved" this to the RPG list because it's not specific to RDi, but your post reminded me of a wish list item.)

One of the biggest issues I have with RNF7031 is that it is issued for both 1) fields defined in external files and 2) program-defined variables. I can't do anything with the former, but I can certainly act on the latter. Such as deleting unused variables. When you have 5000 RNF7031 messages for fields in external files, it's nearly impossible to find the handful issued for program-defined variables.

Is there a viable way to identify these? Perhaps issue a different message for unused program-defined variables?

- Dan

-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Barbara Morris
Sent: Friday, November 22, 2024 7:56 AM
To: wdsci-l@xxxxxxxxxxxxxxxxxx
Subject: [WDSCI-L] RPG Environment variable to reduce the number of RNF7031 messages in the event file

The ILE RPG compiler has PTFs for target releases V7R4M0 and V7R5M0 to support a compile-time environment variable to prevent RNF7031 messages from being placed in the event file.

ADDENVVAR QIBM_RPG_RNF7031_EVENTS VALUE('N')

You could add this ADDENVVAR command in the "Initial command:" section in the Properties for your RDi connection.

If you compile in batch from RDi, you should also add "CPYENVVAR(*YES)"
in the "SBMJOB additional parameters" in the "Commands" tab of the Properties for your connection.

The PTFs are:
7.4 TGTRLS(*CURRENT) - 5770WDS SJ02501
7.5 TGTRLS(*CURRENT) - 5770WDS SJ02922
7.5 TGTRLS(*PRV) - 5770WDS SJ02923

--
Barbara

*** CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ***

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.