IAMDRCC examples


The following are the examples of the Dynamic Reorganization program IAMDRCC. As described the IAMDRCC-Control-statements, the IAMDRCC program facilitates the reorganization of an IAM file that is opened for update under a CICS region IAMSRORG functions. The actual example JCL is contained in the .IAMSAMP data set that is distributed as part of the IAM product. The examples are found in the member name that matches the corresponding example identifier. For example, the first example which is called EX4304A will be in member EX4304A of the JCL library. This is example JCL only, and must change as necessary for the system that you are using the example JCL on.

Example EX4304A

The job below performs the following functions:

  1. Establish an EXCI connection to the CICS region CICSBPRD to facilitate a dynamic reorganization while the data set is open.
  2. The data set to be reorganized is IAMCICSV.IAQA.LOCAL.IVTK1 which is dynamically allocated by IAMDRCC.
  3. A reorganized copy of the IAMCICSV.IAQA.LOCAL.IVTK1 data set will be created into the data set IAMCICSV.IAQA.LOCAL.IVTK1X. If necessary that data set will be defined using the attributes of the original data set.
  4. When the copy has completed, then the original data set IAMCICSV.IAQA.LOCAL.IVTK1 will be closed to CICS, and the following functions performed:
    • Records that were updated while the copy process was being performed will be updated in the new reorganized data set
      IAMCICSV.IAQA.LOCAL.IVTK1X.
    • The original data set IAMCICSV.IAQA.LOCAL.IVTK1 will be renamed to IAMCICSV.IAQA.LOCAL.IVTK1.Dddmmyy to serve as a backup data set.
    • The reorganized copy of that data set will then be renamed to
      IAMCICSV.IAQA.LOCAL.IVTK1.
    • The data set IAMCICSV.IAQA.LOCAL.IVTK1 will then be reopened under CICS.

Example EX4304A of Dynamic Reorganization

//DYNREORG EXEC PGM=IAMDRCC,PARM='SUBTASKS=1'
//STEPLIB  DD  DISP=SHR,DSN=<CICSHLQ>.SDFHEXCI <-- CICS STEPLIB
//         DD  DISP=SHR,DSN=IAM.LOADLIB         <--- IAM LOADLIB
//SYSPRINT DD  SYSOUT=*
//SYSOUT   DD  SYSOUT=*
//DRSUMM   DD  SYSOUT=*
//SYSIN    DD  *
        REORG FROM=IAMCICSV.IAQA.LOCAL.IVTK1,
  TO=IAMCICSV.IAQA.LOCAL.IVTK1X,
  CICS=CICSBPRD,
  SAVESFX=DDMMYY
/*

The original data set is specified by the FROM keyword, the data set to contain the reorganized copy is specified by the TO keyword. Based on the SAVESFX value of DDMMYY, the original data set will be renamed to IAMCICSV.IAQA.LOCAL.IVTK1.Dddmmyy. All functions are automatically performed without any operator or user interaction.

Example output

Shown on the following page is an example of the printed output produced by IAMDRCC for the reorganization of an IAM KSDS data set. The format is similar to a log type listing where there is a data and time stamp in the left side, generally followed by the name of the program that is producing the message. With this format it is easy to follow through on the flow of the reorganization process.


    1. The output starts with an echo of the provided REORG statement. This is followed by a box th a summary of the name of the data set to be reorganized, followed by the name of the new reorganized copy, and the name of the CICS region.
    2. The next set of messages regard the establishment of communication with the specified CICS region. The process will verify that the CICS region does have the specified IAM file open, that the IAM file has data in the extended areas of the file so a reorganization will be useful, and notification of what data sets will need to be closed to complete the reorganization. As shown in this example, it is just the target data set. For data sets with an alternate index, there will be multiple data sets as shown in the subsequent example. We also see confirmation that the tracking of changes has been activated.
    3. This section shows the messages from the IAMSRORG program that is used to create the reorganized copy of the input data set. If the output data set did not previously exist, there will also be the output from IDCAMS for the DEFINE Cluster to define and allocate the output data set. The messages include the counts of records read from the input file and written to the output file.
    4. Upon completion of creating the reorganized copy of the input data set. the next step is to perform the Phase 1 updates. The process essentially does a syncpoint on the tracking table to indicate what will be the starting point for the Phase 2 updates. It then proceeds with updating the reorganized copy with all of the inserts, updates, and deletes that were done during the actual copy process. The original data set remains open for full update use during the Phase 1 updating of the new reorganized copy.
    5. The next section starts at the completion of the Phase 1 update process. It is now time for the data set to be closed to CICS. Presuming that the automatic close process is used, we see messages indicating that process. This marks the time at which the data set is unavailable to CICS. The time stamp from the message indicating issuing the request to close the data set can be used to mark the starting time of the data set not being available. In this case that time stamp was 16:29:18:9402. Once IAMDRCC receives confirmation from CICS that the data set is closed, it will now perform the Phase 2 updates to the new file, which are all the updates that were done since the beginning of Phase 1 shown in the prior step. Phase 2 performs the various updates, and completes with a summary of the updates that were performed by Phase 2.
    6. Upon completion of Phase 2 updates, IAMDRCC is now ready to do the renames to swap the new data set to the original data set name and resume processing. The messages show the data set renames being done via IDCAMS ALTER commands. With successful completion of the renames, IAMDRCC now will request to CICS to reopen the IAM data set. A key message here is the completion message of the request to open the data set indicating that the request was successful. The time stamp on this message can be used to mark the time of data set availability which in this case was 16:29:21:4931. The data set in this case was unavailable for 2.5529 seconds. IAMDRCC then notifies CICS that the process is complete so it can terminate and then IAMDRCC disconnects from CICS.

Sample of Dynamic Reorg Output

Example EX4304B

This is an example of using IAMDRCC to perform multiple concurrent reorganizations. In this example notice in the JCL example below that the EXEC card has the parameter of PARM=’SUBTASKS=3’ which specifies that IAMDRCC will use three concurrently executing subtasks to perform three independent IAM data set reorganizations. In the SYSIN control cards are three REORG for different data sets that will be reorganized by the three subtasks. Rather than intermixing the output, each subtask keeps in virtual storage all of the messages that relate to the reorg it is performing. When the reorg process completes, it will then write all of the associated messages to the SYSPRIINT card with the full details of the processing. The SYSPRINT example above shows what is produced by one subtask, each additional task that performs a REORG will produce a similar report. A shorter printed output of each REORG that was processed is written out to the DRSUMM DD card if it is provided.

Notice that the SYSIN statements include the BEGIN statement as the first statement and the END statement as the last statement. These statements request the Enabling of and Disabling of the High Activity Toleration (HAT) CICS GLUE Exits to ensure that all CICS Reads and Writes complete successfully across the necessary short duration auto file close, rename, and open.

As each subtask completes a REORG, if will pick up the next REORG if there are any to be processed. Upon completion of all of the REORG statements, IAMDRCC processing is terminated.

EX4304B JCL

The following example is a sample EX4304B JCL:

//DRSTEP   EXEC PGM=IAMDRCC,PARM='SUBTASKS=3'
//STEPLIB  DD  DISP=SHR,DSN=<&IAMHLQ>.LOAD
//         DD  DISP=SHR,DSN=<&CICSHLQ>.SDFHEXCI
//SYSPRINT DD  SYSOUT=*
//SYSOUT   DD  SYSOUT=*
//DRSUMM   DD  SYSOUT=*
//SYSIN    DD  *
BEGIN CICS=CICSIAQA                
REORG FROMDSN=CPPRAC.IVTK1,        
 TODSN=CPPRAC.IVTK1V5,             
 SAVESFX=DDMMYY                    
REORG FROMDSN=CPPRAC.IVTK2,        
 TODSN=CPPRAC.IVTK2K,              
 SAVESFX=DDMMYY                    
REORG FROMDSN=CPPRAC.IVTK3,        
 TODSN=CPPRAC.IVTK3K,              
 SAVESFX=DDMMYY                    
END CICS=CICSIAQA                  
/*

EX4304B DRCMD example listing

The following examples is the summary output for the three reorganizations. It contains the relevant control card statement, identification of the data sets involved in the REORG process, and return code from the REORG process. The complete processing information is on SYSPRINT, and can be found by using the link provided below.

EX4304B example of DRCMD output

1
 02/13/2023 05:18:41:0469  IAMDRCCS REMOVING DSN FROM DYNALLOC TABLE:    CPPRAC.IVTK1
 02/13/2023 05:18:41:0651  IAMDRCCS **********************************************************************
 02/13/2023 05:18:41:0651  IAMDRCCS *                                                                    *
 02/13/2023 05:18:41:0651  IAMDRCCS *                      -- IAM DYNAMIC REORG --                       *
 02/13/2023 05:18:41:0652  IAMDRCCS *                                                                    *
 02/13/2023 05:18:41:0652  IAMDRCCS *  INPUT DSN:        CPPRAC.IVTK1                                    *
 02/13/2023 05:18:41:0652  IAMDRCCS *  OUTPUT DSN:       CPPRAC.IVTK1V5                                  *
 02/13/2023 05:18:41:0652  IAMDRCCS *  RENAME REQUESTED: CPPRAC.IVTK1.D130223                            *
 02/13/2023 05:18:41:0652  IAMDRCCS *  CICS REGION:      CICSIAQA                                        *
 02/13/2023 05:18:41:0652  IAMDRCCS *                                                                    *
 02/13/2023 05:18:41:0652  IAMDRCCS **********************************************************************
 02/13/2023 05:18:41:0653  IAMDRCCS SPECIFIED TO= DSN WILL BE DYNAMICALLY ALLOCATED
 02/13/2023 05:18:41:0653  IAMDRCCS ISSUING START REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:41:1549  CICSIAQA   RECEIVED IAM DYNAMIC REORG START COMMAND                                      IDRS/21883
 02/13/2023 05:18:41:1601  CICSIAQA   CICS REGION: CICSIAQA(STC07286)
 02/13/2023 05:18:41:1601  CICSIAQA   FILE IS AN IAM CLUSTER
 02/13/2023 05:18:41:1671  CICSIAQA   START COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:41:1682  IAMDRCCS DATASETS THAT WILL BE REQUIRED TO BE CLOSED TO COMPLETE THE DYNAMIC REORG REQUEST
 02/13/2023 05:18:41:1682  IAMDRCCS   DD=IVTK1    DSN=CPPRAC.IVTK1
 02/13/2023 05:18:41:1683  IAMDRCCS ISSUING JOURNAL INIT REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:41:1747  CICSIAQA   RECEIVED DYNAMIC REORG JOURNAL INIT COMMAND                                   IDRS/21913     
 02/13/2023 05:18:41:1747  CICSIAQA   CONNECTING TO SHARED 64-BIT STORAGE
 02/13/2023 05:18:41:1749  CICSIAQA   INITIALIZING PHASE 1 JOURNAL PROCESSING
 02/13/2023 05:18:41:1750  CICSIAQA   JOURNAL INIT COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:41:1756  IAMDRCCS LINK TO DYNAMIC REORG COPY/MERGE PROCESS
 02/13/2023 05:18:41.1834  IAMSRORG PARAM DATA - *DYR I=SYS00001,OUTDSN=CPPRAC.IVTK1V5                                            *
 02/13/2023 05:18:41.1834  IAMSRORG DYNAMIC REORG    FUNCTION STARTED - 05.18.41
 02/13/2023 05:18:41.2287  IAMSRORG INPUT   : DD=SYS00001 DSN=CPPRAC.IVTK1
 02/13/2023 05:18:41.2336  IAMSRORG IDCAMS  : INVOKING IDCAMS TO DEFINE OUTDSN: CPPRAC.IVTK1V5
                            DEFINE  CL(NAME(CPPRAC.IVTK1V5)                                     -
                                      CISZ(4096) RECSZ(200,200) IXD KEYS(41,8) FSPC(1,0)        -
                                      SHR(2,3) OWNER($IAM) CYL(567,1)                           -
                                      VOL(IDPLBD)                                               -
                                      STORCLAS(PRIDATA )                                        -
                                      EATTR(OPT)                                                )
                           IDC0508I DATA ALLOCATION STATUS FOR VOLUME IDPLC1 IS 0
                           IDC0181I STORAGECLASS USED IS PRIDATA
                           IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
                           IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
 02/13/2023 05:18:41.3455  IAMSRORG ALLOCATED DD=SYS00002 DISP=OLD DSN=CPPRAC.IVTK1V5                                OUTPUT
 02/13/2023 05:18:43.8610  IAMSRORG SYS00001: OVERFLOW RECORDS READ:              2 PRIME RECORDS READ:        1511994
 02/13/2023 05:18:43.8611  IAMSRORG SYS00001: TOTAL    RECORDS READ:        1511996
 02/13/2023 05:18:43.8612  IAMSRORG SYS00002: TOTAL RECORDS WRITTEN:        1511996
 02/13/2023 05:18:43.8642  IAMSRORG DEALLOC : DD=SYS00002 DSN=CPPRAC.IVTK1V5
 02/13/2023 05:18:43.8642  IAMSRORG DYNAMIC REORG    FUNCTION ENDED   - 05.18.43 - CONDITION CODE 000
 02/13/2023 05:18:43:8774  IAMDRCCS ISSUING JOURNAL PHASE 2 INIT TO CICS REGION CICSIAQA
 02/13/2023 05:18:43:8811  CICSIAQA   RECEIVED DYNAMIC REORG PHASE 2 JOURNAL PREP COMMAND                           IDRS/24158     
 02/13/2023 05:18:43:8811  CICSIAQA   PHASE 2 JOURNAL PREP COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:43:8816  IAMDRCCS LINK TO DYNAMIC REORG PHASE 1 UPDATE PROCESSOR
 02/13/2023 05:18:43:8816  IAMDRCCS ISSUING PHASE 1 UDPATE REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:43:8840  CICSIAQA   RECEIVED DYNAMIC REORG UPDATE PHASE 1 COMMAND                                 IDRS/24164     
 02/13/2023 05:18:44:9715  CICSIAQA   RECS ADDED:00000329  RECS UPDATED:00000249  RECS DELETED:00000019
 02/13/2023 05:18:45:0625  CICSIAQA   UPDATE PHASE 1 COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:45:0634  IAMDRCCS ADDING DSN TO DYNALLOC TABLE:    CPPRAC.IVTK1
 02/13/2023 05:18:45:0634  IAMDRCCS ISSUING REQUEST TO CLOSE ORIGINAL IAM FILE IN IAM CICS REGION CICSIAQA
 02/13/2023 05:18:45:0676  CICSIAQA   RECEIVED DYNAMIC REORG AUTOCLOSE COMMAND                                      IDRS/25355     
 02/13/2023 05:18:45:0676  CICSIAQA   THE FOLLOWING DATASETS WERE AUTOMATICALLY CLOSED:
 02/13/2023 05:18:45:3783  CICSIAQA     DD=IVTK1    DSN=CPPRAC.IVTK1
 02/13/2023 05:18:45:3783  CICSIAQA   AUTOCLOSE COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:45:3862  IAMDRCCS LINK TO DYNAMIC REORG PHASE 2 UPDATE PROCESSOR
 02/13/2023 05:18:45:3862  IAMDRUP2   UPDATE PHASE 2 STARTS                                                                        
 02/13/2023 05:18:45:4680  IAMDRUP2   RECS ADDED:     111 RECS UPDATED:     101 RECS DELETED:      44
 02/13/2023 05:18:45:4997  IAMDRUP2   PHASE 2 UPDATE EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:45:5023  IAMDRCCS PERFORMING AUTO RENAME OF ORIGINAL AND NEW IAM FILES

                                        ALTER CPPRAC.IVTK1                                    +
                                        NEWNAME(CPPRAC.IVTK1.D130223)
                                       IDC0531I ENTRY CPPRAC.IVTK1 ALTERED
                                       IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0



                                       IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0

                                        ALTER CPPRAC.IVTK1V5                                  +
                                        NEWNAME(CPPRAC.IVTK1)
                                       IDC0531I ENTRY CPPRAC.IVTK1V5 ALTERED
                                       IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0



                                       IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
 02/13/2023 05:18:47:6201  IAMDRCCS REMOVING DSN FROM DYNALLOC TABLE:    CPPRAC.IVTK1
 02/13/2023 05:18:47:6219  IAMDRCCS ISSUING REQUEST TO REOPEN IAM FILES IN CICS REGION CICSIAQA
 02/13/2023 05:18:47:6230  CICSIAQA   RECEIVED DYNAMIC REORG AUTOOPEN COMMAND                                       IDRS/25625     
 02/13/2023 05:18:47:7208  CICSIAQA   DDNAME=IVTK1    HAS BEEN REOPENED
 02/13/2023 05:18:47:7208  CICSIAQA   AUTOOPEN COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:47:7214  IAMDRCCS ISSUING REORG COMPLETE STATUS TO CICS REGION CICSIAQA
 02/13/2023 05:18:47:7221  CICSIAQA   RECEIVED DYNAMIC REORG COMPLETE DSN=CPPRAC.IVTK1                              IDRS/25626
 02/13/2023 05:18:47:7221  CICSIAQA   DETACHING FROM SHARED 64-BIT STORAGE
 02/13/2023 05:18:48:7237  CICSIAQA   COMPLETE COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:48:7243  IAMDRCCS SUBTASK DETACHING FROM 64-BIT SHARED STORAGE
 02/13/2023 05:18:48:7244  IAMDRCCS IAM DYNAMIC REORG SUBTASK ENDS.  HIGHEST RC=00000000
 02/13/2023 05:18:48:7244  IAMDRCCS
 02/13/2023 05:18:48:7244  IAMDRCCS

1
 02/13/2023 05:18:48:7542  IAMDRCCS REMOVING DSN FROM DYNALLOC TABLE:    CPPRAC.IVTK2
 02/13/2023 05:18:48:7738  IAMDRCCS **********************************************************************
 02/13/2023 05:18:48:7739  IAMDRCCS *                                                                    *
 02/13/2023 05:18:48:7739  IAMDRCCS *                      -- IAM DYNAMIC REORG --                       *
 02/13/2023 05:18:48:7739  IAMDRCCS *                                                                    *
 02/13/2023 05:18:48:7739  IAMDRCCS *  INPUT DSN:        CPPRAC.IVTK2                                    *
 02/13/2023 05:18:48:7739  IAMDRCCS *  OUTPUT DSN:       CPPRAC.IVTK2K                                   *
 02/13/2023 05:18:48:7739  IAMDRCCS *  RENAME REQUESTED: CPPRAC.IVTK2.D130223                            *
 02/13/2023 05:18:48:7740  IAMDRCCS *  CICS REGION:      CICSIAQA                                        *
 02/13/2023 05:18:48:7740  IAMDRCCS *                                                                    *
 02/13/2023 05:18:48:7740  IAMDRCCS **********************************************************************
 02/13/2023 05:18:48:7740  IAMDRCCS ISSUING START REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:48:7771  CICSIAQA   RECEIVED IAM DYNAMIC REORG START COMMAND                                      IDRS/26848
 02/13/2023 05:18:48:7825  CICSIAQA   CICS REGION: CICSIAQA(STC07286)
 02/13/2023 05:18:48:7825  CICSIAQA   FILE IS AN IAM CLUSTER
 02/13/2023 05:18:48:7828  CICSIAQA   START COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:48:7832  IAMDRCCS DATASETS THAT WILL BE REQUIRED TO BE CLOSED TO COMPLETE THE DYNAMIC REORG REQUEST
 02/13/2023 05:18:48:7833  IAMDRCCS   DD=IVTK2    DSN=CPPRAC.IVTK2
 02/13/2023 05:18:48:7833  IAMDRCCS ISSUING JOURNAL INIT REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:48:7976  CICSIAQA   RECEIVED DYNAMIC REORG JOURNAL INIT COMMAND                                   IDRS/26867     
 02/13/2023 05:18:48:7976  CICSIAQA   CONNECTING TO SHARED 64-BIT STORAGE
 02/13/2023 05:18:48:7978  CICSIAQA   INITIALIZING PHASE 1 JOURNAL PROCESSING
 02/13/2023 05:18:48:7978  CICSIAQA   JOURNAL INIT COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:48:7983  IAMDRCCS LINK TO DYNAMIC REORG COPY/MERGE PROCESS
 02/13/2023 05:18:48.8060  IAMSRORG PARAM DATA - *DYR I=SYS00006,O=SYS00007                                                       *
 02/13/2023 05:18:48.8061  IAMSRORG DYNAMIC REORG    FUNCTION STARTED - 05.18.48
 02/13/2023 05:18:48.8350  IAMSRORG INPUT   : DD=SYS00006 DSN=CPPRAC.IVTK2
 02/13/2023 05:18:48.8486  IAMSRORG OUTPUT  : DD=SYS00007 DSN=CPPRAC.IVTK2K
 02/13/2023 05:18:50.7337  IAMSRORG SYS00006: OVERFLOW RECORDS READ:             50 PRIME RECORDS READ:         812633
 02/13/2023 05:18:50.7337  IAMSRORG SYS00006: TOTAL    RECORDS READ:         812683
 02/13/2023 05:18:50.7337  IAMSRORG SYS00007: TOTAL RECORDS WRITTEN:         812683
 02/13/2023 05:18:50.7339  IAMSRORG DYNAMIC REORG    FUNCTION ENDED   - 05.18.50 - CONDITION CODE 000
 02/13/2023 05:18:50:7345  IAMDRCCS ISSUING JOURNAL PHASE 2 INIT TO CICS REGION CICSIAQA
 02/13/2023 05:18:50:7410  CICSIAQA   RECEIVED DYNAMIC REORG PHASE 2 JOURNAL PREP COMMAND                           IDRS/29044     
 02/13/2023 05:18:50:7410  CICSIAQA   PHASE 2 JOURNAL PREP COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:50:7415  IAMDRCCS LINK TO DYNAMIC REORG PHASE 1 UPDATE PROCESSOR
 02/13/2023 05:18:50:7415  IAMDRCCS ISSUING PHASE 1 UDPATE REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:50:7635  CICSIAQA   RECEIVED DYNAMIC REORG UPDATE PHASE 1 COMMAND                                 IDRS/29070     
 02/13/2023 05:18:51:5859  CICSIAQA   RECS ADDED:00000195  RECS UPDATED:00000274  RECS DELETED:00000036
 02/13/2023 05:18:51:6694  CICSIAQA   UPDATE PHASE 1 COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:51:6699  IAMDRCCS ADDING DSN TO DYNALLOC TABLE:    CPPRAC.IVTK2
 02/13/2023 05:18:51:6700  IAMDRCCS ISSUING REQUEST TO CLOSE ORIGINAL IAM FILE IN IAM CICS REGION CICSIAQA
 02/13/2023 05:18:51:6713  CICSIAQA   RECEIVED DYNAMIC REORG AUTOCLOSE COMMAND                                      IDRS/29979     
 02/13/2023 05:18:51:6713  CICSIAQA   THE FOLLOWING DATASETS WERE AUTOMATICALLY CLOSED:
 02/13/2023 05:18:52:2415  CICSIAQA     DD=IVTK2    DSN=CPPRAC.IVTK2
 02/13/2023 05:18:52:2415  CICSIAQA   AUTOCLOSE COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:52:2480  IAMDRCCS LINK TO DYNAMIC REORG PHASE 2 UPDATE PROCESSOR
 02/13/2023 05:18:52:2480  IAMDRUP2   UPDATE PHASE 2 STARTS                                                                        
 02/13/2023 05:18:52:3422  IAMDRUP2   RECS ADDED:     138 RECS UPDATED:     170 RECS DELETED:       2
 02/13/2023 05:18:52:3760  IAMDRUP2   PHASE 2 UPDATE EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:52:3776  IAMDRCCS PERFORMING AUTO RENAME OF ORIGINAL AND NEW IAM FILES

                                        ALTER CPPRAC.IVTK2                                    +
                                        NEWNAME(CPPRAC.IVTK2.D130223)
                                       IDC0531I ENTRY CPPRAC.IVTK2 ALTERED
                                       IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0



                                       IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0

                                        ALTER CPPRAC.IVTK2K                                   +
                                        NEWNAME(CPPRAC.IVTK2)
                                       IDC0531I ENTRY CPPRAC.IVTK2K ALTERED
                                       IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0



                                       IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
 02/13/2023 05:18:54:4741  IAMDRCCS REMOVING DSN FROM DYNALLOC TABLE:    CPPRAC.IVTK2
 02/13/2023 05:18:54:4757  IAMDRCCS ISSUING REQUEST TO REOPEN IAM FILES IN CICS REGION CICSIAQA
 02/13/2023 05:18:54:4765  CICSIAQA   RECEIVED DYNAMIC REORG AUTOOPEN COMMAND                                       IDRS/30759     
 02/13/2023 05:18:54:5732  CICSIAQA   DDNAME=IVTK2    HAS BEEN REOPENED
 02/13/2023 05:18:54:5732  CICSIAQA   AUTOOPEN COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:54:5744  IAMDRCCS ISSUING REORG COMPLETE STATUS TO CICS REGION CICSIAQA
 02/13/2023 05:18:54:5753  CICSIAQA   RECEIVED DYNAMIC REORG COMPLETE DSN=CPPRAC.IVTK2                              IDRS/30760
 02/13/2023 05:18:54:5753  CICSIAQA   DETACHING FROM SHARED 64-BIT STORAGE
 02/13/2023 05:18:55:5797  CICSIAQA   COMPLETE COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:55:5806  IAMDRCCS SUBTASK DETACHING FROM 64-BIT SHARED STORAGE
 02/13/2023 05:18:55:5807  IAMDRCCS IAM DYNAMIC REORG SUBTASK ENDS.  HIGHEST RC=00000000
 02/13/2023 05:18:55:5807  IAMDRCCS
 02/13/2023 05:18:55:5807  IAMDRCCS

1
 02/13/2023 05:18:55:6059  IAMDRCCS REMOVING DSN FROM DYNALLOC TABLE:    CPPRAC.IVTK3
 02/13/2023 05:18:55:6217  IAMDRCCS **********************************************************************
 02/13/2023 05:18:55:6217  IAMDRCCS *                                                                    *
 02/13/2023 05:18:55:6217  IAMDRCCS *                      -- IAM DYNAMIC REORG --                       *
 02/13/2023 05:18:55:6217  IAMDRCCS *                                                                    *
 02/13/2023 05:18:55:6217  IAMDRCCS *  INPUT DSN:        CPPRAC.IVTK3                                    *
 02/13/2023 05:18:55:6217  IAMDRCCS *  OUTPUT DSN:       CPPRAC.IVTK3K                                   *
 02/13/2023 05:18:55:6218  IAMDRCCS *  RENAME REQUESTED: CPPRAC.IVTK3.D130223                            *
 02/13/2023 05:18:55:6218  IAMDRCCS *  CICS REGION:      CICSIAQA                                        *
 02/13/2023 05:18:55:6218  IAMDRCCS *                                                                    *
 02/13/2023 05:18:55:6218  IAMDRCCS **********************************************************************
 02/13/2023 05:18:55:6218  IAMDRCCS ISSUING START REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:55:6370  CICSIAQA   RECEIVED IAM DYNAMIC REORG START COMMAND                                      IDRS/31842
 02/13/2023 05:18:55:6421  CICSIAQA   CICS REGION: CICSIAQA(STC07286)
 02/13/2023 05:18:55:6421  CICSIAQA   FILE IS AN IAM CLUSTER
 02/13/2023 05:18:55:6424  CICSIAQA   START COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:55:6429  IAMDRCCS DATASETS THAT WILL BE REQUIRED TO BE CLOSED TO COMPLETE THE DYNAMIC REORG REQUEST
 02/13/2023 05:18:55:6429  IAMDRCCS   DD=IVTK3    DSN=CPPRAC.IVTK3
 02/13/2023 05:18:55:6430  IAMDRCCS ISSUING JOURNAL INIT REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:55:6911  CICSIAQA   RECEIVED DYNAMIC REORG JOURNAL INIT COMMAND                                   IDRS/31902     
 02/13/2023 05:18:55:6911  CICSIAQA   CONNECTING TO SHARED 64-BIT STORAGE
 02/13/2023 05:18:55:6913  CICSIAQA   INITIALIZING PHASE 1 JOURNAL PROCESSING
 02/13/2023 05:18:55:6913  CICSIAQA   JOURNAL INIT COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:55:6917  IAMDRCCS LINK TO DYNAMIC REORG COPY/MERGE PROCESS
 02/13/2023 05:18:55.7005  IAMSRORG PARAM DATA - *DYR I=SYS00010,O=SYS00011                                                       *
 02/13/2023 05:18:55.7006  IAMSRORG DYNAMIC REORG    FUNCTION STARTED - 05.18.55
 02/13/2023 05:18:55.7321  IAMSRORG INPUT   : DD=SYS00010 DSN=CPPRAC.IVTK3
 02/13/2023 05:18:55.7478  IAMSRORG OUTPUT  : DD=SYS00011 DSN=CPPRAC.IVTK3K
 02/13/2023 05:18:57.2320  IAMSRORG SYS00010: OVERFLOW RECORDS READ:              4 PRIME RECORDS READ:         914472
 02/13/2023 05:18:57.2320  IAMSRORG SYS00010: TOTAL    RECORDS READ:         914476
 02/13/2023 05:18:57.2320  IAMSRORG SYS00011: TOTAL RECORDS WRITTEN:         914476
 02/13/2023 05:18:57.2320  IAMSRORG DYNAMIC REORG    FUNCTION ENDED   - 05.18.57 - CONDITION CODE 000
 02/13/2023 05:18:57:2327  IAMDRCCS ISSUING JOURNAL PHASE 2 INIT TO CICS REGION CICSIAQA
 02/13/2023 05:18:57:2348  CICSIAQA   RECEIVED DYNAMIC REORG PHASE 2 JOURNAL PREP COMMAND                           IDRS/33744     
 02/13/2023 05:18:57:2349  CICSIAQA   PHASE 2 JOURNAL PREP COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:57:2359  IAMDRCCS LINK TO DYNAMIC REORG PHASE 1 UPDATE PROCESSOR
 02/13/2023 05:18:57:2359  IAMDRCCS ISSUING PHASE 1 UDPATE REQUEST TO CICS REGION CICSIAQA
 02/13/2023 05:18:57:2368  CICSIAQA   RECEIVED DYNAMIC REORG UPDATE PHASE 1 COMMAND                                 IDRS/33750     
 02/13/2023 05:18:57:7752  CICSIAQA   RECS ADDED:00000114  RECS UPDATED:00000165  RECS DELETED:00000019
 02/13/2023 05:18:57:8384  CICSIAQA   UPDATE PHASE 1 COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:57:8394  IAMDRCCS ADDING DSN TO DYNALLOC TABLE:    CPPRAC.IVTK3
 02/13/2023 05:18:57:8394  IAMDRCCS ISSUING REQUEST TO CLOSE ORIGINAL IAM FILE IN IAM CICS REGION CICSIAQA
 02/13/2023 05:18:57:8405  CICSIAQA   RECEIVED DYNAMIC REORG AUTOCLOSE COMMAND                                      IDRS/34435     
 02/13/2023 05:18:57:8405  CICSIAQA   THE FOLLOWING DATASETS WERE AUTOMATICALLY CLOSED:
 02/13/2023 05:18:58:0150  CICSIAQA     DD=IVTK3    DSN=CPPRAC.IVTK3
 02/13/2023 05:18:58:0150  CICSIAQA   AUTOCLOSE COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:58:0313  IAMDRCCS LINK TO DYNAMIC REORG PHASE 2 UPDATE PROCESSOR
 02/13/2023 05:18:58:0313  IAMDRUP2   UPDATE PHASE 2 STARTS                                                                        
 02/13/2023 05:18:58:1233  IAMDRUP2   RECS ADDED:      59 RECS UPDATED:     101 RECS DELETED:       0
 02/13/2023 05:18:58:1662  IAMDRUP2   PHASE 2 UPDATE EXITS RC=00000000 REASON=00000000
 02/13/2023 05:18:58:1679  IAMDRCCS PERFORMING AUTO RENAME OF ORIGINAL AND NEW IAM FILES

                                        ALTER CPPRAC.IVTK3                                    +
                                        NEWNAME(CPPRAC.IVTK3.D130223)
                                       IDC0531I ENTRY CPPRAC.IVTK3 ALTERED
                                       IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0



                                       IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0

                                        ALTER CPPRAC.IVTK3K                                   +
                                        NEWNAME(CPPRAC.IVTK3)
                                       IDC0531I ENTRY CPPRAC.IVTK3K ALTERED
                                       IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0



                                       IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
 02/13/2023 05:19:00:2873  IAMDRCCS REMOVING DSN FROM DYNALLOC TABLE:    CPPRAC.IVTK3
 02/13/2023 05:19:00:2890  IAMDRCCS ISSUING REQUEST TO REOPEN IAM FILES IN CICS REGION CICSIAQA
 02/13/2023 05:19:00:2899  CICSIAQA   RECEIVED DYNAMIC REORG AUTOOPEN COMMAND                                       IDRS/35174     
 02/13/2023 05:19:00:3962  CICSIAQA   DDNAME=IVTK3    HAS BEEN REOPENED
 02/13/2023 05:19:00:3962  CICSIAQA   AUTOOPEN COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:19:00:3974  IAMDRCCS ISSUING REORG COMPLETE STATUS TO CICS REGION CICSIAQA
 02/13/2023 05:19:00:4012  CICSIAQA   RECEIVED DYNAMIC REORG COMPLETE DSN=CPPRAC.IVTK3                              IDRS/35175
 02/13/2023 05:19:00:4012  CICSIAQA   DETACHING FROM SHARED 64-BIT STORAGE
 02/13/2023 05:19:01:4028  CICSIAQA   COMPLETE COMMAND EXITS RC=00000000 REASON=00000000
 02/13/2023 05:19:01:4038  IAMDRCCS SUBTASK DETACHING FROM 64-BIT SHARED STORAGE
 02/13/2023 05:19:01:4038  IAMDRCCS IAM DYNAMIC REORG SUBTASK ENDS.  HIGHEST RC=00000000
 02/13/2023 05:19:01:4038  IAMDRCCS
 02/13/2023 05:19:01:4039  IAMDRCCS

Copy example EX4304E

The following example uses IAMDRCC to obtain a copy of a data set that is open for update under CICS. The copy can be used as a non-fuzzy backup or it can be used for pushing the data to other spots in your IT organization such as to a distributed platform.

EX4304E JCL Example

//*
//* EX4304E - DYNAMIC REORG COPY EXAMPLE JCL AND CONTROL STATEMENTS
//*
//*           THE IAM DATASET TO BE COPIED WHILE OPENED FOR UPDATE
//*           IN CICS IS:
//*                  IAMCICSV.IAQA.LOCAL.IVTK1
//*
//*           THE REORGANIZED IAM COPY OF THE ORIGINAL DATASET IS:
//*                  IAMCICSV.IAQA.LOCAL.IVTK1X
//*
//*
//*
//DYNCOPY  EXEC PGM=IAMDRCC,PARM='SUBTASKS=1'
//STEPLIB  DD  DISP=SHR,DSN=<CICSHLQ>.SDFHEXCI <-- CICS STEPLIB
//         DD  DISP=SHR,DSN=IAM.LOADLIB         <--- IAM LOADLIB
//SYSPRINT DD  SYSOUT=*
//DRSUMM   DD  SYSOUT=*
//IAMINFO  DD  SYSOUT=*
//SYSOUT   DD  SYSOUT=*
//SYSIN    DD  *
COPY FROM=IAMCICSV.IAQA.LOCAL.IVTK1   <--- DATASET TO COPIED
TO=IAMCICSV.IAQA.LOCAL.IVTK1X,  <--- COPY OF FROM DATASET
CICS=CICSBXYZ                   <--- CICS REGION W/ORIGINAL DATASET
/*


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*