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



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Well if you're old enough to remember indicators at all, you're old enough
to remember there were only 99 of 'em, and getting 24 more for interactive
jobs for command keys was a blessing. Knowing that *INKx meant it was a
command key pressed by the user, versus something that might have been set
in the program, was valuable information as well.  I never saw the sense of
using CF01(01) when *INKA got turned on and off anyway.  If you didn't
understand the indicator use, check the usage table at the top of the
program or get the heck out of the program. :-) In the old days, and in the
old code that's still running in a lot of places, you kind of ran out of
indicators after awhile.  Or you saved them and reused them and let the new
guys try to figure out which overlay of the indicator array was in play now.

BTW, I used *IN06 to control whether or not CF06 was allowed, and *INKF to
relay its usage, for example.  Would it be better to say *IN46 allows
CF06(06)?  *IN59 allows CF19(19)? Not to me.  Plus your 24 possible command
keys becomes 48 used indicators.

I much prefer the current method of separate indicator areas and using named
indicators
D i_ScreenInd     DS
D  i_EndofPgm            03     03n
D  i_Refresh             05     05n
D  i_Create              06     06n
D  i_allow_F6            46     46n

if we could just get rid of that starting position column...


-----Original Message-----
From: Jim Langston [mailto:jlangston@celsinc.com]
Sent: Thursday, March 21, 2002 10:35 AM
To: 'rpg400-l@midrange.com'
Subject: RE: Defining a function key...


I learn RPG, I learn about indicators.  01 indicator 1, 12, indicator 12,
okay, fine.  I come across code *IN01.  Doesn't take a rocket scientist to
figure that one out.  Then I come across *INKR.  What the heck is that?  Had
to pull out the manuals and search all over, finally found out they were
indicators.  Okay, count on my fingers. A.. B.. C.. 16.  Must be indicator
17.  Dang, why ain't this working?  Test.. Debug.. read some more.  Oh, they
skip indicator *INKI (or is that *INKO, can never remember).

It doesn't' matter how long it's been used, it's obscure.  It's not self
explanatory.

Regards,

Jim Langston

-----Original Message-----
From: Bob Cozzi (RPGIV) [mailto:cozzi@rpgiv.com]

Richard,
> What I really can't understand is the comment that *inkx is obscure.
> Kx indicators have been a solid and reliable part of IBM operating
systems
> (3, 32, 34, 36, 38, 400) for oh, say, 40 years now?  Obscure?

True enough, however they also haven't been widely used in new code
since 1983.
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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:

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.