|
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
|
- [Talk] bds configuration file missing White, Scott A
- RE: [Talk] bds configuration file missing Corinna
- RE: [Talk] bds configuration file missing Rodgers Chase
- RE: [Talk] bds configuration file missing Bill Palmer
- [Talk] bds configuration file missing Dwight Clevenger
- [Talk] bds configuration file missing David Shelby
