Copy a Controlled BSAM Data Set to a MSAM Output Data Set (VSE)

This Process copies from a CA-DYNAM/D or CA-EPIC controlled BSAM data set into a MSAM (VSAM Managed SAM) output data set. The disk data set has already been defined to the appropriate system catalog (the default ESDS model).

When you reference BSAM libraries in a IBM® Connect:Direct® Process, you must specify: DSORG, DSN, UNIT, and VOL=SER= parameters.

You can ignore the IBM Connect:Direct information message: SVSG501I VSAM OPEN ERROR=’A0’. ASSUMING ESDS. RETRYING OPEN.

DYD2MSM1 PROC PNODE=SC.VSE.NODE                                                -
              SNODE=SC.VSE.NODE                                                -
STEP0001 COPY  FROM ( PNODE                                                    -
                    DSN=USER01.TEST.GDGCOPY1                                   -
                    DISP=(SHR)                                                 -
                    UNIT=DLBLONLY                                              -
                    DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=16000)             -
                    )                                                          -
               TO   ( SNODE                                                    -
                    DSN=&VSEDSN                                                -
                    DISP=RPL                                                   -
                    UNIT=DISK                                                  -
                    VOL=SER=USER06                                             -
                    SPACE=(80,(500,300))                                       -
                    VSAMCAT=(VSE.COMMON.CATALOG,X,X,,123)                      -
                    DCB=(DSORG=MSAM,RECFM=FB,LRECL=80,BLKSIZE=16000)           -
STEP0002 IF    (STEP0001 EQ 0) THEN
                    RUN TASK (PGM=DMNOTIFY,                                    -
                        PARM=(’GOOD’,&VSEDSN))                                 -
                    RUN TASK (PGM=DMNOTIFY,                                    -
                        PARM=(’FAIL’,&VSEDSN))                                 -

This Process runs on the same IBM Connect:Direct node using PNODE=SNODE processing. This Process uses symbolic values.