Question

  Asked: Apr 30 2008   1:51 AM GMT
  Asked by: Freefly ho


two PF have same field


RPG, PF/LF

there are two PF, each Pf have same named field, but the length of the field not same. how can i use the field in the program?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



One option would be to use the Prefix keyword to alter the names of the fields found in one of the files. Long term I would recommend finding a way to eliminate the use of the same name for what would appear to be two different fields.

Bruce Vining
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Jlunger1  |   Apr 30 2008  3:02PM GMT

If it’s just one field I’d reference the external file in my I specs with a field override name. But Bruce has the long term solution. If you are using DDS for the definition you really should consider using a REFFILE to contain all your field names. That will keep you from having duplicate field names.