Editing
Technical-Specification
(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!
=== 3.3 primesgen β Report Path === <pre>PROCEDURE r90-start-primes-report CALL primes("connect") IF NOT dal-method-ok THEN LOG "Database initialisation failed." session-result = 1 GOTO r99-close-primes CALL primes("cursor") β START TRANSACTION; OPEN primescursor IF NOT dal-method-ok THEN LOG "Cursor initialisation failed." session-result = 1 GOTO r99-close-primes PERFORM r94-fetch β position cursor on first row IF dal-method-ok THEN LOG "Fetch first row ok." MOVE 0 TO dal-result ELSE LOG "Fetch first row nok." MOVE 1 TO dal-result REPORT LOOP β PERFORM r86-report-primes UNTIL session-method-eof PROCEDURE r86-report-primes MOVE "write" TO ui-methods MOVE primes-data TO u-primes β primes-sequence + prime-number β u-sequence + u-number CALL primesui USING primes-ui β write to 6-column print buffer PERFORM r94-fetch β advance cursor PROCEDURE r94-fetch MOVE "next-prime" TO dal-methods CALL primes USING primes-dal β FETCH primescursor INTO :primes-row IF NOT dal-method-ok THEN LOG "Fetch failed." session-result = 1 β β sets nok (1), not eof (9) β loop may not terminate β See Defect T7 in defect register END LOOP CALL primes("disconnect") EXIT PROGRAM</pre> ----- <span id="primes-dal"></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