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



On 7/10/2014 5:42 PM, Gary wrote:
I have a situation here where files from a third party vendor contain
field names identical to one of my own files. The third party files are
each varying, where as those in my files were created fixed length. That
of course produces a compile error. I have over ridden(renamed) the
fields in my files by way of the I specs; thusly:
// ISPECS
***************************************************************
IRim0003
I DocID DocID_3
I Title Title_3
I Folder1 Folder1_3

My question is this: Is there any way to accomplish this same end without
resorting to fixed column I specs? These stand out like a sore thumb in
an otherwise totally free-form program.

Some ideas:

Consider creating a view that changes the name (or attributes) of the
vendor's file. Then, by using that view / LF in your RPG program, you
wouldn't need to specify any renames at all.

How about putting the rename in a /COPY member? That way all programs
needing the rename could have a common definition, but the individual
programs would not have the block of I-specifications.
--buck

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.