| 
      
      
      From: Gareth K. <gb...@th...> - 2003-04-26 14:36:50
      
     | 
| First time posting - so bare with me, if you don't mind.
I'm new to the tinyCobol compiler... and, for that matter, COBOL
I can compile this:
      1  IDENTIFICATION DIVISION.
      2  PROGRAM-ID. EG.
      3  DATA DIVISION.
      4  WORKING-STORAGE SECTION.
      5  01 test-input  PIC 99.
      6  01 test-working PIC 99.
      7  01 second-working PIC 99.
      8
      9  PROCEDURE DIVISION.
     10  eg.
     11      DISPLAY "Quick Example Program"
     12      DISPLAY "Enter a number: " WITH NO ADVANCING
     13      ACCEPT test-input
     14
     15      MULTIPLY test-input BY 2 GIVING test-working ROUNDED
     16      ON SIZE ERROR
     17          DISPLAY "Size Error"
     18      NOT ON SIZE ERROR
     19          DISPLAY "No Size Error"
     20          ADD test-working TO 80 GIVING second-working
     21 *        ON SIZE ERROR
     22 *            DISPLAY "Second size error"
     23 *        NOT ON SIZE ERROR
     24 *            DISPLAY "Second no size error"
     25          END-ADD
     26      END-MULTIPLY
     27
     28      STOP RUN.
( Line numbers are from vim :set number - I've found that oddly I can't have
seven characters at the start of each line - I can only have one ?
Is this normal ? Can I change it so that the compiler expects a normal cobol
line - with seven characters at the beginning )
And it works fine.
If I uncomment lines 21-24 then I get a Segmentation Fault...
Is this a known bug in the compiler, something wrong with my cobol,
something wrong with my compiler or something else ?
If any debug / verbose / system information is needed to work out what's
happening then I'll gladly give it.
TinyCOBOL - pre alpha 0.60.0 (released on 2002/10/04)
(C) 1991, 1993, 1999-2002 Rildo Pragana et. al.
Thanks a lot
Gareth Kirwan
Programming & Development,
Thermeon Europe Ltd,
gb...@th...
Tel: +44 (0) 1293 864 303
Thermeon Europe e-Card: gbjk
 |