Ruby article

T

ts

J> I'm not familiar with COBOL though, can someone explain how the
J> 'retry' example in the Pickaxe is supposedly bad?

Well ALTER in COBOL is something like this (if memory is good)

PERFORM 10-ACTION THRU 99-EXIT.

10-ACTION.
* the first call to PERFORM will go here
ALTER 10-ACTION TO 20-ACTION.
GOTO 99-EXIT.

20-ACTION.
* the next call to PERFORM will go here
GOTO 99-EXIT.

99-EXIT.
EXIT.

When you read the PERFORM statement you can't know where the program will
go because this can changed latter with a ALTER


Guy Decoux
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top