- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: DCL syntax - symbol substitution - DCL_CHECK.C...
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-27-2004 06:03 AM
тАО09-27-2004 06:03 AM
LINE CODE --DIAGNOSTIC MESSAGE--
108 PRQ probable error using single-quote (')
It comes about when I set a local string symbol with:
$ SEARCH_WAIT_TIME := "00:03:00"
and use it later with:
$ WAIT 'SEARCH_WAIT_TIME
It definately works, it's been in use every 3 minutes for about a year.
Is it "wrong"?
Art
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 06:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 06:30 AM
тАО09-27-2004 06:30 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
well, I suppose if it works for you it's not totally wrong. I tried it and appears DCL is discarding your extra set of quotes...
$ SEARCH_WAIT_TIME := "00:03:00"
$ show symbol SEARCH_WAIT_TIME
SEARCH_WAIT_TIME = "00:03:00"
Correct form with the := and :== operators is to not use explicit quotes since all text to the right of the operator is already implicitly quoted...
$ SEARCH_WAIT_TIME := 00:03:00
$ show symbol SEARCH_WAIT_TIME
SEARCH_WAIT_TIME = "00:03:00"
Or, you could use the = or == operators which do not perform implicit quoting. Then it would be correct form to include explicit quotes.
$ show symbol SEARCH_WAIT_TIME
$ SEARCH_WAIT_TIME = "00:03:00"
I'm not sure if your method could result in substitution problems or limitations if the quoting and symbol substitution were signicantly more complicated than your example.
I was using...
$ show system/noproc
OpenVMS V7.3-2 on node CH21 27-SEP-2004 20:19:28.73 Uptime 28 07:04:01
Cheers!
Keith Cayemberg
Consultant
Wipro Technologies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 06:37 AM
тАО09-27-2004 06:37 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
Cheers!
Keith
Consultant
Wipro Technologies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 06:38 AM
тАО09-27-2004 06:38 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
It is possible to write scripts that are 100% warning free but sometimes you have to find a warning free syntax. E.g. goto's to a value of a symbol are hard to understand. E.g. symbol substitution. E.g. label formats (balnks before :).
Today I posted a dcl_check in zhich I cleaned out some of the messages that I found redundant (for me).
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 07:09 AM
тАО09-27-2004 07:09 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
"The "official" syntax for sustitution calls for one trailing apostrophe; however, it is unnecessary in many cases." ... and then goes on to list the specific situations where it is. My situation it's not.
Another good quote is on page 68:
"Programmers are often confused about the context in which apostrophe substitution is required, and this results in overuse of the construct."
Just trying to live "by the book".
Thanks,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 07:36 AM
тАО09-27-2004 07:36 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
I use 2 methods only (risk ?)
1) "''symbol'"
2) 'symbol'
Format 2 has no discussion of where the symbol ends. Why use the 'symbol ?
Of couse, dcl_check should recognize al formats but I think the author was convinced that my/his formats are the real ones.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 08:06 AM
тАО09-27-2004 08:06 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
'Cause if Steve Hoffman tells me it's unneccesary, I should probably listen!
;-)
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2004 09:07 AM
тАО09-27-2004 09:07 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
I think the DCL_CHECK author is suggesting its better style always to including for those occations when it is necessary.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2004 10:20 AM
тАО09-29-2004 10:20 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company