× 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 Joe, thanks for the response. Yes I would like to try the prefix method then to keep all the code in Free Format. Thanks for the links, this should do. :)

Sharon

From: joepluta@xxxxxxxxxxxxxxxxx> To: rpg400-l@xxxxxxxxxxxx> Subject: RE: Free Format question> Date: Thu, 11 Oct 2007 10:13:18 -0500> > > From: Sharon> > > > My newbie question: I am trying to get the rust off my Free > > Format skills, I work in LANSA mostly, I want to rename a > > field in free. I see in the Redbooks how RENAME is used for > > the record format and then a Data Structure is created with > > the new record format name and the new field name listed there.> > Hi Sharon!> > Is the idea that you want to use an externally described file and rename the> field coming in? And is the reason because of a collision with another> field? If so, you might want to consider using a prefix, which will add a> prefix to the field name of every field in the file.> > http://tinyurl.com/2jfjsu> > > If that's a little overboard for you, though, the old-fashioned method of> adding an I-spec for the record format and another I-spec to perform the> field rename for a single field is also still perfectly valid.> > http://tinyurl.com/2pffdb> > > The data structure method works just as well.> > Joe> > -- > 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.