[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU-COBOL] COBOL considered as a RIS high-level language



Fred Mobach wrote:
>                      Name: index01.cbl.gz
>    index01.cbl.gz    Type: application/gnu
>                  Encoding: base64



Looks good


Are all of these assertions true?

* is the comment character

Empty lines are an error, so empty lines must have a * so they are not
empty

The initial line number is for reference only, GO TO uses named labels

Data structures are declared in "WORKING-STORAGE SECTION" which
may include default values

subroutines do not need to be predeclared, and they are defined
with two dots after their section names


Line labels are local to sections.  

P00 and EOS are customary for entry and exit points of a 
section but are not required for a correct program

section definitions are terminated with a / on a line by itself

subroutine calls require the PERFORM keyword


000610 01 DATUM-TIJD-VELDEN.
000620    03 DATUM                 PIC 9(06).
000630    03 FILLER REDEFINES DATUM.
000640       05 SYS-JJ             PIC 99.
000650       05 SYS-MM             PIC 99.
000660       05 SYS-DD             PIC 99.
000670    03 TIJD                  PIC 9(08).
000680    03 FILLER REDEFINES TIJD.
000690       05 SYS-UUR            PIC 99.
000700       05 SYS-MIN            PIC 99.
000710       05 SYS-SEC            PIC 99.
000720       05 SYS-HSS            PIC 99.

Are 01,03,05 always 01,03,05?  Can there be 07,09,11, and 
on in deeper, using objects that have been describes already?

Are these tags required and are they always odd numbers?

these declarations describe specific locations rather than
defining of structure types which will be later mapped on
to memory blocks (as in C or C++ ); COBOL works with
one record at a time by reading it into a defined record structure,
yes? (which leaves room available for incredible speed through
record locking and parallelism)




______________________________________________________________
                      David Nicol 816.235.1187 nicold@umkc.edu
 It is difficult to tell if your employees are doing real work
   or just goofing off when tools and games have the same GUI. 
                                                -- Dennis Chao

--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.