Retrieve from a B2B Integrator Business Process

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

COPY FROM /businessprocess/yourBusinessProcess/yourSourceFile
COPY TO   FILE=yourDestinationFile

The following IBM Connect:Direct Process example retrieves yourSourceFile from the B2B Integrator-Connect:Direct Server Adapter which receives the file from your business process.

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

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

  • /businessprocess/ is a reserved word and signals to B2B Integrator that you are invoking a business process.
  • yourBusinessProcess is the name of the B2B Integrator business process that the IBM Connect:Direct Server Adapter invokes.
  • yourSourceFile is the name of the document that is passed from the B2B Integrator-Connect:Direct Server Adapter to your IBM Connect:Direct node. This document is the Primary Document in your business process.

After you submit your IBM Connect:Direct Process, you can use both IBM Connect:Direct and B2B Integrator to monitor this process. 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.

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