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!
=== 1.2 primes-dal === <blockquote>'''Source file:''' <code>primes-dal.cpy</code><br /> '''Included by:''' <code>primesgen.cbl</code> (WORKING-STORAGE, caller) Β· <code>primes.cbl</code> (LINKAGE SECTION, callee)<br /> '''Purpose:''' DAL-tier control block. primesgen sets <code>dal-methods</code> and reads back <code>dal-result</code> and <code>primes-data</code>. </blockquote> {| !width="16%"| Level !width="16%"| Name !width="16%"| PIC !width="16%"| Usage !width="16%"| Initial !width="16%"| Description |- | 01 | <code>primes-dal</code> | β | β | β | Root of DAL control block |- | 03 | <code>dal-methods</code> | <code>X(32)</code> | DISPLAY | β | Method dispatch verb |- | 88 | <code>next-prime</code> | β | β | <code>"next-prime"</code> | Fetch next row from open cursor |- | 88 | <code>next-divider</code> | β | β | <code>"next-divider"</code> | SELECT a prime by ident for use as trial divisor |- | 88 | <code>write-prime</code> | β | β | <code>"write"</code> | INSERT a confirmed prime into the table |- | 88 | <code>db-cursor</code> | β | β | <code>"cursor"</code> | START TRANSACTION and OPEN primescursor |- | 88 | <code>db-connect</code> | β | β | <code>"connect"</code> | Establish the PostgreSQL connection |- | 88 | <code>db-disconnect</code> | β | β | <code>"disconnect"</code> | Release the connection |- | 88 | <code>invalid-method</code> | β | β | <code>"bad"</code> | Sentinel for unrecognised verb |- | 03 | <code>primes-data</code> | β | β | β | Single-row data payload (one prime) |- | 05 | <code>primes-sequence</code> | <code>9(9)</code> | DISPLAY | β | Row identity (<code>ident</code>) of the fetched prime |- | 05 | <code>prime-number</code> | <code>9(9)</code> | DISPLAY | β | The prime value itself |- | 03 | <code>dal-result</code> | <code>9(2)</code> | DISPLAY | 0 | Outcome code written by primes |- | 88 | <code>dal-method-ok</code> | β | β | 0 | Operation succeeded |- | 88 | <code>dal-method-nok</code> | β | β | 1 | Operation failed |- | 88 | <code>dal-method-eof</code> | β | β | 99 | Cursor exhausted (no more rows) |} ----- <span id="primes-ui"></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