- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: To delete a file if the sie of the file is les...
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
тАО07-26-2010 03:09 PM
тАО07-26-2010 03:09 PM
Re: To delete a file if the sie of the file is less than 1 blocks in OpenVms
If you have no choice but to clean them up afterwards then maybe they have a naming convention that will help identify them. Use something like
$ WILD_FILE_NAME= "ABC*.*"
$ LOOP:
$ THIS_FILE = F$SEARCH(WILD_FILE_NAME)
This might avoid deleting the wrong file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 08:24 PM
тАО07-26-2010 08:24 PM
Re: To delete a file if the sie of the file is less than 1 blocks in OpenVms
Who creates these files? Is it your application, when executed? If there is any specific pattern in the file name, then you can use the pattern to search the files using F$SERCH lexical as provided by the John Gillings. Be careful while deleting the files (you may not want to delete impotent files accidentally). As John Mcl said, it is good to prevent creation of such unwanted files than deleting then later. Prevention will save your precious time every time.
Regards,
Ketan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2010 11:00 PM
тАО07-26-2010 11:00 PM
Re: To delete a file if the sie of the file is less than 1 blocks in OpenVms
Thanks for your comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2010 03:29 AM
тАО07-27-2010 03:29 AM
Re: To delete a file if the sie of the file is less than 1 blocks in OpenVms
I would still use the Open/Close check if unsure whether the file is in use or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2010 02:52 PM
тАО07-27-2010 02:52 PM
SolutionBut you'll need eventually to tackle the problem at source - find out what is creating the files and stop it!
Peejay
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If it can't be done with a VT220, who needs it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2010 07:23 PM
тАО07-27-2010 07:23 PM
Re: To delete a file if the sie of the file is less than 1 blocks in OpenVms
i have found out the issue why it was creating multiple files with 0 blocks. thanks a lot for your help. i have made the changes in the com.
Thanks to all once again.
- « Previous
-
- 1
- 2
- Next »