Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: ALTER design (Was: Code problems with Perform Thru Exit causes fallthrough)
LX-i <lxi0007@netscape.net> wrote in message
 news:4MWdnUDRHLIlPTPbnZ2dnUVZ_h2pnZ2d@co
mcast.com...
>
> OK - here's a question for you old guy... er, seasoned professionals...
>
<snip>

> Now my curiosity is more theoretical.  How does one think to design
> ALTER in a good way?
>

An example that struck me as sensible at the time was to handle EOF in an
out-of-line file read: it's a long time ago so I don't recall the exact
details but it was something like this:

READ.

READ FILE AT END MOVE HIGH-VALUES TO FILE-KEY
ALTER READ TO PROCEED TO READ-X
GO TO READ-X.
(A bunch of other code)
READ-X.
EXIT.

As I say I can't recall the details; this construct did solve whatever the
problem statement was and did not cause too much strain on the maintainer
since the target of the ALTER was right there.  I do remember being a bit
nervous about the compiler's ability to handle the paragraph-name READ both
as a PERFORM target and an ALTER target, but there were never any problems.

PL




Report this thread to moderator Post Follow-up to this message
Old Post
tlmfru
07-31-07 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:32 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.