Editing
IO behaviour
(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!
== 2. Console Output — scherm == <span id="definition"></span> === 2.1 Definition === <syntaxhighlight lang="cobol">SPECIAL-NAMES. CONSOLE IS scherm.</syntaxhighlight> All four programs declare <code>scherm</code> as the console special-name. <span id="structured-log-messages-via-primesui"></span> === 2.2 Structured Log Messages (via primesui) === <code>r98-message-ui</code> in primesui: <pre>DISPLAY process-message UPON scherm</pre> <code>process-message</code> is a 132-character group: <pre>program-name PIC X(20) e.g. "primesmain " program-paragraph PIC X(20) e.g. "r90-start-session " program-message PIC X(92) e.g. "UI initialisation succeeded. ..."</pre> Every caller populates <code>program-name</code>, optionally <code>program-paragraph</code>, and always <code>program-message</code> before calling <code>primesui "log-message"</code>. <span id="direct-display-statements-diagnostic-error"></span> === 2.3 Direct DISPLAY Statements (diagnostic / error) === Several paragraphs bypass primesui and write directly to <code>scherm</code>: {| !width="33%"| Location !width="33%"| Statement !width="33%"| Purpose |- | primesmain r90 | <code>DISPLAY "Emergency console message…" UPON scherm</code> | Hard abort if UI fails |- | primes r81 | <code>DISPLAY SQLCODE UPON scherm</code> | SQL error on next-divider |- | primes r81 | <code>DISPLAY "select new-divider nok" UPON scherm</code> | |- | primes r83 | <code>DISPLAY SQLCODE UPON scherm</code> | SQL error on insert |- | primes r83 | <code>DISPLAY "primes.cbl insert next prime nok…" UPON scherm</code> | |- | primes s00 | <code>DISPLAY "connect to database" UPON scherm</code> | Always shown on connect |- | primes s00 | <code>DISPLAY SQLCODE UPON scherm</code> | |- | primes s99 | <code>DISPLAY "s99 disconnect from database" UPON scherm</code> | Always shown on disconnect |- | primes s99 | <code>DISPLAY SQLCODE UPON scherm</code> | |- | primesui r90 | <code>DISPLAY primes-prt-status UPON scherm</code> | File open failure |- | primesui r99 | <code>DISPLAY primes-prt-status UPON scherm</code> | File close failure |} ----- <span id="database-io-primes.cbl-via-gixsql"></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