Previous Topic: Consolidating TablesNext Topic: Demonstration


What You Can Do

You can process data from more than one input table in a single CA Culprit run by reading the data tables as one logical file with the TYPE=CONSOLIDATION option. In addition, rows can be selected with WHERE or SELECT/BYPASS criteria.

Table data can be consolidated from:

How to Do It

To consolidate tables:

  1. Check the column definitions of each table to be used. The definitions must be identical.
  2. Define each table on an INPUT parameter using the keywords listed in the table below.
  3. Specify the output by using:
  4. Reference tables, if needed, in a table consolidation run by using the reserved words shown in the table below. These reserved words are valid on SELECT/BYPASS, edit, SORT, and process parameters.

Required Keywords:

TABLE=

The table name

TYPE=COPY/CONSOL

The primary and secondary tables to be consolidated

USER=

The individual having authority to sign on to the catalog (dictionary)

PW=

The user's password

OWNER=

The owner of the table

CATALOG=

The catalog or dictionary containing the table definition

Optional Keywords:

LOCATION=

Overrides DATABASE DICTNODE=

SYSCTL= (z/OS and OS/390 Users)

Names the SYSCTL file that controls the system accessing the table.

VALIDATE=FIRST/ALL

Compares column definitions of secondary tables to definitions of the primary table.

WHERE

Applies WHERE clause criteria to all tables being consolidated.

Reserved Words to Reference Tables

Reserved word

What it is

What it does

TABLE-ID

A 3-byte zoned decimal field

Indicates the data table currently being accessed

TABLE-NAME

A 56-byte alphanumeric field

Contains the name of the table currently being accessed

SUBSCHEMA-NAME

An 8-byte alphanumeric field

Contains the subschema name of the table being accessed