Previous Topic: Successful Execution Requirements and ControlsNext Topic: Example JCL


How to Use

The MUF must be active when you execute this command. Execute the REPLACE function using the following command format.

►►─ REPLACE ─ TABLE=t,DBID=n,DDNAME=d,MULTUSE=YES,SORT=n ─────────────────────►

 ►─┬──────────────────────────┬─┬─────────────────────────┬───────────────────►
   └─ ,LOADPTN= ─┬─ FAIL ◄ ─┬─┘ └─ ,OPTION1= ─┬─ NOF ◄ ─┬─┘
                 └─ SKIP ───┘                 ├─ '(I)' ─┤
                                              └─ '(U)' ─┘

 ►─┬─────────────────────┬─┬─────────────┬─┬──────────────────────┬───────────►
   └─ ,SLACK= ─┬─ 0 ◄ ─┬─┘ └─ ,SORTDD=n ─┘ └─ ,SORTWK= ─┬─ 3 ◄ ─┬─┘
               └─ nnn ─┘                                └─ n ───┘

 ►─┬────────────────────────┬─────────────────────────────────────────────────►◄
   └─ ,UNIT= ─┬─ SYSDA ◄ ─┬─┘
              └─ c ───────┘

Command

REPLACE

Invokes the function to load one table in a multiple table area with new data, replacing all current data for that table.

Required Keywords

,DBID=

Identifies the database containing the table to be loaded.

Valid Entries:

DATACOM-ID of the database

Default Value:

(No default)

,DDNAME=

Specifies the JCL DDname for the input data set.

A DDNAME is not acceptable for sequential input or output files if it is a name reserved for a CA Datacom area. Names with the following patterns are therefore not acceptable for DDNAME=:

,MULTUSE=YES

Specifying MULTUSE=YES is required when executing the REPLACE function.

Valid Entries:

YES

Default Value:

(No default)

,SORT=

Sorting index entries is required.

The OPTION1= parameter is highly recommended to obtain warning and critical messages if a problem occurs.

To estimate the value to enter, multiply the number of keys in the table by the number of records to be sorted and add 30 percent. For example, if the table contains 2 keys and you are sorting 1000 records, the value you specify should be at least 2600. The value you specify is passed to the sort routine and can affect the amount of runtime used by the sort. If you use multiple LOAD or REPLACE statements in a single step, place the largest sort value first.

Note: Do not specify over 99 million unless you verify that the sort package you are using allows a larger number.

Valid Entries:

0 to 99999999999

Default Value:

(No default)

TABLE=

Indicates a single table is to be loaded.

Valid Entries:

DATACOM-NAME of a table in the database and area being loaded

Default Value:

(No default)

Optional Keywords

,LOADPTN=

Specifies how the utility handles a rejected row for a table partition. If it is set to SKIP, the row is ignored with no error condition. If it is set to FAIL, the row is dumped, and the utility function terminates.

Valid Entries:

FAIL or SKIP

Default Value:

FAIL

,OPTION1=

Specifies the statistics display option to be passed to the sort program (see the SORT= parameter).

NOF

Corresponds to the NOFLAG parameter of the IBM sort. Only critical messages are to be displayed on the console.

'(I)'

Specifies that informational and critical messages are to be displayed on the printer and the console.

'(U)'

Specifies that only critical messages are to be directed to both the printer and the console.

NOF, '(I)', and '(U)' correspond to the SyncSort MSG options of CC, SC and CB respectively.

This parameter also accepts any three-character (including the surrounding parentheses) FLAG parameter that can be processed by the IBM sort. See your IBM sort manual for details.

Valid Entries:

NOF, '(I)', or '(U)'

Default Value:

NOF

,SLACK=

Specifies the number of bytes to reserve in each data block for future expansion of records in that block, or for addition of records when using a space reclamation option. The number entered applies only to blocks loaded to an area during this execution of the REPLACE function. Blocks not loaded with data use the SLACK value specified in the AREA definition in CA Datacom Datadictionary.

Valid Entries:

A number that is less than the block size

Default Value:

0

SORTDD=

Specifies an optional DD statement, provided to the SORT that redirects SYSPRINT-type output from the SYSPRINT DD (used by DBUTLTY) to this optional DD statement.

Valid Entries:

printed output directed to optional DD statement

Default Value:

printed output directed to SYSPRINT, intermixed with DBUTLTY output

,SORTWK=

Specifies the number of sort work areas.

Note: Do not specify a 2-digit number unless the sort package you are using allows a 2-digit number. Sort packages that do not support a 2-digit number can fail in an unpredictable manner, if you specify a 2-digit number.

Valid Entries:

0 to 99

Note: Do not use two-digit numbers unless the SORT package to be used supports the larger number.

Default Value:

3

,UNIT=

Specifies the unit name for sort work areas. The parameter is always edited, but is only used when the SORT= parameter is specified as not zero.

Valid Entries:

1- to 8-character unit name

Default Value:

SYSDA