It is currently 23 Sep 2017 11:18


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: DO SET %%SUBSTR how to
PostPosted: 18 Feb 2016 2:24 
Offline
Nouveau
Nouveau

Joined: 17 Feb 2016 11:52
Posts: 2
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


Top
   
PostPosted: 18 Feb 2016 10:47 
Offline
Nouveau
Nouveau

Joined: 17 Feb 2016 11:52
Posts: 2
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved