Primes programs specifications
```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
Technology Stack
The application utilizes the following technologies:
| 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 |
Component Architecture
The application consists of the following components:
┌─────────────────────────────────────────────────────┐
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.
Database Objects
The application interacts with the following database objects:
| 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 |
Output File Specification
The output report is generated in the following format:
| Property | Value |
|---|---|
| Filename !! primes.prt | |
| Organisation !! Line-sequential | |
| Record length !! 132 characters |
Constraints
The application operates under the following constraints:
Terug naar: Cobol and PostgreSQL