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



Here's what I do...(not that I'm a great example to follow LOL)

I define all my DSPF indicators with meaningful names like:

Subfile_End
Subfile_Display
Subfile_Display_Control

For Resetting groups of the indicators I create a "setter" procedure.

P ResetSFLInd       B
D ResetSFLInd       PI
 /free
     Subfile_End = *Off;
     Subfile_Display = *Off;
    // etc....
 /end-free
P ResetSFLInd       E



Thanks,
Tommy Holden


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On 
Behalf Of Weber, Richard
Sent: Thursday, January 12, 2006 1:11 PM
To: 'rpg400-l@xxxxxxxxxxxx'
Subject: **SPAM** Indicator Coding Technique

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 <mailto: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 ...


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.