Connect:Direct is a product of Sterling Commerce. More info of the product can be found on www.sterlingcommerce.com.
PRODBX supports calls to Connect:Direct to send files, generated by the fixed file client, to another computer. Since PRODBX runs on Microsoft based computers, using Connect:Direct may be a way to support other operating systems, when the data exchange can happen through file transfer.
You do not have to install the System Development Kit of Connect:Direct to enable this function.
If you want to use Connect:Direct support you must specify the /CD option in the shortcut calling the PRODBX Client. (See Installation - Client Shortcut)
Once enabled, the client will get an extra menu option where you can specify some additional parameters.
Pay special attention to the command file, which is holding the script for Connect:Direct. More information can be found in the documentation of CD. Also the contents of the script is case sensitive. PRODBX passes only one parameter which is &filename. Make sure you use this parameter in your script, written in the exact same way as specified here. For instance &Filename won't work because of the capital F.
Example of a minimum script transferring the file generated by PRODBX from one machine to another:
In this example the &filename is transferred from PROMESCLIENT1\\D:\ to PROMESCLIENT2\\C:\. Make sure the &senddir holds the same path as specified for the PRODBX client in the outgoing files section of the configuration manager.
A little bit more robust would be a script like this:
Together with this script you enable 'Send on Create' and 'Scan directory'. You also specify the 'Reset archive' option in the configuration manager.
The logic is: when PRODBX generates an output file, it calls the Connect:Direct script. When the file transfer is successful, the file is copied into a archive folder. However, when the transfer did not succeed the file will be copied in the same directory as the output directory. In this case the archive attribute of the file is set again. Every 10 seconds, PRODBX will scan the output directory and try to post the files that have the archive attribute set (which is indeed the same file that previously was not sent). If the output directory holds more then one unsent file, it will send them in FIFO order.
One last remark: make sure all Connect:Direct nodes are known in the netmap section of your S-node.
PROMES BVBA - Laarsebeekdreef 14 2900 Schoten Belgium
Tel: +32 475 87 69 38 - E-mail: firstname.lastname@example.org