You are on page 1of 2

How to: Export CDC from *SYSBAS to an iASP

End replication on all active subscriptions using the CDC datastore you wish to migrate.
Disconnect from Management console
End CDC subsystem
Create a save file (savf) of your current CDC install library and save it in a separate Library
Delete the CDC install library you just saved elsewhere
SETASPGRP <iasp name>
Create a library on the iASP with the same name as the previous install of CDC
o CRTLIB LIB(<Previous CDC Library Name>) ASPDEV(<iASP name>)
Restore the savf to the library on the iASP
o RSTOBJ OBJ(*ALL) SAVLIB(<savlib>) DEV(*SAVF) SAVF(<savf Lib> / <savf name>)
RSTLIB((<Previous CDC Library Name>)) RSTASPDEV(<iASP name>)
Download the CDC installation binaries
Issue the following command to restore from the save file:
o RSTOBJ OBJ(DMCINSTALL) SAVLIB(V6R1M0) DEV(*SAVF)
SAVF(<library>/V6R1M0)RSTLIB(QTEMP)
where <library> is the save file library.
o After you have restored the installation program, issue the following command to run
the installation program:
?QTEMP/DMCINSTALL
o Press F4 to access the installation prompt screen.
o Specify CD ROM Device Name or Save File Information
o The Device/Save File Name screen appears.
Device Name The save file (*SAVF) that you are using to run the installation program.
Savefile Name
for Product
Library Name
V6R1M0
Library Name The name of the library where the save file is located. You must transfer the save file
to this library.
Savefile Name
for Tutorial
Name
V6R1M0TUT
Library Name The library name where the save file for the tutorial tables is located. You must
transfer the save file to this library. You can also enter *LIBL to specify the set of
libraries in your list. The installation program searches libraries in order of the first
occurrence of the specified library.


o Continue through each screen until you reach the installation library screen.
DTS/400 Product Library : <Library on iASP>
DTS/400 Tutorial Library : DTUTOR
DTS/400 IASP Device : <iASP Name>
o Choose Installation type W
The installer will now create a directory on your *SYSBAS with the same name as your iASP with
a 01 appended to the end of it. This library should contain
Object Type
D_MIRROR *JOBQ
D_MIRROR *CLS
DMIRROR *SBSD

WRKOBJPDM (Library on iASP)
o Position to type : *JOBD, press Enter.
o Select Opt 2 on COMMJOBD, DMCJOBD and DMTCPJOBD and hit enter
For each of these JOBDs :
F9 to show All Parameters
Alter the Job queue library and Initial library list so that they contain
the library name from *SYSBAS and not the iASP library name. (this
should be as simple as adding 01 to the name already entered unless
you changed the library name after the installation).
CHGCURLIB (<iASP library>)
o TSSETREG
o TS Product Library: <iASP library>
o TS Subsystem Name: DMIRROR
CHGCURLIB (<System Library Library>)
o STRSBS(dmirror)
CHGCURLIB (<iASP library>)
o STRDMTCP SERVICE (<service>) JOBD(<library>/DMCJOBD)
WRKACTJOB SBS(DMIRROR)
o Verify subsystem DMIRROR and TCPLISTEN are active
Done. At this point you should be able to connect to the subsystem in MC and the CDC installation has
been properly migrated to the iASP.

You might also like