Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Stevo356 (Programmer) (OP)
23 Nov 10 8:26
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.

 
 
BradMcCusker (IS/IT--Management)
30 Nov 10 17:40
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
www.sciinc.com

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!

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