- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How program can find out that a file can be co...
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-13-2005 09:37 PM
тАО10-13-2005 09:37 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 09:43 PM
тАО10-13-2005 09:43 PM
Re: How program can find out that a file can be copied?
there is no system service to tell, whether a file is opened from another process.
You could try to open the file in exclusive mode, allowing no sharing, which would fail, if another process has the file open.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 09:45 PM
тАО10-13-2005 09:45 PM
Re: How program can find out that a file can be copied?
You might want to try SYS$OPEN.
See HELP SYSTEM_SERVICES $OPEN , and the Record Management Services Reference manual.
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 10:15 PM
тАО10-13-2005 10:15 PM
Re: How program can find out that a file can be copied?
It can display, if a file is locked and by whom.
Source code (C and macro) is provided.
May you can get some hints.
You find it at the usual place at Hunter Goatley filearchive:
http://www.process.com/openvms/index.html
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 10:24 PM
тАО10-13-2005 10:24 PM
Solutionthe following statement in FORTRAN could do, what you want:
OPEN (UNIT=1, FILE='test.dat',STATUS='OLD')
$! File test.dat not access by any process
$ run ITRC_965548
$! Access file
$ open/read x test.dat
$ run ITRC_965548
%FOR-F-OPEFAI, open failure
unit 1 file USERDISK1:
user PC 00000000
-RMS-E-FLK, file currently locked by another user
...
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 10:40 PM
тАО10-13-2005 10:40 PM
Re: How program can find out that a file can be copied?
Jurek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2005 10:43 AM
тАО10-16-2005 10:43 AM
Re: How program can find out that a file can be copied?
The simplest way to copy a file under program control is using callable CONVERT.
Attached is a MACRO32 program to perform a COPY. Check the return status to see if it was successful.