Previous Topic: Syntax Diagram ConventionsNext Topic: Calling the IDMSCALC Routine


IDMSCALC

The IDMSCALC utility is a subroutine which can be called from a user-written program to determine the target page of a record, based on a user-supplied CALC key.

It is typically used to optimize the loading of data by allowing you to sort input in target page sequence.

IDMSCALC is implemented as a called subroutine. The utility returns to a user-written program a target page number for storage of a CALC record, based on a page range and CALC key value supplied by the program. The user program, which can be written in any language supporting a call statement, must build a single five-field fullword-aligned argument as outlined in the following table, then call IDMSCALC, passing the argument. IDMSCALC must be link edited with the calling program.

This section contains the following topics:

Calling the IDMSCALC Routine