The database is called "Telepath". It is used by pathology departments in
the British National Health Service. I believe it runs under Mumps. The
PCs, of course, run the terminal emulators under Windows of various vintages.
Can't really help you on that one, though I'd have thought there was some
form of bulk loader for Mumps that could do the job. ISTR getting data
/from/ a Mumps system without too much difficulty a few years ago (I didn't
touch it personally, but the NHS IT people we were working with seemed to
have the necessary tools), but maybe it was something else.
Peter Jamieson
> The database is called "Telepath". It is used by pathology departments in
> the British National Health Service. I believe it runs under Mumps. The
[quoted text clipped - 44 lines]
>> > to the terminal emulator and then run the macro that Word has just
>> > produced.
Paul Bishop - 12 Feb 2006 09:16 GMT
I'm not in a position to start meddling with Mumps. All I have is the
functionality of the terminal emulator. I will see if I can get VBA to write
a file which will act as a script for the emulator.

Signature
Paul Bishop
> Can't really help you on that one, though I'd have thought there was some
> form of bulk loader for Mumps that could do the job. ISTR getting data
[quoted text clipped - 51 lines]
> >> > to the terminal emulator and then run the macro that Word has just
> >> > produced.
Paul Bishop - 13 Feb 2006 21:20 GMT
I think I can get the terminal emulator to do what I want by running a
script. The script is a straightforward ascii file. So I need to assemble
the script as a string in VBA, then write it to the script file. Excuse me
asing something so simple, but how do I write the string to a file? (My book
on VBA tells me how to write documents to file, but not a simple string. I am
new to VBA)

Signature
Paul Bishop
> Can't really help you on that one, though I'd have thought there was some
> form of bulk loader for Mumps that could do the job. ISTR getting data
[quoted text clipped - 51 lines]
> >> > to the terminal emulator and then run the macro that Word has just
> >> > produced.
Peter Jamieson - 14 Feb 2006 11:19 GMT
The following code shows an example of how you can write the contents of
string S to a file, but there are doubtless better ways:
Dim s As String
Dim iFileNumber As Integer
Dim strFilePath As String
s = "some text to write"
strFilePath = "c:\mytextfiles\myfile.txt"
iFileNumber = FreeFile
' Need to open for output to create a new file
' because Put to a Binary file just overwrites
' existing data
Open strFilePath For Output As iFileNumber
Close iFileNumber
' Re-open in the mode we want
Open strFilePath For Binary As iFileNumber
Put iFileNumber, , s
Close iFileNumber
Peter Jamieson
>I think I can get the terminal emulator to do what I want by running a
> script. The script is a straightforward ascii file. So I need to
[quoted text clipped - 71 lines]
>> >> > to the terminal emulator and then run the macro that Word has just
>> >> > produced.
Paul Bishop - 15 Feb 2006 20:37 GMT
Thanks
I tried that but it stuck an unprintable character and a "$" at the
beginning of the script. The simplest way to write the scripit is:
s = "the script that I need to run"
open "c:\ptw32\snomed.psl" for output as #1
print #1, s
close #1
It works. I mapped the spare Enter key at the right of hte number pad to
run the script. Let's see if my colleagues think it worth the effort.
Paul Bishop
> The following code shows an example of how you can write the contents of
> string S to a file, but there are doubtless better ways:
[quoted text clipped - 92 lines]
> >> >> > to the terminal emulator and then run the macro that Word has just
> >> >> > produced.