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



All of the RPG generated names currently start with Q and a component
identifier (such as MH for message handler). It may surprise you, but
there are IBM standards in naming conventions to try and make sure IBM
generated names do not collide with names that a customer might use. If I
recall correctly the name space A to I (might be J) is IBMs with a special
exemption of Q for System i (and S/38 before that). As unlikely as it may
seem, generating a name RCVM0200 might have collided with a user variable
name in your program. By always prefixing the names with a Q we avoided
name space collisions.

You may notice that the names also avoid the use of vowels. This is be
avoid generating "interesting" "nasty" words :) I'm sure if I looked at
the code I could also pull out a few other things we're doing, but this is
what comes immediately to mind.

The naming that is currently in use really did have some thought put into
it :) The generated names aren't "great", but hopefully they do a half
decent job. For truely poor naming check out the OPM RPG names -- try
name uniqueness in 6 characters or less!

Bruce Vining




"Rory Hewitt" <roryhewitt@xxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
05/18/2007 10:32 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
"RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: Reading QMHRCVPM data returned






The only question I have for Bruce is why the data-structure names aren't
the same as the format name, e.g. RCVM0200 instead of QMHMR... That alone
would (I think) have simplified things...

Rory



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bruce Vining
Sent: Friday, May 18, 2007 10:01 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Reading QMHRCVPM data returned

The names are "interesting" also due to the lack of Qualified names way
back when. The names are generated in a way that you can combine any
number of QSYSINC includes into the same RPG application and compile
without worry of name collisions across different APIs. You just can't
imagine how many Bytes_Returned, Bytes_Available fields for instance are
found across the various APIs and API formats :)

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.