- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Submiting a batch job to run automatically twice a...
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
тАО04-03-2008 08:11 AM
тАО04-03-2008 08:11 AM
Re: Submiting a batch job to run automatically twice a year
Why doesn't it submit the job when it find the com file that I am searching for??
It just gives me file is miising, but it isn't!
$ if (f$search("home_scr:'node'_snapshot.com") .eqs. "")
$ then
$ write sys$output "SNAPShot.COM file missing! Program will NOT run."
$ goto the_end
$ else
$ SUBMIT/NOPRINT/QUE=sys$BATCH/LOG=home_LOGS:home_scr:[SCRIPTS]'node'_SNAPSHot.COM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 08:39 AM
тАО04-03-2008 08:39 AM
Re: Submiting a batch job to run automatically twice a year
read Jan's comments again!
Inside a quoted string (such as in your IF statement), you need two apostrophes to begin symbol substitution.
Therefore you need apostrophe apostrophe node apostrophe.
See the attached text file for details
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 09:20 AM
тАО04-03-2008 09:20 AM
Re: Submiting a batch job to run automatically twice a year
%SUBMIT-F-OPENIN, error opening $1$DUA1:[ward]Trek_SNAPSHOT.COM; as input
-RMS-E-FNF, file not found
Instead of the
write sys$output "SNAPSHRINK.COM file missing! Program will NOT run."
So if it does find that file that it is searchig the submit works, but then when I delete that file and reran it, if should come up with the sys$output message?
Shouldn't it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 10:16 AM
тАО04-03-2008 10:16 AM
Re: Submiting a batch job to run automatically twice a year
>>>
%SUBMIT-F-OPENIN, error opening $1$DUA1:[ward]Trek_SNAPSHOT.COM; as input
-RMS-E-FNF, file not found
Instead of the
write sys$output "SNAPSHRINK.COM file missing! Program will NOT run."
<<<
Now _I_ am getting a little confused.
So, some questions
- WHAT is the exact name of the file you want to submit
- WHERE (device, directory) is that file located
- HOW does STEVE_WARD translate
- WHAT is the value of NODE in the context of this process (add a
$ SHOW SYMBOL NODE
and
$ SHOW LOGICAL/FULL STEVE_WARD
as the lines before the f$SEARCH)
I am beginning to think that I was put on the wrong track (derailed, actually) until now.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 10:29 AM
тАО04-03-2008 10:29 AM
Re: Submiting a batch job to run automatically twice a year
%SUBMIT-F-OPENIN, error opening $1$DUA1:[ward]Trek_SNAPSHOT.COM; as input
-RMS-E-FNF, file not found
Instead of the
write sys$output "SNAPSHRINK.COM file missing! Program will NOT run."
<<
It looks like you may not be doing any error checking. Since you got an ERROR, processing of the command procedure stopped and exited - so no "write sys$ouput"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 10:47 AM
тАО04-03-2008 10:47 AM
Re: Submiting a batch job to run automatically twice a year
SET NOON or
ON condition THEN ...
in your command procedure then see HELP ON and look at the examples to see how best to implement error processing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 11:50 AM
тАО04-03-2008 11:50 AM
Re: Submiting a batch job to run automatically twice a year
@WARD.COM
DAY = "Thursday"
MONTH = "04"
%SUBMIT-F-OPENIN, error opening $1$DUA1:[WARD]TREK_SNAPSHOT.COM; as input
-RMS-E-FNF, file not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 12:14 PM
тАО04-03-2008 12:14 PM
Re: Submiting a batch job to run automatically twice a year
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 12:16 PM
тАО04-03-2008 12:16 PM
Re: Submiting a batch job to run automatically twice a year
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 12:19 PM
тАО04-03-2008 12:19 PM
Re: Submiting a batch job to run automatically twice a year
>>>
if (f$search("$1$DUA1:[WARD]:''node'_snapshot.com") .eqs. "")
<<<
The colon (":") between [ward] and ''node'
is incorrect.
And, the search will NEVER find a file with a syntax error.
AND, you should check your logic:
IF the file lookup is empty (CANNOT find the file
THEN submit the file
ELSE (we have found SOMETHING)
THEN report we did not find it
Are you REALLY sure that this is the EXACT procedure? I would have expected an error on the SUBMIT statement...
Proost.
Have one on me.
jpe