Primes programs specifications: Difference between revisions

From Webhuis wiki
Jump to navigation Jump to search
(Created page with " ```mediawiki = pgcobol Prime Numbers Application Documentation = This documentation provides a comprehensive overview of the prime numbers application developed using GnuCOBOL on Linux with PostgreSQL as the database backend. Below you will find links to various sections of the documentation. == Quick Links == * Technology Stack * Component Architecture * Business Requirements (BR) * Database Objects * [[Output File Specification]...")
 
No edit summary
 
Line 1: Line 1:
= The Cobol Primes program =

This is a reverse generated program specification.
```mediawiki
# [[Business requirements]]
= pgcobol Prime Numbers Application Documentation =
# [[Technical specifications]]

# [[Data dictionary]]
This documentation provides a comprehensive overview of the prime numbers application developed using GnuCOBOL on Linux with PostgreSQL as the database backend. Below you will find links to various sections of the documentation.
# [[Flow diagrams]]

# [[Program Logic]]
== Quick Links ==
* [[Technology Stack]]
# [[Business rules]]
* [[Component Architecture]]
# [[IO behaviour]]
# [[Control flow]]
* [[Business Requirements|Business Requirements (BR)]]
* [[Database Objects]]
* [[Output File Specification]]

== Technology Stack ==
The application utilizes the following technologies:

{| class="wikitable"
! Component !! Technology
|-
| Runtime !! GnuCOBOL 4.0, Linux
|-
| SQL pre-processor !! GixSQL (translates EXEC SQL … END-EXEC to GIXSQLExec calls)
|-
| Database server !! PostgreSQL 11.22, localhost:5432
|-
| Database schema !! primes
|}

[[Technology Stack|More details]]

== Component Architecture ==
The application consists of the following components:

<pre>┌─────────────────────────────────────────────────────┐</pre>
[[Component Architecture|More details]]

== Business Requirements ==
The system is designed to meet the following business requirements:

=== BR-01: Prime Number Generation ===
The system shall compute all prime numbers from 3 up to 999,999,999 using a trial-division algorithm and store each confirmed prime in the database.

=== BR-02: Prime Number Reporting ===
The system shall produce a formatted printed report listing all primes currently stored in the database.

[[Business Requirements|More details]]

== Database Objects ==
The application interacts with the following database objects:

{| class="wikitable"
! Object !! Type !! Schema !! Owner !! Definition
|-
| primes !! Schema !! — !! primes_user !! Container schema
|-
| asc_ident !! Sequence !! primes !! primes_user !! INTEGER, START 1, INCREMENT 1
|-
| primes !! Table !! primes !! primes_user !! See below
|}

[[Database Objects|More details]]

== Output File Specification ==
The output report is generated in the following format:

{| class="wikitable"
! Property !! Value
|-
| Filename !! primes.prt
|-
| Organisation !! Line-sequential
|-
| Record length !! 132 characters
|}

[[Output File Specification|More details]]

== Constraints ==
The application operates under the following constraints:

{| class="wikitable"
<hr/>
<hr/>
Terug naar: [[Cobol and PostgreSQL]]
Terug naar: [[Cobol and PostgreSQL]]

Latest revision as of 16:38, 25 March 2026

The Cobol Primes program[edit]

This is a reverse generated program specification.

  1. Business requirements
  2. Technical specifications
  3. Data dictionary
  4. Flow diagrams
  5. Program Logic
  6. Business rules
  7. IO behaviour
  8. Control flow

Terug naar: Cobol and PostgreSQL