
COBOL-DB2 Program, how to get Current timestampe from DB2
Quote:
> Hi
> I have to write a DB2-COBOL program, in which i have to take DB2 timestamp
> Any body know how to get DB2 timestamp, and store in variable.
> Example will be highly appricaite
> Regards
> Samir
EXEC SQL
SET host-variable TO TIMESTAMP
END-EXEC
host variable is a 26 byte field CCYY-MM-DD HH:MM:SS:mmmmmm
Bob
--
<---------------------------------------------------------------------->
Bob Berman - West Hartford, CT
THE TRUE TERRORISTS IN AMERICA ARE
THE PEOPLE WHO DEMAND TO SEE THE STORE MANAGER !
<----+----+----+----+----+----+----+----+----+----+----+----+----+----+>