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:
"Shahan, Ray" <[log in to unmask]>
Reply To:
Shahan, Ray
Date:
Wed, 27 Jun 2001 11:27:54 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (102 lines)
I can think of a spot where no periods might sting...the INSPECT
statement...I've always wondered why they didn't do an END-INSPECT?

> -----Original Message-----
> From: Tracy Pierce [SMTP:[log in to unmask]]
> Sent: Wednesday, June 27, 2001 11:26 AM
> To:   'Shahan, Ray'; [log in to unmask]
> Subject:      RE: Bizarre Cobol Error
>
> everybody's right on the money with this one, including Ray, who's
> assuming
> that the prior paragraph was PERFORMed.
>
> I generally avoid problems like this by avoiding the use of the other
> "paragraph" indicator, which is the period (.).  That normally ends a
> sentence, but is really only necessary at the end of a paragraph.  Not
> using
> periods to end sentences will also force you to use cobol-85 constructs
> such
> as END-IF, a very good thing.
>
> Tracy Pierce
>
> > -----Original Message-----
> > From: Shahan, Ray [mailto:[log in to unmask]]
> > Sent: Wednesday, June 27, 2001 9:16 AM
> > To: [log in to unmask]
> > Subject: Re: Bizarre Cobol Error
> >
> >
> > Actually, it will GOBACK to calling paragraph at
> > perform1020-put-record.
> >
> > Ray Shahan
> >
> > > -----Original Message-----
> > > From: Curt Brimacomb [SMTP:[log in to unmask]]
> > > Sent: Wednesday, June 27, 2001 10:06 AM
> > > To:   [log in to unmask]
> > > Subject:      Re: Bizarre Cobol Error
> > >
> > > Michael,
> > >
> > > never thought about that one.  Things that make you go
> > hhhmmmmmm......
> > >
> > > Thanks for the enlightenment!
> > >
> > > curt
> > >   -----Original Message-----
> > >
> > >
> > >   You intended to PERFORM a paragraph name 1020-put-record,
> > instead you
> > > have
> > > a NEW Paragraph named 'perform1020-put-record'.
> > >
> > >   This will compile clean, but will not perform
> > 1020-put-record as you
> > > intended it to, instead it will fall through to perform
> > > 1220-lock-next-set.
> > > Probably not the results you were looking for.
> > >
> > >
> > >   --
> > >   Michael -
> > >
> > >   >>> Curt Brimacomb <[log in to unmask]> 06/27/01 09:40AM >>>
> > >   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
> > >
> > > * To join/leave the list, search archives, change list settings, *
> > > * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
> >
> > * To join/leave the list, search archives, change list settings, *
> > * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
> >

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

ATOM RSS1 RSS2