Db2 function level settings in Db2 Admin Tool
Within Db2 Admin Tool, you can specify the Db2 function level, the APPLCOMPAT function level, the target function level, and the maximum Db2 function level accepted.
These terms are defined as follows:
- Db2 function level
- The function level at which the Db2 subsystem is currently
running.
When Db2 Admin Tool starts, it gets this value from Db2. For batch jobs that do not connect to Db2, Db2 Admin Tool determines the current function level of the subsystem based on the value in the DSNHDECP module.
You can override this value by specifying a different function level on the Options for Change Functions (ADB2PCO) panel in the DB2 function level field:
Tip: To navigate to this panel, specify P.CH on the DB2 Administration Menu (ADB2) panel. - APPLCOMPAT function level
- The function level value of the CURRENT APPLICATION COMPATIBILITY special register. This value
is displayed on the main DB2 Administration Menu (ADB2)
panel:
The value that is displayed on this panel is the function level that is used by Db2 Admin Tool for all functions, except for generating SQL. For generating SQL, Db2 Admin Tool uses the target function level.
The APPLCOMPAT function level is initially set to the APPLCOMPAT value with which the ADBMAIN package was bound. If you did not specify an APPLCOMPAT bind value, this value is set to the Db2 function level.
You can update the APPLCOMPAT function level by using a SET statement or the APPLCOMPAT primary command.Restriction: You cannot set the APPLCOMPAT function level to a value that is greater than the function level value with which you bound ADBMAIN. - Target function level
- The function level for generated DDL statements. Db2 Admin Tool generates requested DDL statements based on
the syntax requirements for the target function level.
The default value is the current Db2 function level. However, you can specify any function level that is equal to or lower than the current Db2 function level. You can specify this value in one of the following places:
- The Change Management (CM) batch parameter TGT_DB2FL
- The ADB2RE stored procedure option TGTFL for generating statements
- On the Generate SQL from DB2 catalog
(ADB2GENB) panel, in the Target Function
Level field:
Tip: For instructions on how to navigate to this panel, see Generating SQL to re-create a Db2 object.
- Maximum Db2 function level accepted
- The maximum function level on which you want to allow Db2 Admin Tool to run, even if that function level is not
tolerated or supported.
By default, no value is defined. You can specify this value in one of the following places:
- On the Db2 Function Level Confirmation (ADB2CONF) panel when you start Db2 Admin Tool. See Db2 function level confirmation when starting Db2 Admin Tool.
- The Change Management (CM) batch parameter ACCEPT_FL
- The ADB2RE stored procedure option ACCEPT FL for generating statements
- On the Admin Defaults (ADB2P2)
panel in the Max
Db2 function level accepted field:
Tip: To navigate to this panel, specify P.2 on the DB2 Administration Menu (ADB2) panel.
Scenarios for setting function level values
- You want to recreate an object without attributes that are new in Db2 12
- Suppose that your Db2
function level is 504. You want to process a change that drops and recreates a table
space that was originally defined with PAGENUM in the catalog. However, you do not want
to use PAGENUM when recreating the table space. (PAGENUM is a new attribute that is
available in function level 500.) In this case you want to set the target function level
to 100 by performing the following actions:
- For CM batch jobs: specify
TGT_DB2FL = '100'
as shown in the following example://* //ANALYZE EXEC GOCCM,SSID=DC1A,PLAN=TS5764P //PARMS DD * SYMBOL_NAME = '&SCENARIO.' SYMBOL_VALUE = 'A1638B01' ACTION_ANALYZE_CHANGE = 'Y' CHANGE_NAME = '&SCENARIO..&JOBNAME.' CHANGE_COMMENT = 'CHANGE1' EXISTING_DATA_SET_ACTION='REPLACE' ACCEPT_FL = '504' TGT_DB2FL = '100'
- For GEN:
- On the Table Spaces (ADB21S) panel, specify the GEN line command for the table space.
- On the Generate SQL from DB2 catalog
(ADB2GENB) panel, specify the following
values and press Enter:
- Target Function Level = 100
- Execution mode = BATCH
The generated batch JCL hasACCEPT_FL='504'
andTGTFL='100'
:
The resulting DDL for CREATE TABLESPACE does not include the PAGENUM option.//IN DD * DB2SYS = 'DC1A', DB2ALOC = '', DB2SERV = 'RS22DC1A', DB2AUTH = 'TS5764', DB2REL = '1215', GENSG = 'N', GENDB = '', GENTS = 'Y', GENTABLE = 'Y', GENVIEW = 'N', GENINDEX = 'Y', GENSYN = 'N', GENALIAS = 'N', GENLABEL = 'N', GENCOMM = 'N', GENRELS = 'N', GENTRIG = 'Y', ACTVCNTL = 'N', PENDCHGS = 'Y', GENMASK = 'N', GENPERM = 'N', GRANTDB = '', GRANTTS = 'Y', GRANTTAB = 'N', GRANTVW = 'N', GRANTSG = 'N', IMPLDB = '', IMPLTS = '', NEWDB = '', NEWTSSG = '', NEWIXSG = '', NEWSQLID = '', NEWGRANTOR = '', SPCALLOC = 'DEFINED', ROLEWARN = 'Y', GETDB2ZP = 'Y', ACCEPT_FL = '504', TGTFL = '100', TGTDB2 = ''; DB='DBXXEE01', TS='TUXXEE01'; /*
- For CM batch jobs: specify
- Your subsystem is at FL 500 but a higher Db2 function level is specified in the ISPF profile.
- In this case, the profile might have been set up with a different subsystem. To set
the Db2 function level value
to FL 500:
- From the main DB2 Administration Menu (ADB2) panel, specify P.CH.
- On the Options for Change Functions (ADB2PCO) panel, specify 500 in the DB2 function level field.
- Your subsystem is at FL 505 but you have not yet applied maintenance to Db2 Admin Tool to support FL 505
- If you are not using any FL 505 enhancements, Db2 Admin Tool will run as usual. However, you
must specify 505 as the maximum Db2 function level accepted. When you
start Db2 Admin Tool, specify option 3
on the Db2 Function Level Confirmation
(ADB2CONF) panel. If you are running
the ADB2RE stored procedure to generate SQL or running CM batch, add the following
parameter to your jobs:
ACCEPT_FL = '505'
.