KPG1_CHELx

Replaces the value of an array element with a specified value

Description:

This routine replaces a specified element of a vectorised array with a supplied value and returns the former value of the element.

Invocation

CALL KPG1_CHELx( EL, CHEL, NEWVAL, ARRAY, OLDVAL, STATUS )

Arguments

EL = INTEGER (Given)
The dimension of the array.
CHEL = INTEGER (Given)
The element number to be replaced. It must lie between 1 and EL, otherwise an error report is made.
NEWVAL = ? (Given)
The new value of the element.
ARRAY( EL ) = ? (Given and Replaced)
The array whose value is to be replaced.
OLDVAL = ? (Returned)
The former value of the array element.
STATUS = INTEGER (Given and Returned)
Global status value

Notes: