sysdate in the job

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
arshi
Participant
Posts: 50
Joined: Wed Apr 18, 2007 5:12 am

sysdate in the job

Post by arshi »

Hi,

How to get the system time (with time stamp) for all the records when the job started.I need to populate this to target column with data type as DATE.

Any one have the solution please provide.

Regards,
Arshi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

@DATE and @TIME will return the internal format for the date/time when the process was started, DATE() and TIME() will return the date/time of when the function was called.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I built a routine to leverage the former and call it in the Initial Value of a stage variable. That sets it once and then I can apply it to all records in the load.
-craig

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