Editing
Data-Dictionary
(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.6 SQLCA β SQL Communications Area === <blockquote>'''Source file:''' <code>SQLCA.cpy</code><br /> '''Included by:''' <code>primes.cbl</code> via <code>EXEC SQL INCLUDE SQLCA END-EXEC</code><br /> '''Purpose:''' Standard GixSQL communications area. Updated after every SQL statement. </blockquote> {| !width="20%"| Level !width="20%"| Name !width="20%"| PIC !width="20%"| Usage !width="20%"| Description |- | 01 | <code>SQLCA</code> | β | β | SQL communications area |- | 05 | <code>SQLCAID</code> | <code>X(8)</code> | DISPLAY | SQLCA identifier string |- | 05 | <code>SQLCABC</code> | <code>S9(9)</code> | COMP-5 | Byte length of SQLCA structure |- | 05 | <code>SQLCODE</code> | <code>S9(9)</code> | COMP-5 | '''SQL return code:''' 0=success Β· negative=error Β· +100=not found |- | 05 | <code>SQLERRM</code> | β | β | Error message group |- | 49 | <code>SQLERRML</code> | <code>S9(4)</code> | COMP-5 | Length of error message text |- | 49 | <code>SQLERRMC</code> | <code>X(70)</code> | DISPLAY | Error message text from the database engine |- | 05 | <code>SQLERRP</code> | <code>X(8)</code> | DISPLAY | Error procedure name (not used in this application) |- | 05 | <code>SQLERRD</code> | <code>S9(9)</code> OCCURS 6 | COMP-5 | Diagnostic array; <code>SQLERRD(3)</code> = number of rows processed |- | 05 | <code>SQLWARN</code> | β | β | Warning flags group (not used in this application) |- | 05 | <code>SQLSTATE</code> | <code>X(5)</code> | DISPLAY | ISO/ANSI SQL state code (5-char string) |} '''SQLCODE reference (PostgreSQL / GixSQL):''' {| ! Value ! Meaning |- | 0 | Statement succeeded |- | +100 | No rows found (SELECT returned empty, cursor exhausted) |- | negative | Database error β see <code>SQLERRMC</code> for description |} ----- <span id="working-storage-variables"></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