value of date parameter in OCI stage

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
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

value of date parameter in OCI stage

Post by sachin1 »

i have a question like i will use a parameter (date parameter or string parameter) having a values like '31/01/2007' 'DD/MM/YYYY' FORMAT for my job, can i use this parameter in my OCI stage for comparision with columns containing date values.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure, just cast it TO_DATE using the proper matching mask:

Code: Select all

and X = TO_DATE('#YOUR_PARAM#','DD/MM/YYYY')
-craig

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