Loading [MathJax]/jax/output/HTML-CSS/jax.js

CHR_CTOC

Write a CHARACTER string into another string

Description:

Write the given character string into the returned character string. If the given string is longer than the returned string, the given string is truncated. If the returned string is longer than the given character variable, the remainder of the returned string is padded with blanks.

Invocation

CALL CHR_CTOC( STR1, STR2, NCHAR )

Arguments

STR1 = CHARACTER ( ) (Given)
The value to be written.
STR2 = CHARACTER ( ) (Returned)
The character string into which the value is to be written.
NCHAR = INTEGER (Returned)
The resulting length of the character string, ignoring trailing blanks.