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



I am not a strong programmer but I think I know the answer to this question.
The first two lines:

A     50                                     SFLDSP
A     50                                     SFLDSPCTL

are conditioned so that when indicator 50 is on they will be "executed".

The last line:

 A    N50                                     SFLCLR

will be "executed" when indicator 50 is NOT on (Not50 = N50).  So they are
opposites in that one set of commands is executed when 50 is on and the
other when 50 is off. (I think!)

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Douglas W. Palme
Sent: Thursday, December 16, 2004 12:59 PM
To: RPG programming on the AS400 / iSeries
Subject: Subfile question

I decided I needed some text help on subfiles so I ordered the 
book "Essentials of subfile Programming and advanced topics in RPG IV"

One question I have is a comment the author made:

The SFLCLR must have the opposite indicator value.....

Is he talking about the opposite value of SFLDSP, SFLDSPCTL or both? I 
looked at a sample subfile a friend of mine sent me and he was using 
indicators 51 for the SFLDSP and SFLDSPCTL fields and 50 for SFLCLR....and 
it works...

Can anyone explain what the author might have been talking about?

Here is the example he gave:

A     50                                     SFLDSP
A     50                                     SFLDSPCTL
A    N50                                     SFLCLR

Saying the N50 is the opposite of 50.


-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.