IBM Sterling Connect:Direct : CD Process Files: Difference between revisions

From Wiki
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
= CD-zOS to SB2B-CD-SA  =
Details on https://www.ibm.com/docs/en/SS4PJT_6.2.0/pdf/cd_62_proclang_pdf.pdf


Copy a File from Connect:Direct for z/OS to a B2B Integrator Mailbox  
= CD-UNIX to Sterling B2B Mailbox =


COPYTOMB    PROCESS  SNODE=CDNODE01SA                              -
Copy a File from Connect:Direct for UNIX to a B2B Integrator Mailbox
                        SNODEID=(B2B_UserID,B2B_Password)            -
                        PNODE=CDZOS01
STEP1        COPY FROM (DSN=E.BA.SSO)                                -
                  TO  (FILE=/mailbox/B2B_UserID/Inbox                -
                        DISP=(NEW))


COPY2UX PROCESS
        SNODE=CDNODE01SA
        SNODEID=(B2B_UserID,B2B_Password)
        PNODE=CDUNIX01
STEP1  COPY
            FROM  (FILE=/mydir/myfile.txt)
            TO    (
                  FILE=/mailbox/B2B_UserID/Inbox/myfile.txt
                  DISP=NEW
                  )


= CD-UNIX to SB2B Mailbox =
= CD-UNIX to Sterling B2B Business Process =


Copy a File from Connect:Direct for UNIX to a B2B Integrator Mailbox
Copy a File from Connect:Direct for UNIX to a B2B Integrator Mailbox
Line 20: Line 25:
         PNODE=CDUNIX01
         PNODE=CDUNIX01
  STEP1  COPY
  STEP1  COPY
             FROM  (FILE=/orders/daily.txt)
             FROM  (FILE=/mydir/myfile.txt)
             TO    (
             TO    (
                   FILE=/mailbox/NYInbox/orders.dly
                   FILE=/businessprocess/'''yourBusinessProcess'''/myfile.txt
                   DISP=NEW
                   DISP=NEW
                   )
                   )
= CD-zOS to SB2B-CD-SA  =
Copy a File from Connect:Direct for z/OS to a B2B Integrator Mailbox
COPYTOMB    PROCESS  SNODE=CDNODE01SA                              -
                        SNODEID=(B2B_UserID,B2B_Password)            -
                        PNODE=CDZOS01
STEP1        COPY FROM (DSN=E.BA.SSO)                                -
                  TO  (FILE=/mailbox/B2B_UserID/Inbox                -
                        DISP=(NEW))


= Exemplo arquivo sample.cd =
= Exemplo arquivo sample.cd =

Latest revision as of 21:11, 21 March 2023

Details on https://www.ibm.com/docs/en/SS4PJT_6.2.0/pdf/cd_62_proclang_pdf.pdf

CD-UNIX to Sterling B2B Mailbox

Copy a File from Connect:Direct for UNIX to a B2B Integrator Mailbox

COPY2UX PROCESS
        SNODE=CDNODE01SA
        SNODEID=(B2B_UserID,B2B_Password)
        PNODE=CDUNIX01
STEP1   COPY
            FROM  (FILE=/mydir/myfile.txt)
            TO    (
                  FILE=/mailbox/B2B_UserID/Inbox/myfile.txt
                  DISP=NEW
                  )

CD-UNIX to Sterling B2B Business Process

Copy a File from Connect:Direct for UNIX to a B2B Integrator Mailbox

COPY2UX PROCESS
        SNODE=CDNODE01SA
        SNODEID=(B2B_UserID,B2B_Password)
        PNODE=CDUNIX01
STEP1   COPY
            FROM  (FILE=/mydir/myfile.txt)
            TO    (
                  FILE=/businessprocess/yourBusinessProcess/myfile.txt
                  DISP=NEW
                  )

CD-zOS to SB2B-CD-SA

Copy a File from Connect:Direct for z/OS to a B2B Integrator Mailbox

COPYTOMB     PROCESS   SNODE=CDNODE01SA                              -
                       SNODEID=(B2B_UserID,B2B_Password)             -
                       PNODE=CDZOS01
STEP1        COPY FROM (DSN=E.BA.SSO)                                -
                 TO   (FILE=/mailbox/B2B_UserID/Inbox                -
                       DISP=(NEW))


Exemplo arquivo sample.cd

/*
* This sample process ...
* 
*/

sample PROCESS SNODE=NODE1

step01 COPY
  FROM (
    FILE=/tmp/file1.txt
    PNODE
  )

  CKPT=2M
  COMPRESS extended

  TO (
    FILE=/tmp/file1.delete
    SNODE
    DISP=rpl
  )

PEND;

Onde:

  • CKPT: Checkpoint a cada NN e a medida K/M


Ver também