- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Opening file on Advanced Server share for write-sh...
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
тАО10-05-2009 09:19 AM
тАО10-05-2009 09:19 AM
Opening file on Advanced Server share for write-sharing
Is there any way to access an existing file on VMS (sequential; fixed-length 128 byte records) from a Windows application, so that the file is opened by Advanced Server for read-only access but with write-sharing allowed?
The Windows application is currently written in C++, but using other Windows APIs or languages to access the file may be acceptable to the developer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2009 10:48 AM
тАО10-05-2009 10:48 AM
Re: Opening file on Advanced Server share for write-sharing
I don't use Advanced Server, but I am trying to understand the problem you are trying to solve.
What will be opening the file for write access; a process running on the VMS system?
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2009 11:15 AM
тАО10-05-2009 11:15 AM
Re: Opening file on Advanced Server share for write-sharing
Yes, the file is periodically updated by VMS.
If write-sharing is not allowed, then if this update occurs when the PC application is reading the file, either the PC application or the VMS update will fail (depending on which one opens the file first).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2009 12:57 PM
тАО10-05-2009 12:57 PM
Re: Opening file on Advanced Server share for write-sharing
I can't test this (no Advanced Server here). Try having a process keep the file open for WRITE SHARED permanently. You can have a single process do this for manly files, just a string of OPENs and a $HIBER, you can even do it in DCL. Do it before any other attempts are made to open the file.
If the ACL access to the file via Advanced Server is READONLY, that should do what you want.
If this works, you could them implement a server process which will open and close files on demand, or even troll directories looking for files which should be shareable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2009 01:03 PM
тАО10-05-2009 01:03 PM
Re: Opening file on Advanced Server share for write-sharing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2009 01:24 PM
тАО10-05-2009 01:24 PM
Re: Opening file on Advanced Server share for write-sharing
From DCL:
Prc1$ open/write/share=(write) test scr:t.t
Prc1$
Prc2$ open/read test scr:t.t
%DCL-E-OPENIN, error opening ROOT$USERS:[JON.SCRATCH]T.T; as input
-RMS-E-FLK, file currently locked by another user
Prc2$ open/read test scr:t.t/share=(write)
$
It should be easy to test, so trying it will a DCL open like the first one above followed by an attempt to access the file from the PC application will be the definitive test.
I agree with Hoff, Advanced Server isn't the best tool for the job. If you don't have an ODBC server, and don't want to acquire one, the following work around may work.
If the files are normally closed, the files are small, and the files can be opened/closed for each access, then an Ethernet like protocol can be used. In other words, each accessor will attempt to open, and if it fails, wait a while and try again, with some max number of tries before failing. Once the open succeeds, do the work, and then close the file. The frequency of access will indicate if this is an acceptable workaround, it certainly does not scale well.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 07:41 AM
тАО10-06-2009 07:41 AM