- 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
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
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-29-2004 08:39 PM
09-29-2004 08:39 PM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 12:32 AM
09-30-2004 12:32 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
CHECK_DCL does not only check syntax per se,
but also checks for adherance to (some form of?) good practise.
In line therewith, just for my curiosity:
how about a check for consistent usage of indentation? Equally, or maybe even more interesting for humans who may have to work with the DCL's as well.
Cheers.
Have one on me
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 01:37 AM
09-30-2004 01:37 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
I can't find the reference right now, but there's another place where that's definately not the case and they are suggesting the exact opposite
"how about a check for consistent usage of indentation? "
That's a great subject to cause a thread to continue forever!! ;-)
Personally I find it very annoying to have line labels right next to the $ sign eg: $loop: Why not leave a space? When it's white text on a black screen at 132 col's (and your in your 40's) it gets a little blurry!
How about case? All upper, all lower, or a mix of commands upper, variables, symbols etc. lower? Make it look like a language and "camelback" it ie. $ LoopAgain:
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 02:22 AM
09-30-2004 02:22 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
I DID NOT specify WHAT indentation, only CONSISTENT USE.
In my view that should mean:
If you start with label names having n (0=
If you start indenting your if-then-else constructs with m (1=
Especially the latter one would be a REAL help in debugging, especially in the case where different persons with personal styles have made changes some time in the past.
THAT, and only that, was my intention.
Cheers!
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 03:19 AM
09-30-2004 03:19 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
All if-then-else statements must have their words alligned. Badly alligned scripts are unreadable.
I had the same for COBOL but that one is more complicated (runs every night since 1995 in a site were I worked). It also checked ifs with included statements against a maximum length. And much more.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 03:24 AM
09-30-2004 03:24 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
Jan : have a lot (nen bak) on me !
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2005 12:05 AM
06-30-2005 12:05 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
has anyone an idea how could one insert in a string symbol an apostrophe ? i looked at Anagnostopoulos book.
Basically, it would be probably OK when i could defined a string of one char containing "'" and use a substring assignment as in Anagnostopoulos page 43, but DCL attempts a symbol substitution on it.
Thanks for any help
Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2005 01:27 AM
06-30-2005 01:27 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
You can assign an apostrophe to a symbol by using the escape convention (doubling the character):
$ STRING = "''''"
$ WRITE SYS$ERROR STRING
Admittedly, the doubling rule is one of the more often confusing parts of DCL syntax.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2005 05:15 AM
06-30-2005 05:15 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
and ANY character ( well, except %X0 ), most notably escape sequences, can be made by numeric assignment of the ASCII value.
eg:
$ esc[0,8]=27
(8 bits of the symbol "esc" get ASCII vaule 27, so ESC is the Escape character.
Look up any 8-bit character you need, and it works.
$ eur[0,8]=128 gives the Euro sign on the printer.
I can not look it up now, and I always confuse double-quote ans apostrophe, but one is 41 and the other 43.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2005 06:21 AM
06-30-2005 06:21 AM
Re: DCL syntax - symbol substitution - DCL_CHECK.COM warning
CONSHY» string ="I can't."
CONSHY» write sys$output string
I can't.
Lawr
- « Previous
-
- 1
- 2
- Next »