EDIT Function

Purpose

Returns a character string of length LENGTH(y) with a value equivalent to what would result if x were assigned to a variable declared with the picture specification given by y.

Syntax

EDIT(x,y)

Parameters

x
An expression of a computational type.
y
A string expression of a character type containing picture characters that are valid for a PICTURE data item. The ERROR condition is raised when y does not contain a valid picture specification.