× 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.



Richard,
  Use the INDARA keyword in the display file, and the INDDS keyword in your RPG 
program to specify a separate data structure or your indicators.
  The data structure will be 99 bytes long by default (99 indicators).
  Define each indicator that you use with a unique name (you *can* have the 
same indicator with multiple names) using the "N" data type and the Overlay 
keyword.
  Ex: D  Indicator_DS           DS
        D    Error_1                                              N   
Overlay(Indicator_DS : 25)
   
  This will associate the variable Error_1 with indicator 25 in your display 
file.
  It will *not* associate it with *IN25.
   
  

"Weber, Richard" <Weberr@xxxxxxxxxxx> wrote:
  We are developing a set of Free Form RPG coding standards. (Yes, now. We
are primarily a COBOL shop just moving over to RPG, stepping boldly into the
1980's!) I want to get the opinion of the group on a technique for setting
DSPF indicators that was proposed. 



The proposal was to code a data structure for the screen indicators using
the "N" data type and to use variable names that are meaningful. The
technique that I am asking for opinions on is that the group of indicators
can be set or tested by using a string such as: '0010000000100000000".



I am intentionally not stating my opinion, so as not to affect your
comments. Thanks for your input. Code snips follow. The purpose of this
code it to control which functions keys are available when the screen
displays:



D DspFInd DS 

D FunctionKey 1 24 

D PageDown 25 25N 

D Request 28 30 

.

.

.

BEGSR $S0Display; 

Request = '100' ; 

FunctionKey = '001000000001000000000000' ; 

EXSR $SZGET; 

EXSR $S1DspFmt; 

ENDSR; 





Richard L. Weber | Senior Systems Analyst, TOYS 'ñ' US International |
973.617.3497 | weberr@xxxxxxxxxxx 




======================================================================== 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to EmailAdmin@xxxxxxxxxxxx 
Toys "R" Us, Inc.

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.