Re: dubbuging that script



77 CONS PIC 9(3)V99; COMP 3.

Actually when one works out what the compiler is doing it is not too
strange.

It is taking the '3' as being the next level number, therefore there is
a missing full stop on the previous declaration and you can't have a
level 3 after a 77.

It all goes downhill from there. Note that CONS is also used as a
paragaph name causing more confusion.

You should also study what 'EXIT' does and ask why you are using it.
You may also want to consider what happens after it has executed the
line PERFORM F-PROG.

.



Relevant Pages

  • Re: Thank You -- Thomas J. Gritzan
    ... realloc() and free. ... My compiler chokes without using the cast for mallocor calloc. ... exit(1); ...
    (comp.lang.c)
  • Is there a Fortran equivalent of Cs #ifdef ??
    ... # Determine the type of C compiler, ... echo "Sorry, you should define the enivronment variable CC" ... rm $TESTFILE ...
    (comp.lang.fortran)
  • Re: My COBDATA problem
    ... Today I downloaded the COBDATA COBOL source code and compiled it on my ... Windows XP machine using the IBM compiler that is part of Rational ... text of several lines, do one logic change because of EXIT PERFORM, ...
    (comp.lang.cobol)
  • Re: brain teaser
    ... but Cobol standard does and that makes your code less portable. ... I'll use EXIT PARAGRAPH as soon as its available for my compiler. ... I do program with languages such as C# and Ruby (Ruby doesn't even ...
    (comp.lang.cobol)
  • Re: Cobol Myth Busters
    ... Both the HP compiler on my Alpha and the Fujitsu compiler ... What is the advantage of using EXIT PERFORM CYCLE over CONTINUE? ... If tests run too slowly,>10 seconds, lower repeat-factor to 10,000,000; ...
    (comp.lang.cobol)