When generating a RC/Migrator for Db2 for z/OS (RCM) migration strategy analysis that includes the DDL for a database, is it possible to save the DDL to a GDG dataset.
This can be accomplished in a few steps:
//DDLFILE DD DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(5,10),RLSE),
// DCB=(LRECL=080,BLKSIZE=26800,RECFM=FB),
// DSN=hlq.dbname.tsname(+1) <======== replace with GDG name
This is a sample of how the analysis looks like on screen:
RMS1 20.0 -------------- RC/M Strategy Services -------------- yy/mm/dd hh:mm
COMMAND ===> SCROLL ===> CSR
DB2 SSID ===> ssid
STRATEGY ===> stratnm CREATOR ===> authid1 TYPE ===> C SRC SSID ===> *
--------------------------------------------------------------------- authid1
T S SRC +---- LAST UPDATE ----+
O STRATEGY DESCRIPTION CREATOR P O SSID USER DATE TIME
_ ________ _________________________ authid1 _ N ____ <== STRATEGY CREATION
_ stratnm authid1 C U authid1 yy/mm/dd hh:mm
_ hlq.dbname.tsname.G0005V00(+1) authid1 yy/mm/dd hh:mm
_ ICL hlq.dbname.tsname.G0006V00(+1) authid1 yy/mm/dd hh:mm
******************************** BOTTOM OF DATA *******************************
The last line above shows that the same can be done when generating ICL.