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



You could always try simply writing the control record with SFLDSP off and SFLDSPCTL on. The subfile just wouldn't appear on the screen so no one could change any records.

Michael Quigley
Computer Services
The Way international
www.TheWay.org

-----Original Message-----
message: 3
date: Wed, 17 Dec 2025 09:37:22 +0000
from: liam henderson <liamhenderson12@xxxxxxxxx>
subject: Re: Protect subfile records when maintaining control record

Sorry, not sure I understand. I've not seen the keyword DSPCTL before?
And surely if I set SFLDSPCTL to *OFF I won't be able to update any figures on
the control record?


On Tue, 16 Dec 2025 at 23:22, Infodorado InfoDorado via RPG400-L < rpg400-
l@xxxxxxxxxxxxxxxxxx> wrote:

Yes, PROTECT would be one way but would require setting the indicator
on the PROTECT to default to NOT(PROTECT) and updating all the subfile
records.
But you can use the DSPCTL and SFLDSPCTL keywords. To change just the
control record, set the indicators and redisplay the same SFLCTL
record but SETOF the indicator(s) for SFLDSPCTL.

--Alan Cassidy


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