IMO, these examples are not as pathologic as the examples that
Ed Jaffe and I provided, because in Ed's and my examples, the
MVC took garbage bytes behind the literal constant and moved them
to the target. Same goes for my examples with ST vs. STH and N.

So I believe these examples should be treated differently.

The repeated use of =256C' ' allows the reuse of the literal,
which is ok and good, IMO.

BTW: In PL/1, for example, you can activate the STRINGSIZE condition
to deal with such situations (source string longer than target), but the
default action, AFAIK, is: writing a message to SYSPRINT and continue,
so this is not considered an error ... and: I guess, STRINGSIZE is only
activated for non-blank strings that are truncated.

Kind regards

Bernd



Am 03.05.2015 um 11:54 schrieb Binyamin Dissen:
            MVC      short,=256c' '
            MVC      longer,=256c' '
            MVC      full,=256c' '

SHORT    DS        CL5
LONGER DS CL120
FULL DS CL256


Reply via email to