How can you display the current date & current time ?

Answer Posted / chandrika

Exec sql
set :ws-current-date to current date
End exec

display 'current date' ws-current-date.



Exec sql
set :ws-current-time to current time
End exec

display 'current time' ws-current-time.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bind plan?

807


Mention the location where the output received from explain statement is stored.

861


What happens in bind step in a db2 program?

736


What is cascading rollback?

863


Can one database have multiple instances?

805


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

850


What is commit in db2?

811


Define db2.

868


How do I create a view in db2?

799


How do I optimize a query in db2?

834


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3336


How to check table size in db2 sap?

791


What is the difference between drop table and delete table?

808


What is the difference between spufi and qmf?

825


Explain the contention situations caused by locks?

810