- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - OpenVMS
- >
- How program can find out that a file can be copied...
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
How program can find out that a file can be copied?
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2005 09:37 PM
10-13-2005 09:37 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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?
Re: How program can find out that a file can be copied?
Jurek
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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?
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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP