On Thu, 26 Feb 2009 21:42:44 +0200, Itschak Mugzach wrote:
>I RTFMed before asking, but it looked strange to me that the length of the
>variable value is forced by the length of the variable name...
>
An onerous restriction likely arising from naive parser design.
The perpetrator ought to be required to retake Programming 101
in order to learn a better technique for performing symbolic
substution.
This brings to mind a couple additional questions:
o Is there an upper limit to the target name in the
IDCAMS SYMBOLICRELATE operand _before_ substitution is
performed? This becomes important because the name
before substitution must be at least as long as after
substitution, and may likely be longer.
o Is the null string a valid symbol value? E.g.:
SYMDEF(&Z='')
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html