Previous Topic: Compiling Directly at a TerminalNext Topic: STORE:  Saving CA ACF2 Option for DB2 Rules


Compiling From a Data Set

You can create CA ACF2 Option for DB2 rule sets by first entering the control statements and rule entries into a partitioned data set (PDS) member. You can place multiple control statements on one line if you enter a $ in column one. You must place each rule entry on a separate line. The last line does not have to be a blank line.

After you enter the rule set into the PDS member and save it, invoke the ACF command in TSO and compile the CA ACF2 Option for DB2 rule set. Enter the COMPILE subcommand with the PDS name and member name:

READY
acf
 ACF
set db2(tbl)
 DB2
compile rules.text(acfrules)

Use TSO conventions when you specify the PDS name and member. Your high‑level index is assumed unless you specify the entire PDS name and enclose it in single quotes. For example, specify the following to name the data set belonging to USER01:

'USER01.RULES.TEXT(ACFRULES)'

Or specify the following to name the data set belonging to your high-level index:

RULES.TEXT(ACFRULES)

CA ACF2 Option for DB2 responds with the following:

READY
acf
 ACF
set db2(tbl)
 DB2
compile rules.text(acfrules)
 ACFD2010 DB2 COMPILER ENTERED

 $KEY(FINANCE.BUDGET_ESTIMATE) TYPE(TBL) SYSID(PROD)
  UID(TFINPAYISO) SERVICE(SELECT) ALLOW
  UID(TFINADMISO) SERVICE(SELECT) UNTIL(11/24/05) LOG
 ACFD2051 TOTAL RECORD LENGTH= 194 BYTES, 4 PERCENT UTILIZED
 DB2

To store the rule set in the Infostorage database, use the STORE subcommand. After you compile and store the CA ACF2 Option for DB2 rule set, you can use the TEST subcommand to test whether the CA ACF2 Option for DB2 rule set permits proper validation.