- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How to find whether the content of a file is b...
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
тАО11-28-2005 05:43 PM
тАО11-28-2005 05:43 PM
which sentence(lexical) to use?
$
$if (****what to input here****?)
$...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 06:00 PM
тАО11-28-2005 06:00 PM
Re: How to find whether the content of a file is blank ?
Hope that helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 06:04 PM
тАО11-28-2005 06:04 PM
Re: How to find whether the content of a file is blank ?
A file may have been preallocated but not yet
used.
$ IF f$file_atributes("file.type","EOF") .EQ. 0 THEN file_is_empty
An ALQ value of zero is indeed and empty file.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 06:05 PM
тАО11-28-2005 06:05 PM
Re: How to find whether the content of a file is blank ?
This to avoid that 0/4 (dir/siz=all) is considered not empty.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 06:16 PM
тАО11-28-2005 06:16 PM
SolutionSo F$File_atributtes may be used with argument eof or alq and You have to do some errorhandlink in case the file is locked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 07:00 PM
тАО11-28-2005 07:00 PM
Re: How to find whether the content of a file is blank ?
good explanations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 08:08 PM
тАО11-28-2005 08:08 PM
Re: How to find whether the content of a file is blank ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 09:18 PM
тАО11-28-2005 09:18 PM
Re: How to find whether the content of a file is blank ?
I really can not support that, for 2 reasons:
1. a file that was opened for write for the first time, and is not yet closed, will ALWAYS return 0/
2. a LOG file open for write will have been deferred written to, meaning that the data that belongs to the file still is in buffer memory, and has not yet been transferred to the file on disk.
Meaning the LOG has been written to, but the disk FILE would still show as 0/...
Those files WILL however turm up as LOCKED, so handling the LOCKED error as "not yet known - still active" will give better info.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 10:35 PM
тАО11-28-2005 10:35 PM
Re: How to find whether the content of a file is blank ?
It was just a solution to bypass the lock message.
1. Not always but often.
2. Agree but he should test if the file is locked if he needs that.
Wim