Special Insertion Editing


Data editing is used to format data for display or print purposes. One such type of editing is "special insertion editing".

Special insertion editing represents the decimal point for alignment purposes. It is valid for either numeric-edited items or external floating-point items.

Notes -

  • It doesn't affect the PICTURE clause value and only changes how the data is displayed.
  • The insertion characters are inserted at the specified position in the PICTURE when a value is moved into the edited item.

The syntax for special insertion editing involves the use of editing symbols -

  • . - Inserts period. Represents the position of the decimal point.
Note! The length of the edited PIC clause may or may not be same as source PIC clause.

Examples -


PICTURE InputOutput
9(5)V9(2)123.45 0012345
9(5).9(2)123.4500123.45
9999.9123.450123.4
99.99123.4523.45
999.991234234.00