Job DSNTEJ1

Job DSNTEJ1 creates all objects that are to be used by the sample verification jobs. Run this job before any other verification job.

If reason code 00C9008A continues to occur, do one of the following:
  • Restart Db2 and run the job again.
  • If you are using a partitioned data set (PDS) for the DSNEXIT data set, run IEBCOPY to compress the data set when no application is using the DSNEXIT data set.

The job consists of the following steps.

Table 1. Steps in job DSNTEJ1
Step Function
1-4 Creates all objects (storage group, databases, table spaces, tables, indexes, and views) that are used by the samples.1
5 Drops synonyms.
6 Start of changeCreates synonyms and grants authorization on objects to PUBLIC.End of change This step creates synonyms for the sample tables, indexes, and views, so that the currently running authorization ID can execute the sample application and grant appropriate authority. The sample dynamic SQL program DSNTIAD processes the Db2 object definitions in this step and several others.
7 Uses the ASMCL procedure to create DSN8EAE1, an edit exit routine.
8 Assembles and link-edits DSNHUFF.
9 Assembles and link-edits DSN8FPRC, a sample field procedure.
10 Prepares the sample call attachment facility assembler interface. You must link-edit ISPLINK, the ISPF interface module, with this CAF sample load module. To do this, ensure that the link-edit SYSLIB statement that retrieves the ISPF load module library in procedure DSNHASM is not commented out.
11 Creates the sample utility list.
12 Loads the programming-related tables by using the LOAD utility.
13 Loads the sample tables by using the LOAD utility.
14 Checks data for referential integrity.
15 Establishes a quiesce point by using both log and image copies.
16 Makes an image copy of all the sample tables by using the COPY utility.
17 Establishes another quiesce point by using only image copies.
18 Reorganizes a table space and compiles statistics on all table spaces by using the REORG and RUNSTATS utilities.
19 Performs a REORG TABLESPACE with SHRLEVEL CHANGE.
20 Loads the sample tables by using the LOAD utility.
21 Sets the CURRENT RULES register and adds a check constraint using ALTER TABLE.
22 Checks data for referential integrity.
23 Checks data for check integrity.
24-27 Performs the operations in steps 15-18 except for the REORG on partition 3 of the Employee table space.
28 Unloads data from a partitioned table.
29 Reduces the partition key on the fourth partition of table space DSN8S81E.
30 Processes an online schema change to add a fifth partition to table space DSN8S81E.
31 Reorganizes a partitioned table space.
32 Performs various online schema changes, including lengthening a character field and converting an integer field to a decimal field.
33 Reorganizes table spaces DSN8S91R and DSN8S91S to reset advisory REORG-pending (AREO) status.
Notes:
  1. Start of changeJob DSNTEJ1 creates table spaces that contain multiple tables. However, applications that run at application compatibility level V12R1M504 or higher must create or use UTS table spaces, which can contain only single tables. To enable the installation verification jobs to run at any application compatibility level in Db2 12, steps 1 and 2 include this statement to set the application compatibility level to V11R1.
    SET CURRENT APPLICATION COMPATIBILITY = 'V11R1';
    End of change

If DSNTEJ1 runs successfully, it produces the return codes that are shown in the following table.

Table 2. DSNTEJ1 return codes
Step PROCSTEP Return code
PH01S01 0000
PH01S02 0000
PH01S03 0000
PH01S04 0000
PH01S05 0000
PH01S06 0000
PH01S07
ASM
LKED
0000
0000
PH01S08
ASM
LKED
0000
0000
PH01S09
ASM
LKED
0000
0000
PH01S10
PC
ASM
LKED
0004
0000
0000
PH01S11 IEBGENER 0000
PH01S12 DSNUPROC 0000
PH01S13 DSNUPROC 0004
PH01S14 DSNUPROC 0000
PH01S15 DSNUPROC 0000
PH01S16 DSNUPROC 0000
PH01S17 DSNUPROC 0000
PH01S18 DSNUPROC 0000 or 0004
PH01S19 DSNUPROC 0000
PH01S20 DSNUPROC 0004
PH01S21 0004
PH01S22 DSNUPROC 0004
PH01S23 0000
PH01S24 DSNUPROC 0000
PH01S25 DSNUPROC 0000
PH01S26 DSNUPROC 0000
PH01S27 DSNUPROC 0000
PH01S28 DSNUPROC 0000
PH01S29   0000 or 0004
PH01S30   Start of change0004End of change
PH01S31 DSNUPROC 0000
PH01S32   0000
PH01S33 DSNUPROC 0000
Db2 issues the following message for every SQL statement, except for the drop synonym and insert statements:
DSNT400I SQLCODE = 0, SUCCESSFUL EXECUTION
If the synonyms in the DROP SYNONYM statements are not defined, SQL return codes of -204 result. The INSERT statements violate a check constraint on the EMP table. This results in an SQL return code of -545.