It is currently 17 Oct 2018 9:15


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 09 Sep 2009 7:44 
Offline
Nouveau
Nouveau
User avatar

Joined: 10 Jun 2009 12:00
Posts: 3
Hi,

I know we can do this:

AutoEdit Assignment
%%A=%%CALCDATE %%DATE -5
%%A=%%SUBSTR %%A 3 4

Command Line:
<program> %%A

I would like do a Time calculation, and could not find the equivalent codes or example, such as:

AutoEdit Assignment
%%A=%%CALCTIME %%TIME +5 (in minutes)
%%A=%%SUBSTR %%A 1 5

Command Line:
<program> %%A (the expected output time, ie. 21:05)

Could anyone please help me what is the best way to get the time. Many thanks.


Top
   
 Post subject:
PostPosted: 09 Sep 2009 3:03 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
Location: Ile de France
wich database ?
because in sybase i have another way to do it by script
as you can calculate time base on DATETIME using the following:

SQL -U<emuser> -P<pass>
select getdate()
go

and using the dateadd function :
SQL -U<emuser> -P<pass>
select dateadd(mi,-30,getdate())
go

result :
1> select getdate()
2> go

--------------------------
Sep 9 2009 3:00PM

(1 row affected)
1>

1> select dateadd(mi,-30,getdate())
2> go

--------------------------
Sep 9 2009 2:32PM

(1 row affected)
1>

mi representing minutes


regards
philmalmaison




regards
philmalmaison


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:  
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