× 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 2/25/2013 5:24 PM, Vernon Hamberg wrote:

Just so I am sure I get it, an EVAL that sets a varying to the value of
a fixed, that gets the size of the fixed, right? This could include
trailing blanks, as I recall.

Right.


Now your MOVE example moved a longer value to a shorter. I assume that
for a MOVE, the length of the varying does not change, perhaps related
to the move-right. Is the original size maintained with a MOVEL, also?

Yes. The length of the varying result doesn't ever get changed by MOVE, MOVEL, CAT, SUBST, or XLATE. It doesn't matter whether the source is varying or fixed, or shorter or longer; the result length is the same after the operation as it was before. Basically, the varying length result field is temporarily treated as though it is a fixed-length field, so a varying field with a current length of 3 is treated the same as a field with a fixed-length of 3.

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzasd%2Fsc092508.htm

I don't recommend using MOVE, MOVEL etc with varying length result fields.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.