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



LOL - that relieves the dry mouth I got from saying "Huh?"


On 3/24/2011 2:22 PM, Dennis wrote:
Sheesh, I just re-read your post. My apologies.

"Dennis"<iseries@xxxxxxxxxxxx> wrote:

Vern, I seem to remember coding Z-ADD on my System/3 coding forms.

I think it was not part of RPG (1), but I am fairly certain it was part
of RPG/II from the beginning.

"Vern Hamberg"<vhamberg@xxxxxxxxxxx> wrote:

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 well
ask:
I've always wondered, what is the purpose of Z-ADD? Isn't it just
the
same to EVAL = 0, or EVAL = whatever you really want it to be? Or
is
this just a legacy leftover that only still exists in order to mess
with
my mind?

Thanks! :)

Luke,

In case it hasn't been mentioned (or it has and I missed it), when
pumping
numeric values from one variable to another -of a larger length than
the
originating variable- if it wasn't 'initialized' via z-add0 prior to
the
MOVE it resulted in an execution error with invalid data in a
numeric
field.
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.
--
Sent from my Galaxy tablet phone with with K-9 Mail. Please excuse my
brevity.
--
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.
--
Sent from my Galaxy tablet phone with with K-9 Mail. Please excuse my brevity.

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.