mkk157
Active User
Joined: 17 May 2006 Posts: 310
|
|
|
|
COBOL does not have date/time data types so we declare them in AlphaNumeric Datatype like X(n). But In SQL we have date/time Datatypes.
By using the Insert or Update statement we can store DATE / TIME value from a COBOL program.
EXEC SQL
insert into emp(:ws-eno,:ws-ename,:ws-doj,:ws-sal)
END-EXEC.
Like this we can store DATE / TIME values from COBOL program to DB2.
If any please correct me. |
|