Another option is to create a loop looking at the modified date of the file and 
comparing that to the date-time the loop pulled from it's previous pass 
(probably waiting at least 10 seconds in between).  If the date-times are 
different, the file is still being modified.  If the date-times are the same, 
the file's no longer being modified.  Of course, this doesn't guarantee that 
the file was completely written to successfully, it just verifies that it's no 
longer being modified.  Mitch's suggestion of a trailer record would be the 
best way to guarantee the file is completely written to successfully, but of 
course then you need to have control of the file content generation.

 

 

Ryan Rush
OBS Development Specialist
Providence Health & Services
Oregon RIS - Development
1235 NE 47th Ave #110
Portland, OR 97213
t: 503.215.4441
f: 503.215.4343
p: 503.604.6935
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

 

 

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2008 12:11 PM
To: [email protected]
Subject: [talkbws] RE: Issue getting file too soon.......

 

If the file is being actively written to, depending on the methods used in BWS, 
BWS will likely not be able to do anything with the file until the file lock is 
cleared out.

 

Best way to determine file completeness is to ensure the file contains a 
trailer record of some sort. If the trailer record isn't there, then the file 
was truncated.

 

 

Thank you,

Mitch Lawrence

Lead Applications Analyst

Technical Support - NPR/Automation

CHRISTUS Information Management

T: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

Send a "thank you <http://intranet.christushealth.org/spiritBuck/Default.asp> " 
to someone!

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2008 2:07 PM
To: [email protected]
Subject: [talkbws] Issue getting file too soon.......

 

To All,

I have a customer concerned that a file might not be finished building when the 
BWS goes to pick it up.  

 

Here's the scenario:

A Handheld device is entering stock items/quantities and creates a file.  
(Don't know the exact

scenario/timing of how file gets to the folder)

 

The BWS script is going to be running and checking for this file to exist.

 

The file will then be uploaded into the Meditech MM Floors Inventory.

 

So the question is, can BWS tell if a file is done building?  

Donna Ledgerwood
Senior Integration Analyst
Micro Star  
Home Office: 315-536-0834
Cell:  315-729-3804
Fax: 315-536-7338
EMAIL: [EMAIL PROTECTED] 

--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [EMAIL PROTECTED] 

Unsubscribe in the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx 

--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [EMAIL PROTECTED] 

Unsubscribe in the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx 
--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [EMAIL PROTECTED] 

Unsubscribe in the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx 



DISCLAIMER:
This message is intended for the sole use of the addressee, and may contain 
information that is privileged, confidential and exempt from disclosure under 
applicable law. If you are not the addressee you are hereby notified that you 
may not use, copy, disclose, or distribute to anyone the message or any 
information contained in the message. If you have received this message in 
error, please immediately advise the sender by reply email and delete this 
message.

<<image001.png>>

Reply via email to