Technical Blog Post
Abstract
FTP mailbox set up to send/receive files without using the translator
Body
1. Create an extraction mailbox. Set the location to where you want to send incoming interchanges that should not go through the translator.
2. Create an FTP mailbox. Make the extraction mailbox in step 1 the recipient. Write the script so that the mailbox can only receive.
3. Create a dummy partner profile. Use as the Profile ID, Name and EDI Code, unique values from any other partner. Select the FTP mailbox created in step 1 in the Default Mailbox field. Do not add any inbound or outbound relationships.
4. Create an FTP mailbox for which the script can only send. Do not input any recipients.
5. Create a collection mailbox and make the FTP mailbox from step 4 the recipient. The Content Type remains Application/EDI
6. Create a second dummy partner profile. Use as the Profile ID, Name and EDI Code, unique values from any other partner. Select the FTP mailbox created in step 4 in the Default Mailbox field. Do not add any inbound or outbound relationships.
7. Create a Process Control session that does at least two things. The first is an Exec_Program that will have the back-end system place outbound files in the folder polled by the collection mailbox from step 5. The second is a GDW_Send_Only on the FTP mailbox from step 4.
8. Create a Process Control session that does a GDW_Receive_Only on the FTP mailbox from step 2.
Notes:
a. The receiving portion of this setup will only work if the data on the FTP server that you connect to is separated such that data that should go through Gentran Application (the translator) is in a separate location (meaning mailbox, directory, or whatever terminology is used on that server) from data that should NOT go through Gentran Application.
b. With the default FTP receive scripts, all available interchanges will be downloaded and concatenated into a single file, which will be passed to the Extraction mailbox. There is not a way to know how many interchanges are in that file for a given session, except to open the file and review it.
c. If a mailbox is not associated with any partner profile, it will not show as available in the list of mailboxes for a manually initiated communication session and will not show as available in the list of mailboxes for a GDW_Send_Receive, GDW_Receive_Only, or GDW_Send_Only commands when setting up Process Control. That is why the two dummy partner profiles are necessary.
UID
ibm11123095