I have check condition with list of around 20 columns in AND condition which should check either null or 0 from a file.This is made as configurable,such as this condition is written to a file and it is passed as a parameter to the stage varaible of a job.Then checked as If this Paramter then N else Y.If N then i need to filter those records.
When i pass the entire expression in a stage varaible the records are filtered but when i pass via parameter i am receiving a warning called INVALID ARGUE VALUE and the expression is missing and no records are passed to filter link.
Kindly help.
Invali Argu Value -Missing Warning thrown
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard. The first thing to determine is precisely what values are being passed as parameters. Inspect the "job starting" event in the job log, and let us know what you see.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks Sir.
The entire expression given in the file is passed to the job parameter when the job triggered.
I have given in the file as e.g (three columns) ((Lnk_Zero_Position.A=0 Or Trim(NullToEmpty(Lnk_Zero_Position.A))='"") and (Lnk_Zero_Position.B=0 Or Trim(NullToEmpty(Lnk_Zero_Position.B))='"") and (Lnk_Zero_Position.C=0 Or Trim(NullToEmpty(Lnk_Zero_Position.C))='"") )
This i am reading as cat filename in execute command stage and passed as paramter to job.
So this expression is assigned to parameter when i check the job starting.
In Transformer i assigned this parameter to a stage variable of varchar 255 like If Zero_Pos=1 then 'N' else 'Y' but it is passing for all records as Y when i checked in Peek stage.
The incoming value may have empty string/0/sum numeric values.
Now i have a doubt whether that expression is executed but when i put the entrie expression in constraint it is working but not via parameter.
Reason behind paramterizng the constraints is currently we need to check the same for 24 columns ,later they may reduce or add the columns.So there should not be any code chnage often for this purpose.
Kindly help
The entire expression given in the file is passed to the job parameter when the job triggered.
I have given in the file as e.g (three columns) ((Lnk_Zero_Position.A=0 Or Trim(NullToEmpty(Lnk_Zero_Position.A))='"") and (Lnk_Zero_Position.B=0 Or Trim(NullToEmpty(Lnk_Zero_Position.B))='"") and (Lnk_Zero_Position.C=0 Or Trim(NullToEmpty(Lnk_Zero_Position.C))='"") )
This i am reading as cat filename in execute command stage and passed as paramter to job.
So this expression is assigned to parameter when i check the job starting.
In Transformer i assigned this parameter to a stage variable of varchar 255 like If Zero_Pos=1 then 'N' else 'Y' but it is passing for all records as Y when i checked in Peek stage.
The incoming value may have empty string/0/sum numeric values.
Now i have a doubt whether that expression is executed but when i put the entrie expression in constraint it is working but not via parameter.
Reason behind paramterizng the constraints is currently we need to check the same for 24 columns ,later they may reduce or add the columns.So there should not be any code chnage often for this purpose.
Kindly help
anitha
I tried through unix script but here issue is the filtering record should undergo lookup with another file to check if same Account is available if so shouldnt filter the same.
That's the reason i tried to implement this in Datastage.
Is there any otehr solution to handle this?
Kindly advise.
anitha
I wasn't sure off the top of my head what your alternative is here which is why I didn't include that in my reply. I know the topic has been discussed here but not sure what key words would turn them up for you. Already running late this morning so hopefully someone else can chime in here shortly...
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
