Example Procedure Definition

An example procedure definition that supports TPF PARTITION BY clause examples.

All TPF PARTITION BY clause examples in this section assume that you first execute this procedure definition:

CREATE PROCEDURE my_tpf( arg1 TABLE( c1 INT, c2 INT ) )
  RESULTS ( r1 INT, r2 INT, r3 INT )
  EXTERNAL ‘my_tpf_proc@mylibrary’;

CREATE TABLE T( x INT, y INT, z INT );
Related reference
describe_parameter_set Example # 1: One-Column Partitioning on Column 1
describe_parameter_set Example # 2: Two-Column Partitioning
describe_parameter_set Example # 3: Any-Column Partitioning
describe_parameter_set Example # 4: No Support for PARTITION BY ANY Clause
describe_parameter_set Example # 5: No Partitioning Support
describe_parameter_set Example # 6: One-Column Partitioning on Column 2