How to create a copy of a CA Deliver database
search cancel

How to create a copy of a CA Deliver database

book

Article ID: 139739

calendar_today

Updated On:

Products

Deliver View

Issue/Introduction

Is there a utility that I can use to create a COPY of an existing CA Deliver database?

Environment

Release : 14.0

Component : CA Deliver

Resolution

To copy a CA Deliver database you can use the RMODBASE utilities COPY function, which will copy the entire database including the checkpoint file.


COPY Control Statement:

. The COPY control statement is used to copy a database. The output database must be a newly created, empty database.

. The COPY control statement can also be used to reorganize a database and reclaim blocks in the database that are allocated but not currently being utilized.


Create NEW database:

. Use RMODBASE ADDDS and MAKECKPT to create the target database.

. Note: Ensure that the BLKSIZE used to create the target database is the same BLKSIZE which was used for the source database.

. Use RMODBASE COPY to copy the source database to the target database:


Sample JCL:

//XXXXXXXX JOB ...

//RMODBASE EXEC PGM=RMODBASE

//STEPLIB DD DISP=SHR,DSN=DLVR.CVDELOAD <=== Modify, if used

//SYSPRINT DD SYSOUT=*

//SYSIN DD *

NAME dlvr_target

COPY dlvr_source HIST_OPT

/*

//


Additional notes:


- Where HIST_OPT (history options) can be:
  a. HISTDEL to delete the detail history subfile only
  b. HISTDELALL (Recommended) to delete the history subfile and all basic history records.
- Use RMODBASE MAKECKPT EMPTY, to clear out the target Checkpoint file.

Additional Information

CA Deliver 14.0 Documentation - Reference Guide - RMODBASE utility - COPY Control statement