Hello.
I'm building a NOTOK email message and was trying to format the %%TIME with colons. So I thought the way would be to precede the DO MAIL with a DO SET to a local variable. The expression has a blank and so appears to be a need to quote or otherwise delineate the expression.
%%0=%%SUBSTR %%TIME 1 2
I haven't found any obvious examples to work from.
Any way to do this?
Thank you kindly.
Cheers
john
DO SET %%SUBSTR how to
Re: DO SET %%SUBSTR how to
Ah, so that's what %%BLANK is for. So:
%%0 = %%SUBSTR %%TIME 1 2
Becomes:
%%B=%%BLANK
%%0=%%SUBSTR%%.%%B%%.%%TIME%%.%%B%%.1%%.%%B%%.2
What a silly way to do this. CTO handles it much better. So either it would be nice to have a DO RULE or the same variable substitution rules. Probably both.
%%0 = %%SUBSTR %%TIME 1 2
Becomes:
%%B=%%BLANK
%%0=%%SUBSTR%%.%%B%%.%%TIME%%.%%B%%.1%%.%%B%%.2
What a silly way to do this. CTO handles it much better. So either it would be nice to have a DO RULE or the same variable substitution rules. Probably both.