- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: $SEVERITY one more time ...
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
тАО09-30-2005 08:08 AM
тАО09-30-2005 08:08 AM
Clearly I must have a DCL issue , but I can't see it and DCL_CHECK.COM thinks it's ok too.
It's been a rough week. Two more hours 'till beverage time!!
Cheers,
Art
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 08:08 AM
тАО09-30-2005 08:08 AM
Re: $SEVERITY one more time ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 08:27 AM
тАО09-30-2005 08:27 AM
Re: $SEVERITY one more time ...
$ backup_status = $STATUS
$ backup_severity = $SEVERITY
I would think backup_severity will receive the severity of the
" $ backup_status = $status " assignment...
and, barring DCL table overflow, this will return Success, as the asssignment will only fail if $satus is undefined OR DCL table overflows.
Replace the severity asignment by:
$ backup_severity = backup_status .and. %X7
will do the trick.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 08:52 AM
тАО09-30-2005 08:52 AM
Re: $SEVERITY one more time ...
Cheers,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 09:59 AM
тАО09-30-2005 09:59 AM
Re: $SEVERITY one more time ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 10:00 AM
тАО09-30-2005 10:00 AM
Re: $SEVERITY one more time ...
Jan is right. Now, in answer to your last question:
$status & $severity are set upon backup completion and only tell you whether or not backup finished normally or failed to complete.
Your -W- messages didn't cause backup to exit abnormally, so the backup succeeded.
To see why you didn't get any mail, try this:
$ backup_status = %X10A38410
$ backup_severity = $SEVERITY
$!
$ if .NOT. %X10A38410
$ then
$ write sys$output -
"NOT and $severity=" + backup_severity
$ else
$ write sys$output "OK"
$ endif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 02:39 PM
тАО09-30-2005 02:39 PM
Re: $SEVERITY one more time ...
I understand now ... after a few bev's ;-)
Cheers x8,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 03:06 PM
тАО09-30-2005 03:06 PM
SolutionThe fact that a simple assignment sets a new $status in DCL is a bit puzzling. It would require a rather creative dcl procedure to exploit that, whereas it would clearly be useful, and possibly natural, to retain status over this trivial built-in.
This very topic shows this.
The trouble comes perhaps with complex assignment like a dynamic array: $x = x'y
Or when using a lexical $x = f$lexical...
Still...
Some comments:
1) I'm with David on the text/integer concern. When assigning $STATUS you may want to use a substitition and get it in integer form: $x = '$status
I personally don't like using constructs like: $if string .eq. 1
It does the right thing, but raises unneeded doubts (as proven by Davids reply).
Plus, the substitution helps with verification mode (batch logs)
2) The test_status section tests for two explicit non-success values, but does not handle the 3rd possible value: 4 = fatal
(for example after $BACKUP nonsense: xxx)
So I would prefer to just test for warning else error (or fatal):
$ if backup_severity .EQ. 0 ! Warning
$ then
:
$ else
:
$ endif
3) Instead of 3 repeated nearly identical 'complex' commands which is hard to maintain consider something like this (untested)
$text_status = f$element (backup_severity,"|","with Warnings|OK|with Errors|OKish|with FATAL Error")
$maill /subj="''nodename' backup completed ''text_status' ''target_device_name'" nl: "smtp%""awiens@domain.com"""
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2005 02:52 AM
тАО10-01-2005 02:52 AM
Re: $SEVERITY one more time ...
No it's not, I didn't include it, but there is an on severe_error up top to catch all the "bad things".
The rest of your suggestions are very good! I'll change up the procedure to incorporate all the suggested changes.
Thanks guys!
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 12:24 AM
тАО10-03-2005 12:24 AM
Re: $SEVERITY one more time ...
And, fwiw, I do believe it would merrit a comment in the 'test_status' section mentioning 'can not get here with sev=4: fatal errors'.
Cheers,
Hein.