It is currently 24 Jan 2018 2:18


Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 26 Feb 2013 2:55 
Offline
Nouveau
Nouveau
User avatar

Joined: 27 Sep 2011 12:00
Posts: 13
Location: São Paulo
Hi, everybody!

I need an auto-edit variable for MONTH (current month) but in format "M" instead of "MM". Is there a way to do that?

I mean, 1 for January (instead of 01), 2 for February, and so on. Of course 10, 11 and 12 will remains the same.

In other words, is there a easy way to strip the 0 from the months before October without using a script?

Thanks in advance


Top
   
 Post subject:
PostPosted: 06 Mar 2013 10:03 
Offline
Nouveau
Nouveau
User avatar

Joined: 26 Apr 2005 12:00
Posts: 701
Location: PARIS
Hi

Yes it's possible using SUBSTR function in AUTOEDIT.

example
%%yy=%%SUBSTR %%b 1 2


Top
   
 Post subject:
PostPosted: 23 Mar 2013 10:54 
Offline
Nouveau
Nouveau
User avatar

Joined: 27 Sep 2011 12:00
Posts: 13
Location: São Paulo
fyot wrote:
Hi

Yes it's possible using SUBSTR function in AUTOEDIT.

example
%%yy=%%SUBSTR %%b 1 2


Thanks, but that one doesn't work for me. If i do this with %%MONTH, it will give me 01, 02, 03 instead of 1, 2, 3 (what i need)...


Top
   
 Post subject:
PostPosted: 27 Mar 2013 10:36 
Offline
Nouveau
Nouveau
User avatar

Joined: 16 Oct 2006 12:00
Posts: 22
Location: Helsinki
Quick and dirty way is using the %%LIBMEMSYM defined in Server directory/file


Top
   
 Post subject:
PostPosted: 12 Apr 2013 8:43 
Offline
Nouveau
Nouveau
User avatar

Joined: 12 Feb 2013 12:00
Posts: 5
Hi

You can achieve using SUBSTR function in AUTOEDIT.

example:
%%REQ=%%SUBSTR %%MONTH 2 2


Thanks


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


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