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                                                -
              &VSEDSN=USER01.TEST.MSAMFIL1
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))                                 -
                        PNODE
         ELSE
                    RUN TASK (PGM=DMNOTIFY,                                    -
                        PARM=(’FAIL’,&VSEDSN))                                 -
                        PNODE
         EIF

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