Skip to main content

SIGN - IN A STRING ON THE LEFT

  • Apr 23, 2022 4:18 PM UTC
  • 2 replies
  • 18 views

Hi, I have a number declared : 77 MY-NUMBER PIC S9(5)V99    and for printing it : MY-NUMBER-PRINT PIC -ZZZ.ZZZ.ZZ9,99

When I print it the minus sign appears in the first left space  es.     -       123,45. How I can position the minus sign near the 1 ?

2 replies

Thomas Morrison
Forum|alt.badge.img
  • Participating Frequently
  • Apr 24, 2022 3:56 AM UTC

Hi, I have a number declared : 77 MY-NUMBER PIC S9(5)V99    and for printing it : MY-NUMBER-PRINT PIC -ZZZ.ZZZ.ZZ9,99

When I print it the minus sign appears in the first left space  es.     -       123,45. How I can position the minus sign near the 1 ?

Standard COBOL

-----,---,--9.99

The terminology is 'floating insertion editing'.  See page 130 of RM/COBOL Language Reference Manual, Second Edition.


  • Apr 26, 2022 1:24 PM UTC

Standard COBOL

-----,---,--9.99

The terminology is 'floating insertion editing'.  See page 130 of RM/COBOL Language Reference Manual, Second Edition.

Great Tom !!!!!      Many many tks !  It works fine !