unknown argument error
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 103
- Joined: Wed Jul 06, 2005 12:29 am
unknown argument error
I am writing a query similar to the below
select ename from emp where #eno# is null
#eno# is a job parameter when I pass the value as '' I am able to view the data from the oracle stage but when I run the job it gives me the error unknown argument IS and job gets aborted.
This is the only error msg I am getting in director.
How to trace whats the problem is as the same query is working well in oracle & even in datastage view data.
select ename from emp where #eno# is null
#eno# is a job parameter when I pass the value as '' I am able to view the data from the oracle stage but when I run the job it gives me the error unknown argument IS and job gets aborted.
This is the only error msg I am getting in director.
How to trace whats the problem is as the same query is working well in oracle & even in datastage view data.
What stage? And we would need to see the actual query to help, not something 'similar' to it. In that same vein, please post the actual unedited error from the job's log. You've no idea how many of the wild gooses we've chased because people felt the need to obfuscate their problem by giving incomplete or 'something like this' examples.
Lastly, please confirm the parameter value - a string you leave empty, literally two single quotes, etc. What other values, if any, do you ever pass? The name of another field, for example? I'm wondering because using "where '' is null" is the same as leaving off the where clause entirely or doing something like "where 1=1"... you get all of the records.![Confused :?](./images/smilies/icon_confused.gif)
Lastly, please confirm the parameter value - a string you leave empty, literally two single quotes, etc. What other values, if any, do you ever pass? The name of another field, for example? I'm wondering because using "where '' is null" is the same as leaving off the where clause entirely or doing something like "where 1=1"... you get all of the records.
![Confused :?](./images/smilies/icon_confused.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 103
- Joined: Wed Jul 06, 2005 12:29 am
-
- Participant
- Posts: 86
- Joined: Wed Apr 02, 2008 2:32 am
- Location: Bangalore
-
- Participant
- Posts: 103
- Joined: Wed Jul 06, 2005 12:29 am