Hello Lori,
The RMOGRW utility can create a file of the reports received by the
old DIST-ID. RMODBB will take the file of reports and add them to the
database with the new DIST-ID specified for these reports too.
Let's assume that one of the current active DIST-IDs is "ABC" and the
new DIST-ID will be "XYZ".
1. If the same set of reports currently going to DIST-ID "ABC" will
also go to the new DIST-ID "XYZ" , you can run an RMOGRW job to
list all the Report-IDs in a dataset.
2. Add the definition for the new DIST-ID to the same dataset.
This is a sample program and may need to be edited to achieve the
results that you want.
//RMOGRW EXEC PGM=RMOGRW
//STEPLIB DD DSN=.......CVDELOAD,DISP=SHR <= Modify
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//OUTFILE DD DSN=.....GRW.REPORT,DISP=SHR <= Modify
//SYSIN DD *
/CONTROL DATABASE=....HLQ of DATABASE..... <= Modify
/SELECT SUBSTR(DID,1,3) = 'ABC'
/OUTPUT JOB COL(1)
/OUTPUT RID COL(15)
/OUTPUT 'XYZ' COL(45)
/END
/*
//
RMOGRW will create a dataset that looks like this:
Note the columns that each field starts in.
BROWSE GRW.REPORT
Command ===>
-+1+2+3+4+5+--6-
JOBPR02 FFF602C XYZ
MOL3R5R RXXRPB0-01 XYZ
MOL3R5R RYYRPB0-01 XYZ
MOL3R5R R59RPB043I XYZ
NTICH1A TEST-REPORT XYZ
Then run RMODBB using the dataset that you created as input to
update and add the new DIST-ID to the database and add the
DIST-ID to the reports listed in the dataset.
This sample JCL will add the DIST-ID "XYZ" to the reports
listed in the ...GRW.REPORT dataset.
//RMODBB EXEC PGM=RMODBB,PARM='...HLQ of Database...'
//STEPLIB DD DSN=.......CVDELOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//DATA DD DSN=STICH01.GRW.REPORT,DISP=SHR
//SYSIN DD *
/DISTDEF DISTID=45 FUNCTION=68
/RPTDEF RID=15 DISTID=45 FUNCTION=68
The job will show what was added or modified:
/DISTDEF DISTID=45 FUNCTION=68
/RPTDEF RID=10 DISTID=45 FUNCTION=68
10/09/2014 15:13:35 CA Deliver Output Management
RMODBB Database Build Utility
/DISTDEF DISTID=45 FUNCTION=68
RMODBB14 Distribution identifier XYZ added/modified
RMODBB14 Distribution identifier XYZ added/modified
RMODBB14 Distribution identifier XYZ added/modified
RMODBB14 Distribution identifier XYZ added/modified
0RMODBB14 Distribution identifier XYZ added/modified
/RPTDEF RID=10 DISTID=45 FUNCTION=68
RMODBB13 Report FJ7602C modified - data record 1
RMODBB13 Report R59RPB043P modified - data record 2
RMODBB13 Report R40RPB043P modified - data record 3
RMODBB13 Report R59RPB043I modified - data record 4
RMODBB13 Report TEST-REPORT modified - data record 5
If you have bundles defined for these reports, you will have
to create another RMOGRW program to list the bundles that have
the DIST-ID "ABC" defined to them. Then use RMODBB to add the
new DIST-ID to the correct bundles.
For more information see the Chapter on Utilities in the
CA Deliver Reference Guide under RMODBB and RMOGRW.
Regards,
Cheryl