Sample JCL's to apply maintenance and published PTF's

book

Article ID: 40176

calendar_today

Updated On:

Products

CA RC/Migrator CA Endevor SCM Interface DB2 Administration CA RC Compare for DB2 for z/OS CA RC Extract for DB2 for z/OS CA RC/Query CA RC Secure for DB2 for z/OS CA RC Update for DB2 for z/OS CA Database Analyzer for DB2 for z/OS CA Fast Unload for DB2 for z/OS CA Fast Check for DB2 for z/OS CA Fast Index for DB2 for z/OS CA Fast Load for DB2 for z/OS CA Rapid Reorg for DB2 for z/OS

Issue/Introduction

Introduction:


For Release 19.0 we do not provide the PTF Bucket with all published PTF's since the GA Release was published. However after a scart0.zip file has been created
with all published PTF's, the maintenance can be easily applied with the following sample JCL's.  

Instructions:


In order to download all PTF's for CA DB2 Solutions Release 19.0 from CA Support Online and create a scart0.zip file with the PTF's to be applied you can do the following steps:

1) Select any one of the CA DB2 Products that you have a license, for example CA Detector, from the Published Solutions download page in the Download Center on support.ca.com
2) Click "Select All" to highlight all products
3) Enter a High PTF Number or confirmed since date to limit the PTF's to only those since the last download
4) Click "Go" to generate the list of PTF's.
5) On the 'Published Solutions Downloads' screen click "Add all to cart (per page)" - Note you may want to increase the results per page count in order to get fewer pages to select all from.
6) Click the 'View download cart' and then Checkout.

After 'Checkout' was selected and you answered YES to question 'Do you want a complete package for all?' to include all prerequisites you will receive an Order Number and you have to wait for the package to be created. When the package is created you will receive an e-mail with the FTP Directory where the package is located, now a scart0.zip file has been created with all selected PTF's and Prerequisites.
 
To transfer the created scart0.zip file to your z/OS system you can work with the following JCL, keep in mind the scart0.zip file might be very large so it is better to transfer it directly to a z/OS USS Directory. In the following FTP sample you have to update the z/OS USS Directory names to your own names.  

//*-------------------------------------------------------------------------**
//*                                                                                               **
//* * CAZIPCPY *                                                                          **
//*                                                                                               **
//* FUNCTION: SAMPLE JOB USED TO COPY A ZIP FILE CREATED BY **
//* CA SUPPORT ONLINE TO A USS DIRECTORY.                              **
//*                                                                                               **
//*-------------------------------------------------------------------------**
//* COPYRIGHT (C) 2013 CA. ALL RIGHTS RESERVED.                     **
//*-------------------------------------------------------------------------**
//*
//ZIPCOPY EXEC PGM=FTP,REGION=0K
//SYSTCPD DD DISP=SHR,DSN=VTAM.TCPIP.TCPIP.DATA
//SYSPRINT DD SYSOUT=*
//INPUT DD *
scftpd.ca.com
anonymous [email protected]
cd /ftp/orders/nnnnnn/nnnnnnnzip/ <-- (1)
bin
get scart0.zip /a/userid/mnt190/scart0.zip <--(2)
quit
/*
//

(1) The location on CA Support Online where the scart0.zip file is found
(2) The existing z/OS USS directory to where the download will be done

The z/OS USS directory has to be quite large as there might be a lot of files created after the scart0.zip file is unzipped.
 
To unzip the scart0.zip file you have to work with CAUNZIP utility, in the following sample JCL update the names with your own names.
 
//*-----------------------------------------------------------------------------**
//* * CAUNZIP *                                                                                **
//* FUNCTION: SAMPLE JOB USED TO EXECUTE THE CAUNZIP UTILITY. **
//* THIS UTILITY WILL UNZIP YOUR SCART0.ZIP FILE                          **
//* CREATED BY CA SUPPORT ONLINE AND CREATE A SMPNTS             **
//* INSTALLABLE PACKAGE.                                                               **
//*-----------------------------------------------------------------------------**
//OUTCLASS SET OUTCLASS='*'
//*
//CAUNZIP EXEC PGM=IKJEFT01,DYNAMNBR=10,REGION=0M
//ZIPRPT DD SYSOUT=&OUTCLASS,RECFM=FBA
//SYSTSPRT DD SYSOUT=&OUTCLASS
//SYSPRINT DD SYSOUT=&OUTCLASS
//STDOUT DD SYSOUT=&OUTCLASS
//STDERR DD SYSOUT=&OUTCLASS
//SYSTSIN DD *
CAUNZIP ZIPPATH(/a/userid/mnt190) -
ZIPFILE(scart0.zip) -
JAVAPATH(/usr/lpp/java/J8.0)
/*
//
 
Now files are ready for the SMP/E RECEIVE but first you have to download and RECEIVE the HOLDDATA data set from CA Support Online, you can work with same JCL's as you did when Release 19.0 base was installed.
 
To run the SMP/E RECEIVE you can run the following JCL.

//RECEIVE EXEC PGM=GIMSMP,PARM='PROCESS=WAIT',DYNAMNBR=120,REGION=0M
//SMPCSI DD DISP=SHR,DSN=TSDUMP.RAUJO02.R190Y.CSI
//SMPOUT DD SYSOUT=*
//SMPRPT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SMPJHOME DD PATHDISP=KEEP,
// PATH='/usr/lpp/java/J8.0/'
//SMPNTS DD PATHDISP=KEEP,
// PATH='/a/userid/mnt190/scart0/'
//SMPCNTL DD *
SET BOUNDARY(GLOBAL) .
RECEIVE FROMNTS(SMPNTS)
SYSMODS
HOLDDATA
DELETEPKG
.
/*

This sample JCL is generated in CAUNZIP Job output with the list of unzipped PTF's, review careful the CAUNZIP Job output to locate it and update it accordingly.

After the SMP/E RECEIVE has been run you can apply all the PTF just in one JCL. Do not forget to run first the APPLY CHECK.

//SMPCNTL DD *
SET BOUNDARY(CAIT0) .
APPLY PTFS
BYPASS(HOLDSYSTEM)
GROUPEXTEND
CHECK
.

When the APPLY CHECK has been run without problem then you can remove the CHECK clause and run the SMP/E APPLY.

The first time you download all PTF's since Release 19.0 was published you might get a large file with hundreds of PTF's. Review the ++HOLD statements for any actions you have to perform before or after the SMP/E APPLY, this is important to avoid further problems before or after the SMP/E APPLY has been run. Make sure the Post-Install task are run as they are reported in the ++HOLD statements. 

Environment

Release:
Component: INS