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



Mahesh,
You might try PREFIX(X) and PREFIX(Y) in the F Specs in the program. You will then need to refer to each field in the file as Xfield1 and Yfield1. See example below:
FFile1 Up E K DISK prefix(x)
FFile2 IF E K Disk prefix(y)

Then every field in file1 is prefixed with an X. So field CUSNAM becomes XCUSNAM. And for File2, CUSNAM would become YCUSNAM.

HTH,


John Furniss
Applications Programmer
Allied Machine & Engineering, Corp
Phone: 330-343-4283, ext. 8371
email: jfurniss@xxxxxxxxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mahesh Pawar
Sent: Monday, January 12, 2009 10:39 AM
To: RPG programming on the IBM i / System i
Subject: Rename file field in RPGLE

Hello All,
I am using 3 files in program  and 2 are having similar field name . I want to rename 1 file's field name for some purpose. Please help to code field rename in RPGLE

Thanks & Regards

Mahesh Pawar,
Mumbai,India,
Phone#(R) - 91-22-25442164,
Mobile# - 98204 46415






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.