Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -0,0 +1,8 @@
|
|||
PROGRAM-ID. Go-To-Example.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
Foo.
|
||||
DISPLAY "Just a reminder: GO TOs are evil."
|
||||
|
||||
GO TO Foo
|
||||
.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
GO TO First-Thing Second-Thing Third-Thing
|
||||
DEPENDING ON Thing-To-Do
|
||||
|
||||
* *> Handle invalid thing...
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
EVALUATE Thing-To-Do
|
||||
WHEN 1
|
||||
* *> Do first thing...
|
||||
|
||||
WHEN 2
|
||||
* *> Do second thing...
|
||||
|
||||
WHEN 3
|
||||
* *> Do third thing...
|
||||
|
||||
WHEN OTHER
|
||||
* *> Handle invalid thing...
|
||||
END-EVALUATE
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
PROGRAM-ID. Perform-Example.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
Main.
|
||||
PERFORM Moo
|
||||
PERFORM Display-Stuff
|
||||
PERFORM Boo THRU Moo
|
||||
|
||||
GOBACK
|
||||
.
|
||||
|
||||
Display-Stuff SECTION.
|
||||
Foo.
|
||||
DISPLAY "Foo " WITH NO ADVANCING
|
||||
.
|
||||
|
||||
Boo.
|
||||
DISPLAY "Boo " WITH NO ADVANCING
|
||||
.
|
||||
|
||||
Moo.
|
||||
DISPLAY "Moo"
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue