- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Is %COPY-S-COPIED always 100% -S- ?
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
тАО05-03-2007 01:58 AM
тАО05-03-2007 01:58 AM
Is %COPY-S-COPIED always 100% -S- ?
I see the two COPY commands come back with %COPY-S-COPIED. The next bit of code shouldn't execute because the Mail_User symbol doesn't exist and it should just Return.
Immediately following the two -S-'s, I see:
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\\\
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
\SAVE_VERIFY\
SAVE_STATUS = "%X00038090"
*** END SCREENSHOT HERE ***
I just can't see how it might fail on the blank line or the test on If Mail_User !! I assume from the first DCL-W- \\\ that it's seeing a \ somewhere? Is the COPY-S- not really a -S- ?
No idea,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 02:24 AM
тАО05-03-2007 02:24 AM
Re: Is %COPY-S-COPIED always 100% -S- ?
-- Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 02:30 AM
тАО05-03-2007 02:30 AM
Re: Is %COPY-S-COPIED always 100% -S- ?
$ if mail_user .eqs. "" then hallo
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\\\
$ sho sym if
IF = "\"
Just a guess ;-)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 04:09 AM
тАО05-03-2007 04:09 AM
Re: Is %COPY-S-COPIED always 100% -S- ?
If this problem were regularly occurring, I'd recommend using the DCL debugger.
Since I presume (based on your statement about a "screen shot") that this job is running interactively, adding the verify will allow the operator to see the actual offending command, not just the error message. With verify off, this error could be coming from anyplace between the "IF" and the "MAIL" (nb: your code says "MAILL", not "MAIL") and you wouldn't be able to track it down precisely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 07:41 AM
тАО05-03-2007 07:41 AM
Re: Is %COPY-S-COPIED always 100% -S- ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 07:55 AM
тАО05-03-2007 07:55 AM
Re: Is %COPY-S-COPIED always 100% -S- ?
What DCL debugger? Guy Peleg special?
Aaron>> nb: your code says "MAILL", not "MAIL")
It could be a typo, but it is also a fairly common technique to avoid using a declared symbol, or in fact to use a special flavor.
If dir:==dir/date then dirr can be used to get a plain directory command.
The maill might use a maill:==mail/self definition.
Anyway, surely Volker is on the right track... something somewhere fed DCL a raw backslash: $Search *.com \ !????
Art>>Is the COPY-S- not really a -S- ?
Succes is succes.
You showed but a tiny fraction of the script.
Notably you did not show where the error handler is set up. So I think it is fair to assume it was active before getting to this code, and is still active after the return.
Could the bad statement not come from the code continuation after the return?
Too bad that DCL does not remember an offending line number for us huh?
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 09:19 AM
тАО05-03-2007 09:19 AM
Re: Is %COPY-S-COPIED always 100% -S- ?
MAILL is not a typo, they wrote their own mail program and the two LL's avoid running it.
I didn't include all 400+ lines of code because it's brutal and would be too difficult to obfiscate (sp?).
SET VERIFY - showing the operators thousands of lines of DCL would probably make them cry and complain they can't do their job.
I searched through the most obvious directories for this account, no \'s defined.
I will add the SAVE_VERIFY symbol.
The error handler is setup at the top of the procedure:
$ On Error Then Goto Errhandler
The weird thing is it only happens once every few months so I'm thinking it's not really this code, but something else that the operator has done/run just before this procedure.
Re: DCL debugger - I am using it. It's found at the ITRC VMS Forum ;-)
1-800-do-my-job
Cheers,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 05:41 PM
тАО05-03-2007 05:41 PM
Re: Is %COPY-S-COPIED always 100% -S- ?
Google for DCL_DEBUG.COM
Art,
now as we have some possible culprit symbols for this error, why not add a couple of SHOW SYMB into the error handler (i.e. for IF, RETURN, MAILL) ? So you will have to do less speculation next time...
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2007 06:16 PM
тАО05-03-2007 06:16 PM
Re: Is %COPY-S-COPIED always 100% -S- ?
the points should go to Walter !
Your error handler is defined to handle severity: ERROR. But the %DCL-W-IVVERB is only a WARNING, so the error handler should NOT have been called.
The only way to reach the ERROR handler without a previous ERROR would be an invalid RETURN statement/symbol ( RETURN = "\" ) - at least in the code snippet you've provided.
Volker.