To output using an edit word, code the output specifications as
shown below:
- Position
- Entry
- 21-29
- Can contain conditioning indicators.
- 30-43
- Contains the name of the numeric field from which the data that
is to be edited is taken.
- 44
- Edit code. Must be blank, if you are
using an edit word to edit the source data.
- 45
- A “B” in this position indicates that the source data
is to be set to zero or blanks after it has been edited and output.
Otherwise the source data remains unchanged.
- 47-51
- Identifies the end (rightmost) position of the field in the
output record.
- 53-80
- Edit word. Can be up to 26 characters
long and must be enclosed by apostrophes, unless it is a named constant.
Enter the leading apostrophe, or begin the named constant name in
column 53. The edit word, unless a named constant, must begin in column
54.
To edit using an edit word in calculation specifications, use built-in
function %EDITW, specifying the value to be edited as the first parameter,
and the edit word as the second parameter.