- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are COBOL equivalents of DB2 data types SMALLINT, INTEGER and DECIMAL?
The DCLGEN utility converts the table column from DB2 data types to host variables having equivalent COBOL data types. The SMALLINT and INTEGER is converted to COBOL signed numeric data types and DECIMAL is converted to COBOL signed numeric with implied decimal. Below are the equivalent COBOL data types for SMALLINT, INTEGER and DECIMAL.
DB2 data type | DB2 Bytes | COBOL equivalent | COBOL bytes |
---|---|---|---|
SMALLINT | 2 | PIC S9(4) COMP | 2 |
INTEGER | 4 | PIC S9(9) COMP | 4 |
DECIMAL(x,y) | INT(x/2) | PIC S9(x-y)V9(y) | INT(((p+q)/2) +1) |
Advertisements