date format issue

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
seshikumar
Participant
Posts: 44
Joined: Fri Mar 16, 2007 5:51 am

date format issue

Post by seshikumar »

i am getting 2 source colums JOB_EFFECTIVE_DATE,EMP_STATUS_EFFECTIVE_DATE(timestamp) from sequential file.
format like 2007-08-17 00:00:00 so i need to compare the dates

if JOB_EFFECTIVE_DATE >=EMP_STATUS_EFFECTIVE_DATE then JOB_EFFECTIVE_DATE else EMP_STATUS_EFFECTIVE_DATE

my target is oracle timestamp format like YYYY-MM-DD HH24:MI:SS so i need to store this value my oracle target table

anyone can help me
seshu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What help do you need? That format *is* 'Oracle format' already and dates like that can be compared directly with no conversions needed.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply