I need to get the length of a string in an ampersand variable that changes dynamically like a SCAN would read it
To get the idea of what I'm trying to do (but doesn't work obviously):
ADDRESS ISREDIT "(myvar) = &mydynamicvar"
say length(myvar)
or
ADDRESS ISREDIT var = length("&mydynamicvar")
say var
note that using just the mydynamicvar rexx variable is not what I want because it's not interpreted by the "ISREDIT" yet, I need to pass the interpreted value of &mydynamicvar like a SCAN would read it into a new rexx variable.
Is this possible ?
Thanks