Editing
Data dictionary
(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. Copybook: primes-dal.cpy == '''Control block for the DAL (business-logic β data-access) tier.''' {| !width="20%"| Name !width="20%"| Level !width="20%"| Picture !width="20%"| Usage !width="20%"| Description |- | <code>primes-dal</code> | 01 | β | β | Root of DAL control block; passed as linkage to primes |- | <code>dal-methods</code> | 03 | X(32) | DISPLAY | Operation verb set by caller |- | β <code>next-prime</code> | 88 | β | β | VALUE βnext-primeβ β fetch next row from cursor |- | β <code>next-divider</code> | 88 | β | β | VALUE βnext-dividerβ β select divider by ident |- | β <code>write-prime</code> | 88 | β | β | VALUE βwriteβ β insert prime into table |- | β <code>db-cursor</code> | 88 | β | β | VALUE βcursorβ β start transaction and open cursor |- | β <code>db-connect</code> | 88 | β | β | VALUE βconnectβ β connect to PostgreSQL |- | β <code>db-disconnect</code> | 88 | β | β | VALUE βdisconnectβ β disconnect from PostgreSQL |- | β <code>invalid-method</code> | 88 | β | β | VALUE βbadβ β sentinel for bad dispatch |- | <code>primes-data</code> | 03 | β | β | One-row data payload |- | <code>primes-sequence</code> | 05 | 9(9) | DISPLAY | Sequence / ident of the current prime row |- | <code>prime-number</code> | 05 | 9(9) | DISPLAY | Value of the current prime |- | <code>dal-result</code> | 03 | 9(2) | DISPLAY | Result code written back by primes; initial value ZERO |- | β <code>dal-method-ok</code> | 88 | β | β | VALUE 0 β operation succeeded |- | β <code>dal-method-nok</code> | 88 | β | β | VALUE 1 β operation failed |- | β <code>dal-method-eof</code> | 88 | β | β | VALUE 99 β cursor exhausted |} ----- <span id="copybook-primes-ui.cpy"></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