date comparision

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
prasanna2100
Participant
Posts: 36
Joined: Mon Mar 27, 2006 12:23 am
Location: Chennai

date comparision

Post by prasanna2100 »

guys i need to extract in the input stage, a date field,decimal field,and a longVarchar field.with a where condition as date field = (a prompt of string datatype for system date)
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

What's your input stage? If it's Oracle, then add a WHERE clause to the SQL to include a job parameter date value.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
prasanna2100
Participant
Posts: 36
Joined: Mon Mar 27, 2006 12:23 am
Location: Chennai

Post by prasanna2100 »

yes iam having a oracle i/p stage and where clause shd be comparing a date .how should i specify my job parameter (which formate) do i need to convert both the fields to some format?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Any format you like - include a TO_DATE() function as part of your WHERE clause, with an appropriate date picture for your chosen format.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For 'system date' use sysdate - no parameter required.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Re: date comparision

Post by Sreenivasulu »

HI..

Please search the forum before posting the question. This has been answered many times before

Regards
Sreenivasulu
prasanna2100 wrote:guys i need to extract in the input stage, a date field,decimal field,and a longVarchar field.with a where condition as date field = (a prompt of string datatype for system date)
Post Reply