Subject: | |
From: | |
Reply To: | |
Date: | Thu, 7 Dec 1995 20:35:25 EST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Thu, 7 Dec 1995 14:49:17 -0500 John Korb said:
>Some years back I worked with a site that used REFLECTION to download
>files from the HP 3000 to PCs at night. A COBOL program on the HP 3000
>dialed out [...]
You can do neat tricks with command files too (and easier to debug) using
redirection, echo, and input. And further...
> it sent a REFLECTION command
>to initiate the file transfer. I seem to remember the command as being:
>
> <esc>&oCreceive c:\dir\file.ext from hostfile
>
>The COBOL program had to accept input from the PC (such as the RUN PCLINK
>command used to establish the transfer and the result code REFLECTION
>sent after the transfer [S|F|U]) but otherwise was fairly simple. I
>would presume that this would still work today.
Here you can "input" a variable with prompt= your above command string, plus
a chr(13) <CR>. Initially this will "input" the host startup sequence which
you can then execute in the command file by just dereferencing the variable.
After that execution, you do another "input" to get the result code. Bingo,
look ma, no createprocess coding and other necessary frills for the program.
Jeff Kell <[log in to unmask]>
|
|
|