How to write to DML's in User-defined query.

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
Abhilasha
Participant
Posts: 9
Joined: Fri Aug 26, 2005 4:55 am

How to write to DML's in User-defined query.

Post by Abhilasha »

Hi,

I am trying to use following SQL's in the User Defined section of Informix stage:

UPDATE table1 SET update_user_id ='-5' ,update_type_cd = 'D' WHERE merch_num=? AND cso_cd=? AND plan_type_cd=?;;
DELETE FROM table2 WHERE merch_num=? AND cso_cd=? AND plan_type_cd=?;;

1st query (Update) is not working, bu the 2nd (Delete) is working fine.

I have looked in to the DS help, its given to use it in the above way only.

Can anyone please help me with this and give me the solution.

Thanks & Regards,
Abhilasha
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You get 1 query only.
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
Abhilasha
Participant
Posts: 9
Joined: Fri Aug 26, 2005 4:55 am

Re: How to write to DML's in User-defined query.

Post by Abhilasha »

Abhilasha wrote:Hi,

I am trying to use following SQL's in the User Defined section of Informix stage:

UPDATE table1 SET update_user_id ='-5' ,update_type_cd = 'D' WHERE merch_num=? AND cso_cd=? AND plan_type_cd=?;;
DELETE FROM table2 WHERE merch_num=? AND cso_cd=? AND plan_type_cd=?;;

1st query (Update) is not working, bu the 2nd (Delete) is working fine.

I have looked in to the DS help, its given to use it in the above way only.

Can anyone please help me with this and give me the solution.

Thanks & Regards,
Abhilasha
I want to know how both the queries will work in User-defined SQL.
Regards,
Abhilasha
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use two different links.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Abhilasha
Participant
Posts: 9
Joined: Fri Aug 26, 2005 4:55 am

Post by Abhilasha »

Is their any other way to do this. Can we do this using User Defined Query
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

No.
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
Abhilasha
Participant
Posts: 9
Joined: Fri Aug 26, 2005 4:55 am

Post by Abhilasha »

Thank u vey much.

Regards,
Abhilasha
Post Reply