HP3000-L Archives

June 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Michael Berkowitz <[log in to unmask]>
Reply To:
Michael Berkowitz <[log in to unmask]>
Date:
Wed, 27 Jun 2001 07:47:55 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
Curt Brimacomb writes

I just had a very bizarre Cobol error.

I was redoing paragraph names in the source code.  I accidentally lost a
space after the word "perform" on one line and ended up with something like
this:

       perform1020-put-record.
       perform 1220-lock-next-set.
       move "update" to status.

 1000-next-para.

the program complied with no errors, but would not run right.  I added the
one space back into the "bad" perform line.  It still compiled with no
errors, but now does run correctly.

Why did it compile with the missing space?
-------------------------------------------
Because perform1020-put-record. is a perfectly valid paragraph name.
Paragraph names do not have to start in the "A" area (cols 8-12).  That is
only a legibility convention.

Mike Berkowitz
Guess? Inc.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2