Scott,
The *.bds file is specific to the data file you are using. It is created upon opening the file using the DataStation component of BWS.
Because your data file has no header info, I would suggest renaming the field names from the DataStation default of 1,2,3, etc. to something more meaningful. This is done by highlighting each field name and then clicking on the 'Renames Selected field' button.
 
Once you have your fields named the way you want them, save and close your project. Your 'c:\ARRAY\DRUGMNEM.TXT.bds' should be properly structured for the data file you are using. To use this *.bds file again with a data file that has the same data structure, rename it to something like 'drugmnemtmplte.bds'. All of my template files are stored in the same directory apart from the directory the data file resides in.. Typically I assign a constant  to this *.bds filename (and the template directory) within VBA, like:
 
Const TmplteDir = "c:\array\templates\"
Const TmplteFile = "drugmnemtmplte.bds"
 
Pass this constant to the BWS D.OPEN_ command:
D.OPEN_ InputFile, ftDelimited, TmplteDir & TmplteFile
 
Once BWS opens your input file, it will create a new *.bds using the template files structure and the data files naming convention. This new *.bds file will be used within this scripting session.

Hope this helps..
 
 
Thanks,
 
Dwight Clevenger
Senior System Analyst
Baptist Health System
615 Soledad
San Antonio, TX. 78213
210-297-1563
[EMAIL PROTECTED]

>>> [EMAIL PROTECTED] 04/28/2005 03:26 PM >>>
Hello,
I'm attempting to access a simple *.txt file to perform a basic script.
I had an example of a configuration file used in a project back in 2004; but it
just doesn't cut the mustard here.
 
In my current project I have this call set up to utilize the .bds file I believed was
the configuration file the script wanted.
 
D.Open_ myfile, ftDelimited, "c:\ARRAY\DRUGMNEM.TXT.bds"
     
 
But when I run the script it errors out stating " No configurationFile: c:\ARRAY\DRUGMNEM.TXT.bds"
The file does exist; but I fear it is not set up correctly.
The bds file looks like this:
 
[mnem]
Mnemon=0
[general]
filetime=4/28/2005 2:58:30 PM
takelabels=0
[names]
[fields]
[report]
 
The actual data file has entries like this:
 
NIAC50   
*ROCE1S  
ROCE1MBP 
MVI      
MVIT     
etc....  no header or labels, just raw data.
 
 
 
I have another bds file that does work with another script; but no documentation to explain each line's purpose.
It looks like this:
[general]
filetime=6/18/2004 4:16:07 PM
[names]
Mnemon=1
AttPhys=2
MriEntry=3
[fields]
[report]
 
 
Any suggestions?  Does someone have a document or the ability to explain what each line of the
.bds file means and does?
 
Thanks in advance,
Scott
 
 

 


CONFIDENTIALITY NOTICE: This e-mail communication and any attachments
may contain confidential and privileged information for the use of the
designated recipients named above.  If you are not the intended
recipient, you are hereby notified that you have received this communication in
error and that any review, disclosure, dissemination, distribution or copying
of it or its contents is prohibited. If you have received this
communication in error, please notify Saratoga Hospital immediately by e-mail at
[EMAIL PROTECTED] and destroy all copies of this communication
and any attachments.


This email and any files transmitted with it may contain information
that is PRIVILEGED AND CONFIDENTIAL. It is the property of the
Baptist Health System and is intended only for the use of the intended
recipient. If you have received this email in error, do not
disseminate, distribute, forward, print or copy this email or any of
its' attachments. Immediately destroy/purge the email and all
attachments and notify the sender by reply of email. Any misuse/abuse
may result in disciplinary action and/or legal liability. Unauthorized
interception of this email is a violation of federal law.

Reply via email to