Examples for parallel processing
Use the following examples to enable parallel processing in an image copy job.
In the examples in topic, the following condition is assumed:
- CAGROUP CAG1 consists of the database data sets listed in the following table.
Table 1. Databases in CAGROUP CAG1 DBD DDN DBHDAM1 HDAM1DD1 DBHDAM2 HDAM2DD1 DBHDAM3 HDAM3DD1 - DBD: DBHDAM4 consists of 2 DSGs: HDAM4DD1 and HDAM4DD2.
Subtopics:
Example 1: Group processing in parallel
This example is for a simple IC parallel process.
- ICEIN statements:
-
GROUP FUNC=AIC,CAGRP=CAG1,ICOUT=* AIC DBD=DBHDAM4,ICOUT=*
- Result:
- The Image Copy function would process as follows:
- All five data sets are processed in parallel.
- Five tasks start at once.
Example 2: WAIT statement
This example shows how the WAIT statement works in the IC process.
- ICEIN statements:
-
AIC DBD=DBHDAM4,DDN=HDAM4DD1,ICOUT=* GROUP FUNC=AIC,CAGRP=CAG1,ICOUT=* WAIT AIC DBD=DBHDAM4,DDN=HDAM4DD2,ICOUT=*
- Result:
- The Image Copy function would process as follows:
- First, processes of four data sets (HDAM4DD1, HDAM1DD1, HDAM2DD1, and HDAM3DD1) start in parallel.
- Process for data set HDAM4DD2 is not started until the four previously started processes are ended.
- First, four tasks start in parallel.
- When the first four tasks end, the next task starts.
Example 3: STACK processing in parallel
This example shows how the STACK option works in the IC process.
- ICEIN statements:
-
AIC DBD=DBHDAM4,DDN=HDAM4DD1,STACK=STK1 GROUP FUNC=AIC,CAGRP=CAG1,STACK=STK2 AIC DBD=DBHDAM4,DDN=HDAM4DD2,ICOUT=STK1
- Result:
- The Image Copy function would process as follows:
- First, processes of two data sets (HDAM4DD1 and HDAM1DD1) start in parallel.
- Data sets in CAG1 are written into STK2 sequentially.
- Process for data set HDAM4DD2 starts after terminating the DBD=DBHDAM4,DDN=HDAM4DD1 task, even if the GROUP process is ended.
Example 4: TASKCTL
This example shows how the TASKCTL optional keyword works in the IC process.
- ICEIN statements:
-
GLOBAL DBRC=Y,TASKCTL=3 GROUP FUNC=AIC,CAGRP=CAG1,ICOUT=* AIC DBD=DBHDAM4,ICOUT=*
- Result:
- The Image Copy function would process as follows:
- First, processes of three data sets (HDAM1DD1, HDAM2DD1, and HDAM3DD1) start in parallel.
- Process for data set HDAM4DD1 starts after any of the processes HDAM1DD1, HDAM2DD1, or HDAM3DD1 is ended.