Does DataStage have an internal timestamp format?
Posted: Sun Feb 22, 2009 9:49 pm
Hi,
FWIW, I did read the doc and searched the forum before posting. If the answer is in here I missed it...
Does DS have an internal timestamp (or what SAS calls a datetime) format?
IOW, if (straight from the doc):
X = Iconv("1997 5 27", "D YMD") X = 10740
and
X = Iconv("02:46:40", "MTS") X = 10000
then could I do (made up syntax and results):
X = Iconv("1997-05-27 02:46:40", "DT YMD MTS") X = 123456789
where X is say the number of seconds since 31Dec1967?
I've looked at some of Ray's Date routines, and it seems that timestamps are always handled as datepart and timepart separately, with no internal representation of a timestamp value.
If there is an internal timestamp format, are there various oconv patterns to reformat the internal representation for output?
Thanks,
Scott
FWIW, I did read the doc and searched the forum before posting. If the answer is in here I missed it...
Does DS have an internal timestamp (or what SAS calls a datetime) format?
IOW, if (straight from the doc):
X = Iconv("1997 5 27", "D YMD") X = 10740
and
X = Iconv("02:46:40", "MTS") X = 10000
then could I do (made up syntax and results):
X = Iconv("1997-05-27 02:46:40", "DT YMD MTS") X = 123456789
where X is say the number of seconds since 31Dec1967?
I've looked at some of Ray's Date routines, and it seems that timestamps are always handled as datepart and timepart separately, with no internal representation of a timestamp value.
If there is an internal timestamp format, are there various oconv patterns to reformat the internal representation for output?
Thanks,
Scott