- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Resubmit job automatically for next day
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
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
тАО10-14-2009 10:38 PM
тАО10-14-2009 10:38 PM
Resubmit job automatically for next day
$submit/queue=node_batch/notify/norpint/user=system/log=dka0:[tmp]x.log dka0:[tmp]x.com/after="tomorrow+20:00"
Type x.com
Regards,
Sumant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 11:06 PM
тАО10-14-2009 11:06 PM
Re: Resubmit job automatically for next day
So what is Your question really ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 11:10 PM
тАО10-14-2009 11:10 PM
Re: Resubmit job automatically for next day
Regards,
Sumant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2009 11:24 PM
тАО10-14-2009 11:24 PM
Re: Resubmit job automatically for next day
(at begin, it will submit always, even if it does not execute successfull;
at the end, it will resubmit only if everything in front iof it has passed).
And avoid hardcoding queue and file location, insert this code fragment instead of the submit command:
$ this = f$environment("PROCEDURE")
$ this = this - f$parse(this,,,"VERSION")
$ qname = f$getqui("DISPLAY_QUEUE", "QUEUE_NAME","*","THIS_JOB")
$ submit 'this'/que='qname'/after=("TOMORROW+20:00")
and submit x.com ONCE from the interactive command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 03:43 AM
тАО10-15-2009 03:43 AM
Re: Resubmit job automatically for next day
Learning to use seach tools will in general get you results much quicker than asking.
Advance search is at the top right of the page you are on.
how to submit a daily job?
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=960315
batch job to run every day automatically
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1297541
how to schedule a batch file
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1068452
Batchjob
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1133518
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 02:25 PM
тАО10-15-2009 02:25 PM
Re: Resubmit job automatically for next day
> $ this = f$environment("PROCEDURE")
> $ this = this - f$parse(this,,,"VERSION")
1+ for this sequence (and theoretically more correct, since it leaves all file specification manipulations in the hands of F$PARSE)
$ this=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 03:53 PM
тАО10-15-2009 03:53 PM
Re: Resubmit job automatically for next day
> since it leaves all file specification
> manipulations in the hands of F$PARSE)
Oh, no, it doesn't. Thanks to the wonders of
ODS5 extended file names, for a
guaranteed-correct result, you need to do
more work than "-". For example:
alp $ type a^;2.com
$ this_proc = f$environment("PROCEDURE")
$ write sys$output "t_p (orig): "+ this_proc
$ this_proc_vers = f$parse( this_proc, , , "version")
$ write sys$output "t_p (mod): "+ this_proc- this_proc_vers
alp $ @ a^;2.com
t_p (orig): DKA100:[sms]a^;2.com;2
t_p (mod): DKA100:[sms]a^.com;2
To guarantee the desired result, a different
(more complicated) method may be needed. For
example:
alp $ @ a^;3.com;3
t_p (orig): DKA100:[sms]a^;3.com;3
t_p (mod): DKA100:[sms]a^.com;3
t_p (mod2): DKA100:[sms]a^;3.com
alp $ type a^;3.com
$ this_proc = f$environment("PROCEDURE")
$ write sys$output "t_p (orig): "+ this_proc
$ this_proc_vers = f$parse( this_proc, , , "version")
$ write sys$output "t_p (mod): "+ this_proc- this_proc_vers
$ this_proc_novers = f$parse( this_proc, , , "device")+ -
f$parse( this_proc, , , "directory")+ -
f$parse( this_proc, , , "name")+ -
f$parse( this_proc, , , "type")
$ write sys$output "t_p (mod2): "+ this_proc_novers
It may be more work than it's worth (and I
even left out "NODE"), but _this_ method
actually _does_ leave all the work to
f$parse(). (So it actually does work.) It's
not the only way, but it may be simpler than
some others.
Sloppy code may be adequate, but it's good to
remember its limitations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 04:00 PM
тАО10-15-2009 04:00 PM
Re: Resubmit job automatically for next day
And if I could read, I might be dangerous.
(Or less so.)
On the other hand, it is different:
alp $ @ a^;4.com
t_p (orig): DKA100:[sms]a^;4.com;4
t_p (mod): DKA100:[sms]a^.com;4
t_p (mod2): DKA100:[sms]a^;4.com
t_p (mod3): DKA100:[sms]a^;4.com;
The trailing semi-colon may matter little,
and using the default file spec is certainly
simpler than building the whole from all the
pieces.
alp $ type a^;4.com
$ this_proc = f$environment("PROCEDURE")
$ write sys$output "t_p (orig): "+ this_proc
$ this_proc_vers = f$parse( this_proc, , , "version")
$ write sys$output "t_p (mod): "+ this_proc- this_proc_vers
$ this_proc_novers = f$parse( this_proc, , , "device")+ -
f$parse( this_proc, , , "directory")+ -
f$parse( this_proc, , , "name")+ -
f$parse( this_proc, , , "type")
$ write sys$output "t_p (mod2): "+ this_proc_novers
$ this_proc_simple = f$parse(";",f$environment("procedure"))
$ write sys$output "t_p (mod3): "+ this_proc_simple
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 07:20 PM
тАО10-15-2009 07:20 PM
Re: Resubmit job automatically for next day
>The trailing semi-colon may matter little,
On the contrary, it matters a LOT. The trailing semi colon is an explicit "most recent version number". Whereas if it's missing, the version is unspecified, and can be therefore be inherited from somewhere else.
Consider (using your symbol names):
$ newfile1= F$PARSE("NEWFILE", this_proc_novers, some_other_filespec)
$ newfile2= F$PARSE("NEWFILE", this_proc_simple, some_other_filespec)
newfile1 will always map to the latest version of NEWFILE, whereas newfile2 can pick up a version number from some_other_filespec, which may result in a filespec which doesn't exist.
Most of the time it doesn't make sense to inherit version numbers between file specifications, so it's better to use an explcit ";" than remove the version number altogether.
FYI: I've put logged a request with OpenVMS engineering for F$PARSE to be enhanced to allow multiple fields to be returned together (there are precedents for this type of syntax in other lexical functions). It's a bit silly having to invoke $PARSE multiple times, when each instance has the complete set of fields available. If they ever action my request, this:
$ this_proc_novers = f$parse( this_proc, , , "device")+ -
f$parse( this_proc, , , "directory")+ -
f$parse( this_proc, , , "name")+ -
f$parse( this_proc, , , "type")
could become:
$ this_proc_novers = f$parse(this_proc, , , "device,directory,name,type")
which would make this kind of filename manipulation much simpler.
(though my perception of OpenVMS engineering at the moment is, unfortunately, they seem far to scared to change anything, so I'm not optimistic of ever seeing it happen).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 09:45 PM
тАО10-15-2009 09:45 PM
Re: Resubmit job automatically for next day
$ this_proc = f$environment("PROCEDURE")
$ this_proc_vers = f$parse( this_proc, , ,- "version")
$ this_proc_novers = f$extract(0,-
f$length(this_proc)-f$length(this_proc_vers),-
this_proc)