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


  • Subject: Re: using a defined constant to dimension an array
  • From: boldt@xxxxxxxxxx
  • Date: Wed, 4 Jul 2001 07:50:31 -0400
  • Importance: Normal

Joep wrote:
><snip>
>> Here are a couple of my favorite "How could they?":
>> - specifying external names as normal RPG names, and not as
>>   character literals (results in inconsistencies in the
>>   language as well as complications in compiling)
><snip>
>Hans,
>Most of your posts make perfect sense,

"Most"?  That many??

>but this time, I'm afraid I haven't
>got a clue what your on about.  Could you please explain what you mean by
>this?  Which external names are you referring to?  Files, formats, fields,
>programs, procedures?  And what do you mean by 'normal RPG names'?
Luckily
>I know what character literals are :-)

OK, it's a subtle point.   These external names refer to the
names coded on the keywords INCLUDE, IGNORE, RENAME (1st parm),
and DTAARA.  Basically, these names must conform to RPG
identifier rules, even though they are really "system" names,
like file names, data area names, etc.  To add further confusion,
if you have an external name X, you are allowed to code an
internal name X as well.  In retrospect, it was a bad design that
complicates not only compilation but also language design.  For
example, what if we wanted to allow a variable name for DTAARA?

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.