FTS1_CHVAx

Replaces all occurrences of a value in an array with another value

Description:

This routine copies the input array to the output array, except where a specified value occurs, and this is replaced with a new value throughout the output array.

Invocation

CALL FTS1_CHVAx( EL, INARR, OLDVAL, NEWVAL, OUTARR, NREP, STATUS )

Arguments

EL = INTEGER (Given)
The dimension of the input and output arrays.
INARR( EL ) = ? (Given)
The input array.
OLDVAL = ? (Given)
Value to be replaced.
NEWVAL = ? (Given)
New value to be substituted for the old value.
OUTARR( EL ) = ? (Returned)
The output array containing the modified values.
NREP = INTEGER (Returned)
The number of replacements made.
STATUS = INTEGER (Given and Returned)
Global status value.

Notes: