|
Well, looks like I need to eat crow here. The proof is below. If it was the CL runtime that was trimming the strings this code would not work because if the MacroChar and MacroType were being trimmed by the CL Runtime, you would get 'Value' instead of 'Value '. What this says it that the command validator is trimming the strings. The CL runtime evaluates the variable and passes the string to the command validator which reformats it according to it's rules. This code below proves that the CL runtime passes the full length to the command validator. DCL VAR("E) TYPE(*CHAR) LEN(1) VALUE('''') STRQMQRY QMQRY(XV0010_QM1) OUTPUT(*PRINT) QMFORM(XV0010_QM1) SETVAR((MACRONUM ("E || + &MACROCHAR || "E)) (MACROTYPE ("E || &MACROTYPE || "E))) Well, live and learn.
As an Amazon Associate we earn from qualifying purchases.
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.