This is the code:
set dvr_ctl_str “{FILESET {{OBFILE $file_name} {OBDIR $path} {OBAPPEND 1} {OBSTYLE single}}}”
msgmetaset $newmh DRIVERCTL $dvr_ctl_str
However, the behavior is that the file is replaced, not appended to. Is this expected behavior for fileset-local when setting the file attributes using DRIVERCTL?
We have an HIS that is sending out results, actually an assessment, where data elements are placed in OBX segments. The HIS is breaking up the assessment into multiple messages because of size limitations.
The assessment data can be unique identified by three fields in the OBR (assessment name, timestamp and entering-userid) – we use this as the unique key. We are ‘collecting’ all the messages that match this key. For each message, we create a file name by concatenating all three fields of the key. If the file does not exist, we set the file name in DRIVERCTL and let the message go through to the protocol and it writes the file. If the file exists, we strip out all but the OBX segments we want, put these in a new message, kill the old message and set the filename in DRIVERCTL. It is the same file name as the one that exists, and if the append flag worked, the new message containing only OBX segments should append to the existing file. Another pair of threads will read these files, if they are at least 5 minutes old.
But the append portion is not working and it is just replacing the file.
Any suggestions or fixes out there?
Peter
Peter Heggie
PeterHeggie@crouse.org