Editing
Flow-Diagrams
(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. Top-Level Application Flow == '''Program:''' <code>primesmain.cbl</code><br /> '''What it shows:''' How <code>primesmain</code> reads the command-line argument, initialises the UI layer, routes to the correct processing path, and shuts down cleanly. <blockquote>β οΈ The <code>generate</code> branch calls <code>r92-generate-primes</code> but the PERFORM inside that paragraph that drives the sieve is commented out. See [[Technical-Specification#7-known-technical-issues|Technical Specification β Defect T1]]. </blockquote> <pre class="mermaid">flowchart TD A([START]) --> B[ACCEPT commandline-args\nFROM COMMAND-LINE] B --> C[MOVE commandline-args TO methods\nMOVE 'primesmain' TO program-name] C --> D[r90-start-session\nMOVE 'start' TO ui-methods\nCALL primesui USING primes-ui] D --> E{ui-method-ok?} E -->|No| F[DISPLAY emergency msg\nUPON scherm\nSTOP RUN] E -->|Yes| G[LOG 'UI initialisation succeeded.'\nLOG commandline-args] G --> H{EVALUATE\ncommandline-args} H -->|'report'| I[LOG 'Primes report generation starts.'\nMOVE 'report' TO methods] I --> J[r92-generate-primes\nCALL primesgen USING primes-session] H -->|'generate'| K[LOG 'Primes generation starts.'\nMOVE 'generate' TO methods] K --> L["β οΈ r92-generate-primes\n[PERFORM commented out in source]"] H -->|other| M[LOG 'Bad parameter'\nCALL primesui 'stop'\nSTOP RUN] J --> N[LOG 'Primes run complete, program stops.'] L --> N N --> O[r99-stop-session\nMOVE 'stop' TO ui-methods\nCALL primesui USING primes-ui] O --> P([STOP RUN])</pre> '''Key paragraphs:''' {| !width="50%"| Paragraph !width="50%"| Action |- | <code>r90-start-session</code> | Opens <code>primes.prt</code>; hard-stops if open fails |- | <code>r92-generate-primes</code> | Single CALL to primesgen; passes <code>primes-session</code> by reference |- | <code>r99-stop-session</code> | Flushes print buffer and closes <code>primes.prt</code> |} ----- <span id="primesgen-dispatch-flow"></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