5.3.2 CHNGI/CHNGR

1.
Function
Finds the specified character string within a given character string, and replaces the part with integers/floating-point numbers following the format specifications.
2.
Call
CALL CHNGI(CH,CA,II,CFMT)
CALL CHNGR(CH,CA,RR,CFMT)
3.
Explanation of Parameters
CH (C *( *)) Character string to check.
CA (C *( *)) Character string to find.
II (I) Integer value to replace CA with.
RR (R) Floating-point value to replace CA with.
CFMT (C *( *)) Character format specification, written as follows, for example: '(I4)', '(E12.4)'.
4.
Notes
(a)
CH must be longer than CA.
(b)
When CA cannot be found within CH, an alert message will be printed.
(c)
The consistency of format specification will not be checked.