Special Insertion Editing


  • Special insertion editing is used to insert the decimal-point while displaying the decimal values of a variable.
  • It is very useful to display a decimal point of a decimal value.
  • It is applicable for numeric-edited and external floating-point items.

Notes -

  • It doesn't affect the value and only changes how the data is displayed.
  • Editing characters are inserted at the specified position when a value is moved into the edited variable.

Special insertion editing symbols are -

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

Examples -


Editng 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