Previous Topic: How to UseNext Topic: Example JCL


Examples

Example 1:

Build a test copy of production full CXX setting tables as not loaded and removing all data set names.

  1. Using the production CXX DD statement:
    BACKUP AREA=CXX,DDNAME=x
    
  2. Using the new test CXX DD statement:
    INIT AREA=CXX,DDNAME=x,DATACOM=x,CXXNAME=TEST
    CXXCLONE DDNAME=x,STATUS=NOT_LOADED,OPTION=DELETE
    

Example 2:

Build a full copy of production including CXX and all other data sets.

  1. Using the Production CXX DD statement:
    BACKUP AREA=CXX,DDNAME=x
    
  2. Using the new test CXX DD statement:
    INIT AREA=CXX,DDNAME=x,DATACOM=x,CXXNAME=TEST2
    CXXCLONE 
    DDNAME=x,STATUS=NO_CHANGE,OPTION=ALTER,OPTION2=PROD*TEST2
    
  3. Use IEBGENER to copy all data sets not the CXX to copies where the data set name in production of PROD is replaced by TEST2.

    The report provides a list of bases that were processed, such as:

    CXXCLONE DDNAME=X,DBID=497-697,DBID=797,STATUS=NO_CHANGE,OPTION=DELETE
    BASE PROCESSED - 497                                     
    BASE PROCESSED - 597                                     
    BASE PROCESSED - 697                                     
    BASE PROCESSED - 797                                     
    REQUEST COMPLETE
    

In addition to CXXCLONE, the BASE PROCESSED information has been added to the following functions:

Note: The ability to use CXXCLONE or LOAD AREA=CXX with multiple occurrences of DBID= (including the use of ranges) are expected to be rare requirements, and the input file is processed from the start to the DBID= value for every candidate database. For example, whether the databases exist in the range or not, DBID=51-100 is processed by the input file 50 times.

If a NEWDBID= keyword is used in an execution of the CXXCLONE function, the additional information is also printed as shown in the following example report line:

BASE PROCESSED - 6     NEW DBID - 4,007