- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- COM submission at top of hour
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 01:51 AM
тАО02-27-2006 01:51 AM
I'm trying to get "new_string" to be "TODAY+9:00" (given the times below). I've spaced out the single/double quotes for readability.
$ time=f$cvtime("","absolute","time")
$ write sys$output "time = ", time
$ cur_hour = f$integer(f$cvtime(f$time(),,"hour"))
$ write sys$output "cur_hour = ", cur_hour
$ nxt_hour = cur_hour + 1
$ write sys$output "nxt_hour = ", nxt_hour
$ new_string = "TODAY+ ' ' nxt_hour ' ' + ' ' :00 ' ' "
$ write sys$output "new_string = ", new_string
time = 08:43:43.87
cur_hour = 8
nxt_hour = 9
new_string = TODAY+9'+:00
Thanks,
- Martin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:02 AM
тАО02-27-2006 02:02 AM
Re: COM submission at top of hour
how about this (also takes care of midnight):
$ tim=F$CVTIME(,"ABSOLUTE")
$ sho sym tim
$ nxt_tim=F$CVTIME("''tim'+0-1","ABSOLUTE","DATE")+":"+-
F$CVTIME("''tim'+0-1","ABSOLUTE","HOUR")
$ SHO SYMB nxt_tim
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:03 AM
тАО02-27-2006 02:03 AM
Re: COM submission at top of hour
so
$ new_string = "TODAY+ ' ' nxt_hour ':00"
Whole string in double quotes. Items which need to be replaced in 2 single quotes at the front and one single quote to terminate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:04 AM
тАО02-27-2006 02:04 AM
Re: COM submission at top of hour
~ Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:05 AM
тАО02-27-2006 02:05 AM
Re: COM submission at top of hour
$ set noon
$ set nover
$ nxt = f$cvt("+1","absolute","datetime")
$ nh = f$cvt(nxt,,"hour")
$ nd = f$cvt(nxt,,"date")
$ today = f$cvt(,,"date")
$ if nd .eqs. today
$ then
$ after = "/after=''nh':00"
$ else
$ after = "/tomorrow"
$ endif
$ write sys$output "''after
$ exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 05:43 AM
тАО02-27-2006 05:43 AM
Re: COM submission at top of hour
nxt_hr = f$element(0,":",f$element(1," ",f$cvtime("+1:00:00")))+":00"
write sys$output nxt_hr
NXT_HR = "13:00"
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 03:30 PM
тАО02-27-2006 03:30 PM
Re: COM submission at top of hour
$ rest_of_hour = 60-'this_minute'
$ submit 'COM'/after="+0-0:'rest_of_hour'"
Robert