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



Yes, way back when (in RPGIII days) the original XLATE and CAT opcode
created temp variables each time they were used in code and data was xlated
or cat'd into those work variables and then copied back to the Result field.
Fortunately that huge amount of overhead was quickly removed shortly after
the compiler shipped to customers.
-Bob


-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx] On
Behalf Of Keith Carpenter
Sent: Tuesday, August 31, 2004 2:53 PM
To: MI Programming on the AS400 / iSeries
Subject: Re: [MI400] MI Newbie with XLATE instruction problem

Out of curiosity,  I checked what RPG does with...
C           'X':'O'   XLATEDATA      DATA

IRP...
XLATE DATA ,DATA ,.XL20001 , .XL30001 




----- Original Message ----- 
From: "Winchester Terry" <terry.winchester@xxxxxxxxxxxxxxx>
To: "'MI Programming on the AS400 / iSeries'" <mi400@xxxxxxxxxxxx>
Sent: Tuesday, August 31, 2004 10:30 AM
Subject: RE: [MI400] MI Newbie with XLATE instruction problem


> Right at the moment...not very lucky :(
> 
> Hmmmm...maybe it's time to learn about labels and jumps ;-)
> 
> > -----Original Message-----
> > From: mi400-bounces@xxxxxxxxxxxx 
> > [mailto:mi400-bounces@xxxxxxxxxxxx] On Behalf Of Dave McKenzie
> > Sent: Tuesday, August 31, 2004 12:41 PM
> > To: 'MI Programming on the AS400 / iSeries'
> > Subject: RE: [MI400] MI Newbie with XLATE instruction problem
> > 
> > 
> > Just to interject a cautionary note.  In the MI reference at
> > 
> > http://publib.boulder.ibm.com/iseries/v5r1/ic2924/tstudio/tech
> > _ref/mi/XLATE.htm
> > 
> > it says:
> > 
> > "If overlapped operands share all of the same bytes, the results are
> > predictable when direct addressing is used. If indirect addressing is
> > used (that is, based operands, parameters, strings with variable
> > lengths, and arrays with variable subscripts), the results are not
> > always predictable."
> > 
> > How lucky do you feel? :-)
> > 
> > --Dave
> > 
> > On Tue, 2004-08-31 at 08:39, Winchester Terry wrote: 
> > > <grin> 
> > >
> > > <snip>
> > > 
> > > Now to figure out which chapter covers varying
> > > length parameter strings...
> > > 
> > > Thanks again for the help Keith!
> > > 
> > > Terry
> _______________________________________________
> This is the MI Programming on the AS400 / iSeries (MI400) mailing list
> To post a message email: MI400@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/mi400
> or email: MI400-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/mi400.
> 
_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.




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.