|
Buzz
EVAL is a late addition to RPG - it was never a part of RPG III. It was
added as an op-code that let you put free-form expressions in an
expanded factor 2. EVALR came a little later, to provide what MOVE used
to do, vs. MOVEL.
So we used to have to use Z-ADD to set a variable to a value.
HTH
Vern
On 3/24/2011 11:09 AM, Buzz Fenner wrote:
Since it was mentioned here and tickled a neuron...I might as wellask:
I've always wondered, what is the purpose of Z-ADD? Isn't it justthe
same to EVAL = 0, or EVAL = whatever you really want it to be? Or iswith
this just a legacy leftover that only still exists in order to mess
my mind?pumping
Thanks! :)
Luke,
In case it hasn't been mentioned (or it has and I missed it), when
numeric values from one variable to another -of a larger length thanthe
originating variable- if it wasn't 'initialized' via z-add0 prior tothe
MOVE it resulted in an execution error with invalid data in a numericfield.
--
Ah, the bad old days...
Buzz
This is the RPG programming on the IBM i / System i (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 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.