im using VSCODE gnucobol, why its not accepting decimal in accept statement?

62 views Asked by At

Im using VSCode (WSL-UBUNTU) , why im not able to input decimal in accept command. Example to enter 55.50, decimal point is not accepted by the program.

   identification division.
   program-id . "numeric".
   author.
   environment division.
   data division.
   working-storage section.
   77 WAITING PIC X.
 
   01 num1 pic 9(5).99 .
   screen section.
   01 CLEAR-SCREEN.
       02 BLANK SCREEN. 
   procedure division.
       perform proc-numeric.
       STOP RUN.
   proc-numeric.
       DISPLAY  "NUM 1 : " LINE 5 COL 1 
       ACCEPT NUM1 LINE 5 COL 20 background-color 2.

       display "num1: " line 9 col 1
       DISPLAY NUM1  LINE 9 COL 40.    
       accept waiting LINE 20 COL 4.
0

There are 0 answers