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



Hi Ewart,

I don't know why you are apologizing, I'm just glad you read the article
:-).

I'm afraid there is no technique (that I know of) to solve your problem - if
the field has a different length on the display file, then it is a different
field and should have a different name.

I don't subscribe to the yahoo group (only so many hours in the day), but I
had a quick look at the thread and I didn't see anything to make me change
my mind :-) - then again, only my point of view.

If the debate starts here I'll gladly join in.

Paul Tuohy

----- Original Message -----
From: "Ewart Desouza" <ewart.desouza@xxxxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, August 05, 2004 5:38 AM
Subject: Same field names in different files


>
>
>
>
> Hello All !
>
> I had posted this mail in another forum rpgiv@xxxxxxxxx & it created quite
> a stir. Hope it does not create too much here.
>
> Thanks & best regards
> Ewart
>
> PS: Sorry Paul Tuohy if you read this, I just want to get some more views
> to help me decide what is best for me before I develop a new production
> system for our company.
> ------------------------------
> Hello !
>
> I've just read the article by Paul Tuohy at
> http://search400.techtarget.com/tip/1,289483,sid3_gci953818,00.html
where
> he suggests to use the same field names in various files like NAME in
> Customer Master & NAME in Supplier master. This will save a lot of coding
> in the RPG programs specially in the print & display files.
>
> I fully agree with him but I've experienced only one problem and that is
if
> there is a difference in sizes then the program gives a compilation error.
>
> Eg: The NAME is 30 chrs in the Customer file & you want to print/display
> only the first 25 characters. If we use the same field names i.e NAME it
> gives a compilation error.
>
> Is there any way these errors could be avoided ?? If so then this will be
a
> very useful technique.
>
> Thanks & best regards
> Ewart
>
> --
> 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 ...

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.