× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Dave,

If you put INDARA in your display file, and don't put INDDS in your RPG program, then you will never be able to modify the indicators used by the display file (or maybe you get a compile-time error, I can't remember).

If you DO use INDDS, then you MUST use INDARA (a compile-time error if you don't I'm pretty sure).

If you do use INDARA and INDDS, then you are correct, nothing in the IndArrPtr data structure will affect the DDS, as long as you didn't use INDDS(IndArrPtr).

*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

Turnidge, Dave wrote:
Thank you! I guess that kinda rounds out my education. So, if I use
INDARA, DON'T use INDDS, and use the "pointer method" then everything
will work the way I expected originally. If I DO use the INDDS, I have
just added another 99 indicators, but nothing I do in my IndArrPtr data
structure (your name below) will affect the DDS. Right?
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Holden Tommy
Sent: Wednesday, December 06, 2006 11:36 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Indicator Redux

Using INDDS you have 2 sets of indicators 1 -99.  One set (the INDDS) is
used to control the display file functions & the others (*IN) are usable
only by the RPG program.  Setting on the excludesys will not in anyway
affect the indicators in the *IN set of indicators.  Personally I don't
use INDDS...I just overlay the *IN set with meaningful names so I can
reference either *IN27 or ExcludeSys.

For example:
D IndArrPtr s * Inz(%Addr(*In)) D ds Based(IndArrPtr) D Sfl1_Dsp 30 30 D Sfl1_DspCtl 31 31 D Sfl1_Clear 32 32 D Sfl1_End 97 97 D Sfl2_Dsp 40 40 D Sfl2_DspCtl 41 41 D Sfl2_Clear 42 42 D Sfl2_End 98 98
This will overlay the *IN indicators so now I can reference *IN30 or
SFL1_DSP & "both" are turned on since they are actually the same
indicator ( place in memory)

Thanks,
Tommy Holden




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.