- 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 CHAR, DATE, TIME and TIMESTAMP?
The DATE, TIME and TIMESTAMP DB2 data types occupy 4, 3 and 10 bytes respectively. The memory occupied by the CHAR data types is occupied as per the size given. Below table shows the equivalent COBOL data types for CHAR, DATE, TIME and TIMESTAMP.
DB2 data type | DB2 Bytes | COBOL equivalent | COBOL bytes |
---|---|---|---|
CHAR(z) | z | PIC X(z) | z |
DATE | 4 | PIC X(10) | 10 |
TIME | 3 | PIC X(8) | 8 |
TIMESTAMP | 10 | PIC X(26) | 26 |
Advertisements
To Continue Learning Please Login
Login with Google