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



Vern Hamberg wrote:

"Character string constants of 32 bytes or less are /always/ passed with a length of 32 bytes (padded on the right with blanks). If a character constant is longer than 32 bytes, the entire length of the constant is passed. If the parameter is defined to contain more than 32 bytes, the CALL command must pass a constant containing exactly that number of bytes. Constants longer than 32 characters are */not/* padded to the length expected by the receiving program."

Constants, yes, including quoted constants with trailing blanks. But
not variables with trailing blanks. In effect, near as I can tell,
when the CALL command is analyzed, it's done after variable
substitution.

The variable value becomes part of the CALL command string. For
subsequent purposes, the variable is then out of the picture. The
value effectively is converted into a constant, and the length of
that constant at that point doesn't include the trailing blanks from
the variable.

Tom Liotta


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.