Search found 2 matches

by jtraylor
18 Feb 2016 10:47
Forum: Control-M Server
Topic: DO SET %%SUBSTR how to
Replies: 1
Views: 7286

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.
by jtraylor
18 Feb 2016 2:24
Forum: Control-M Server
Topic: DO SET %%SUBSTR how to
Replies: 1
Views: 7286

DO SET %%SUBSTR how to

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 %%TIM...