No Such File
-
Topic author - Active Contributor
- Posts: 39
- Joined: Fri Jun 28, 2019 10:29 am
- Reputation: 0
- Location: Gary, Indiana
- Status: Offline
No Such File
What is the best method or methods, to remove files that come up on a dir as "no such file"?
-
- VSI Expert
- Contributor
- Posts: 10
- Joined: Thu Aug 29, 2019 1:44 pm
- Reputation: 0
- Status: Offline
Re: No Such File
You could simply DELETE them, but if that somehow fails, try SET FILE/REMOVE.
The only way I've seen directory entries which show "no such file" is when a file has been linked in multiple directories with SET FILE/ENTER and then one of them is DELETEd which leaves the other one dangling.
Summary advice to avoid the problem (if this was the cause): Don't use SET FILE/ENTER unless you (and everyone else with control over those files) will remember the multiply-linked nature of the file(s) and not DELETE one reference when you still have the other. Note that the admonishment against DELETE includes PURGE.
The only way I've seen directory entries which show "no such file" is when a file has been linked in multiple directories with SET FILE/ENTER and then one of them is DELETEd which leaves the other one dangling.
Summary advice to avoid the problem (if this was the cause): Don't use SET FILE/ENTER unless you (and everyone else with control over those files) will remember the multiply-linked nature of the file(s) and not DELETE one reference when you still have the other. Note that the admonishment against DELETE includes PURGE.
Re: No Such File
You could always use
$ ANALYZE/DISK/REPAIR
Or the freeware program (it came from DEC but being freeware, it was not officially supported) DFU - Disk and File Utilities - which is a lot faster than ANALYZE... however I believe that it only supports ODS-2 disks and not ODS-5.
$ DFU/VERIFY/FIX
$ ANALYZE/DISK/REPAIR
Or the freeware program (it came from DEC but being freeware, it was not officially supported) DFU - Disk and File Utilities - which is a lot faster than ANALYZE... however I believe that it only supports ODS-2 disks and not ODS-5.
$ DFU/VERIFY/FIX
-
- Valued Contributor
- Posts: 88
- Joined: Fri Jul 12, 2019 1:59 pm
- Reputation: 0
- Location: Netherlands
- Status: Offline
- Contact:
-
- Master
- Posts: 104
- Joined: Fri Jun 14, 2019 11:05 pm
- Reputation: 0
- Location: Goslar, Germany
- Status: Offline
- Contact:
Re: No Such File
It does have some display issues with disks > 1TB - some sizes are displayed as negative numbers.. Otherwise, it's a must-have.
There is something wrong with everything that is popular.
(Charles Fort)
(Charles Fort)
-
- Active Contributor
- Posts: 38
- Joined: Thu Nov 19, 2020 7:15 am
- Reputation: 0
- Location: Basingstoke, UK
- Status: Offline
- Contact:
Re: No Such File
We're using NFS mounts from a Debian server on our OpenVMS system and occasionally experience the "No such file" error, and this causes compilations to fail as source or include files are missing.
Thanks
Gary
- What's the usual cause of these errors?
- How can we stop them occurring/fix them?
Thanks
Gary
Re: No Such File
Gary, the older base topic is about a very specific problem case.
For the OP a simple DIREXXX (XXX to prevent to pick up symbol definitions) would show the file, but any action on the file such as DIRECTORY/SIZE would fail with no-such-file .
Is the same situation true for your case?
What were your exact errors SYS$_NOSUCHFILE or RMS$_FNF ?
You may want to create a fresh post for your specific problem
Please include
- exact error message(s)
- why you think the files are looked for in the place they are looked for ( Logical names? Search lists?)
- how the files should have gotten there (always there? freshly compiled? freshly copied? SET FILE/ENTER ?)
hth.
Hein.
For the OP a simple DIREXXX (XXX to prevent to pick up symbol definitions) would show the file, but any action on the file such as DIRECTORY/SIZE would fail with no-such-file .
Is the same situation true for your case?
What were your exact errors SYS$_NOSUCHFILE or RMS$_FNF ?
You may want to create a fresh post for your specific problem
Please include
- exact error message(s)
- why you think the files are looked for in the place they are looked for ( Logical names? Search lists?)
- how the files should have gotten there (always there? freshly compiled? freshly copied? SET FILE/ENTER ?)
hth.
Hein.
Last edited by hein on Mon Jan 18, 2021 10:21 am, edited 1 time in total.