Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How do you check a open/set size file is being used

How do you check a open/set size file is being used

How do you check a open/set size file is being used

If you have a file that is a set size and is constantly open, how can I tell its being used?

I have a db (flat file) that when a piece of code got itself into what I believe was an infinite loop (timing issue) there wasn't any updates to the database for an extended period. I need to know if there is something I can do to monitor and determine if this is happening. I can't think of a way to determine if its being written too, as the size is constant and it doesn't open or close on a regular intervals (changing the file timestamp). Is there anything I can do on the O/S side of things to determine this?

Much appreciated if anyone can point me in the right VMS direction, other than re-coding the actual application that uses the flat file.


RE: How do you check a open/set size file is being used

Hello Steveo356,

You could try to enable RMS statistics on the file (you might have to do this when it's closed by the application).  See HELP SET FILE /STATISTICS.  You would then use MONITOR RMS filename.ext to look at the activity against that file.

This may not work depending on how you are doing your writes (i.e. if you aren't using RMS) and what mode your program is (I'm pretty sure MONITOR is only going to see user mode activity).  You'll want to play around with it when the application is working correctly to see if it might be useful for you.

Good luck,

Brad McCusker
Software Concepts International

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close