- 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 the COBOL host variable equivalent for various DB2 data types?
The host variables are used to transfer the data from DB2 to program and vice versa.For each DB2 table column we have a COBOL equivalent host variable defined. The host variables can be generated automatically using the DCLGEN utility or we can explicitly give the host variables in the working storage section of the COBOL-DB2 program.
The COBOL equivalent of various DB2 data types is mentioned in the table below.
DB2 data types | COBOL equivalent |
---|---|
SMALLINT - 2 bytes | PIC S9(4) COMP |
INTEGER - 4 bytes | PIC S9(9) COMP |
TIMESTAMP - 10 bytes | PIC X(26) |
CHAR - 5 bytes | PIC X(5) |
Advertisements