Editing
Primesmain.cbl
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!
This is the compplete source code of the primesmain Cobol program. <pre> identification division. program-id. primesmain. environment division. configuration section. source-computer. linux-laptop. object-computer. linux-laptop. special-names. console is scherm. data division. working-storage section. 01 filler pic x(32) value "Start WS primesmain". 01 commandline-args pic x(32). 88 execute-generate value "generate". 88 execute-report value "report". copy primes-session. copy primes-ui. procedure division. accept commandline-args from command-line. move commandline-args to methods. move 'primesmain' to program-name. perform r90-start-session. evaluate true when report-primes move 'log-message' to ui-methods move 'Primes report generation starts.' to program-message call "primesui" using primes-ui move "report" to methods perform r92-generate-primes when generate-primes move 'log-message' to ui-methods move 'Primes generation starts.' to process-message call "primesui" using primes-ui move 'generate' to methods * perform r92-generate-primes when other move 'log-message' to ui-methods move 'Bad parameter, program initialisation failed.' to program-message call "primesui" using primes-ui move 'stop' to ui-methods perform r99-stop-session stop run end-evaluate. move 'log-message' to ui-methods. move 'Primes run complete, program stops.' to program-message. call "primesui" using primes-ui. move 'stop' to methods. perform r99-stop-session. stop run. r90-start-session. move 'start-session' to program-paragraph. move 'start' to ui-methods. call "primesui" using primes-ui. if ui-method-ok then move 'log-message' to ui-methods move 'UI initialisation succeeded.' to program-message call "primesui" using primes-ui else display "Emergency console message program stops." upon scherm stop run. move 'log-message' to ui-methods. move commandline-args to program-message. call "primesui" using primes-ui. r92-generate-primes. call "primesgen" using primes-session. r99-stop-session. move 'stop' to ui-methods. call "primesui" using primes-ui. </pre> <hr/> Terug naar: [[primes]]
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