Focal Point
[SOLVED] Data Format for Timestamp In Where Statement

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/159106472

October 23, 2009, 07:15 AM
ktnj
[SOLVED] Data Format for Timestamp In Where Statement
Hello to all,

I would like to join two mainframe DB2 tables and use a Where statement to select rows based on a timestamp (HYYMDm) value.

For example:
Join fielda in tablea to fieldb in tableb WHERE TIMESTAMP GT XXXXX;

XXXXX is the selection value I will provide in my focexec.

My question is: What Data Format Do I Use For XXXXX And How Do I Convert A Alpha Value To That Format?

Thanks to All!
Ken

Z/OS FOCUS 7.2.5

This message has been edited. Last edited by: Kerry,


October 23, 2009, 08:22 AM
jimster06
Ken-
Research the followwing construct
WHERE TIMESTAMP GT DT ( date/time variable)

Note the DT


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
October 23, 2009, 09:53 AM
ktnj
Thank you. We will use DT().
Problem resolved.