From: "Bernd Oppolzer" <[email protected]>
Sent: Sunday, May 03, 2015 9:19 PM


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.

On the contrary, whether or not characters in the string are blank
is irrrelevant.  STRINGSIZE is raised (if enabled) WHENEVER
characters would be truncated -- even if they are blanks.

As well as that, is is ESSENTIAL that STRINGSIZE is enabled when the code
is such that the the length of the source or destination is determined at run 
time.
If it is not, unpredictable results can occur.

So, in effect, STRINGSIZE must always be enabled.

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com

Reply via email to