Retrieve from a B2B Integrator Mailbox

To retrieve a file from a B2B Integrator mailbox using IBM® Connect:Direct®, use the following general syntax:

COPY FROM /mailbox/yourMailbox/yourSourceFile
COPY TO   FILE=yourDestinationFile

The following IBM Connect:Direct process example retrieves yourSourceFile from the B2B Integrator-Connect:Direct Server Adapter which picks up the file in your B2B Integrator mailbox.

PULLFILE PROCESS
                  SNODE=yourCDSANode
                  SNODEID=(yourUserID,yourPassword)
STEP1    COPY
               FROM (
                     FILE=/mailbox/yourMailbox/yourSourceFile
                     SNODE
                    )
               TO   (
                     FILE=yourDestinationFile
                     PNODE
                     DISP=RPL
                    )

There are three parts to the FROM FILE name in the Copy step:

  • /mailbox/ is a reserved word and signals to B2B Integrator that you are retrieving from a mailbox.
  • yourMailbox includes the name of the B2B Integrator mailbox.
  • yourSourceFile is the name of the document that is passed from the B2B Integrator mailbox by the B2B Integrator-Connect:Direct Server Adapter to your IBM Connect:Direct node.

After you submit the IBM Connect:Direct Process, you can use IBM Connect:Direct Select Statistics to monitor your IBM Connect:Direct Process, including the source file. For more information on how to use the SELECT STATISTICS command to determine the outcome of a completed Process, refer to the IBM Connect:Direct documentation for the platform you are using.

In B2B Integrator, you can also view yourSourceFile, which is stored as a message in your mailbox. See IBM Sterling Connect:Direct Interoperability at ftp://public.dhe.ibm.com/software/commerce/doc/mft/cdsa/si_cdsa_user_guide.pdf for more information on this B2B Integrator procedure.

For more IBM Connect:Direct Process examples, see B2B Integrator Connect:Direct Server Adapter Examples.