Editing
Control flow
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 4. primes (DAL) β Paragraph Map == <pre>PROCEDURE DIVISION USING primes-dal β βββ EVALUATE TRUE on dal-methods WHEN next-prime β PERFORM r80-get-next-prime βββββββΊ r80-get-next-prime β β PERFORM s02-fetch βββΊ s02-fetch β β β EXEC SQL FETCH β β βββ return β βββ return WHEN next-divider β PERFORM r81-get-next-divider βββββΊ r81-get-next-divider β β ADD 1 TO old-ident β new-ident β β EXEC SQL SELECT prime WHERE ident=new-ident β β MOVE new-ident TO old-ident β βββ return WHEN write-prime β PERFORM r83-write-prime βββββββββββΊ r83-write-prime β β EXEC SQL INSERT β βββ return WHEN db-connect β PERFORM s00-connect βββββββββββββββΊ s00-connect β β EXEC SQL CONNECT β βββ return WHEN db-cursor β PERFORM s01-cursor ββββββββββββββββΊ s01-cursor β β EXEC SQL START TRANSACTION β β EXEC SQL OPEN primescursor β βββ return WHEN db-disconnect β PERFORM s99-disconnect ββββββββββββΊ s99-disconnect β β EXEC SQL CONNECT RESET β βββ return WHEN OTHER β dal-result = 1 β βββ EXIT PROGRAM</pre> '''No loops''' in primes.cbl. Each invocation handles exactly one SQL operation and returns. ----- <span id="primesui-paragraph-map"></span>
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information