Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
ADABAS
(section)
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!
===Language features=== Natural works not only with Adabas files, but also supports [[Oracle Corporation|Oracle]], [[IBM Db2|DB2]], and others. <!-- Db2 Discombobulated by 2manyCooks --> Sample code: <syntaxhighlight lang="cobolfree"> DEFINE DATA LOCAL 01 EMPLOYEES VIEW OF EMPLOYEES 02 SALARY (1) END-DEFINE READ EMPLOYEES BY NAME AT END OF DATA DISPLAY MIN (EMPLOYEES.SALARY(1)) (EM=ZZZ,ZZZ,ZZ9) AVER(EMPLOYEES.SALARY(1)) (EM=ZZZ,ZZZ,ZZ9) MAX (EMPLOYEES.SALARY(1)) (EM=ZZZ,ZZZ,ZZ9) END-ENDDATA END-READ END </syntaxhighlight> Output: <pre> Page 1 18-08-22 16:42:22 ANNUAL ANNUAL ANNUAL SALARY SALARY SALARY ----------- ----------- ----------- 0 240,976 6,380,000 </pre> The language is [[Strong and weak typing|strongly-typed]], using explicit typing of variables, which may be one of: * Alphanumeric * Numeric [[Zoned decimal]] up to 27 total digits, of which a total of 7 may be to the right of decimal point * Packed Decimal,<ref>{{cite web|url=https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzasd/padecfo.htm|title = Packed-Decimal Format|website = [[IBM]]|date = June 2012}}</ref> same limits as "Numeric") * Integer (1, 2 or 4 bytes, ranging from -128 to 127 / -32,768 to 32,767 and -2,147,483,648 to 2,147,483,647) * Date * Time (which includes the date) * Logical (True or False) * Binary * Control variable paralleling CICS map attribute * Floating Point (4 or 8 bytes)
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)