- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: C function to check for valid openVMS path spe...
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
тАО03-29-2011 09:00 AM
тАО03-29-2011 09:00 AM
Re: C function to check for valid openVMS path specifcation
> syntactically validate a string for a valid
> openVMS path.)
But, as you can see, that can mean different
things, especially in a C context, where a
UNIX-like file spec is also accepted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2011 10:59 AM
тАО03-30-2011 10:59 AM
Re: C function to check for valid openVMS path specifcation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2011 02:07 PM
тАО03-30-2011 02:07 PM
Re: C function to check for valid openVMS path specifcation
I'm not sure $FILESCAN does what Almond wants. $FILESCAN is happy to parse any random string, looking for anything which might be a filespec. You'll get a success status regardless of what you input (as long as the arguments are valid). For a completely invalid filespec the fldflags parameter will be empty, but any trailing garbage will be ignored in a valid filespec.
You could use the valuelst item list to extract the fields which $FILESCAN found, then reconstruct the proposed filespec and compare it with your input. If not equal there were excess characters in the string, and it is therefore invalid. That seems like a lot of work, and I suspect it would fail if you fed it an access control string with a password.
Perhaps try LIB$TRIM_FILESPEC?
LIB$TRIM_FILESPEC(instring,outstring,width,outlength)
make "width" longer than instring and check for a non-null outstring. Status seems to be success for all input strings. TRIM_FILESPEC uses $FILESCAN, but does all the unpacking and packing for you.
(BTW what decided to remove the HTML versions of the OpenVMS document set, replacing them with only PDF?
Not only do I now have to download a complete manual to read anything, but I now have to search it, rather than navigate an index. No doubt it's cheaper because they no longer have to maintain HTML indexes, but at what cost to customer satisfaction? At the very least they could have left the existing versions)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2011 02:36 PM
тАО03-30-2011 02:36 PM
Re: C function to check for valid openVMS path specifcation
> versions of the OpenVMS document set,
> replacing them with only PDF?
It's a mystery to me. I seem to recall
having the same complaint about the HP-UX
"man" stuff. Idiocy would seem to be the
most likely explanation.
> [...] At the very least they could have
> left the existing versions)
No, at the _very_ least, they could have
removed everything. But I'll admit that
removing the most conveniently useful
material is pretty close.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2011 02:28 PM - last edited on тАО08-04-2011 09:48 AM by Kevin_Paul
тАО04-02-2011 02:28 PM - last edited on тАО08-04-2011 09:48 AM by Kevin_Paul
Re: C function to check for valid openVMS path specifcation
>John: BTW what decided to remove the HTML versions of the OpenVMS document set, replacing them with only PDF?
This was mentioned before on the HP-UX side:
http://h30499.www3.hp.com/t5/HP-UX-Technical-Documentation/BSC-Why-bad-decision-broken-links-and-unable-to-find-old/m-p/4734258#M1310
http://h30499.www3.hp.com/t5/HP-UX-Technical-Documentation/How-To-Find-Documents/m-p/4697783#M1269
>Not only do I now have to download a complete manual to read anything, but I now have to search it, rather than navigate an index.
Unfortunately. :-(
>Steven: I seem to recall having the same complaint about the HP-UX "man" stuff.
Yes see above and they improved it by a PDF quick links page:
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02456334/c02456334.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 05:34 AM
тАО04-03-2011 05:34 AM
Re: C function to check for valid openVMS path specifcation
>Unfortunately. :-(
Mac OS X boxes will search the downloaded PDFs at blinding speed with the Spotlight search tool, and AFAIK Windows 7 also offers high-performance searches.
Downloading PDFs was already far more efficient than the HTML-based approach. (This also given the longstanding problems with the HP "search" engine indexing, and the unfortunate fondness for blocking Googlebot from various parts of the HP web site.)
There are secondary issues around the formatting of the downloaded PDF files. Many unfortunately seem to have been generated by substandard tools or conversions, and lack internal hyperlinks and related PDF features.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2011 03:13 PM
тАО04-03-2011 03:13 PM
Re: C function to check for valid openVMS path specifcation
>Mac OS X boxes will search the downloaded
>PDFs at blinding speed
Sure, searches are fast, independent of OS, but they have no context, and I can't search until I've completed a 2MB download. That takes time, especially on this side of the planet. Since the documents themselves have cryptic names, it's non trivial to cache copies and keep track of them, and I then have to track changes.
Consider, suppose I want to look up a specific routine, let's say CREATE. With an INDEX I can use headings to go direct to the top of the routine I'm looking for. With a text search function, I get a bazillion hits in other contexts which aren't relevant to what I'm looking for. Indeed, the indexes and TOCs in the PDFs are a HINDERANCE because the documents themselves have no cross links. Thus, when I'm searching for even a highly specific string like LIB$TRIM_FILESPEC, the first few hits are in the (useless) index or TOC, instead of what I'm looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 02:20 PM
тАО04-05-2011 02:20 PM
Re: C function to check for valid openVMS path specifcation
Here is HPs response regarding the documentation:
"We regret the inconvenience. The HTML pages
were not complying to the HP standards and
had to be removed from the site."
So, instead of pushing back on the standard saying "that would inconvenience our paying customers - the standard should be changed", or reprocessing the HTML pages to conform with whatever nonsense the pointy haired bosses decided to call a standard, the "solution" is to delete useful information?
Wow!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 09:29 PM
тАО04-05-2011 09:29 PM
Re: C function to check for valid openVMS path specifcation
And I was afraid that they wouldn't have a
good reason. Silly of me, I see now.
This from the people who give us "Error while
posting the reply" half the time when we're
foolish enough to try "Submit>>" after
"Preview>>". It's enough to drive one to
personal abuse.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2011 02:20 PM
тАО04-06-2011 02:20 PM
Re: C function to check for valid openVMS path specifcation
> [...] not complying to the HP standards [...]
This "complying to" got my attention so I went and checked.
From <>
"
Is it comply with or comply to?
It is "comply with" or "conform to" not "comply to."
To act in agreement with rules or requests.
Definitely comply with
"
It will be interesting to see what form they will use in the announcement about complete removal of the documentation.
-Boris