Error whil executing userdefined function in DS

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
baglasumit21
Participant
Posts: 132
Joined: Wed Mar 01, 2006 11:12 pm
Location: Pune

Error whil executing userdefined function in DS

Post by baglasumit21 »

I am trying to execute a user defind function in DS through query as given below. When I click on view data I am able to see it but when I execute tha job it is aborting by giving message as invalid character.

My query is
Select User_defN_Func(1) from Dual;


Please let me know the solution to this
SMB
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: Error whil executing userdefined function in DS

Post by ogmios »

Forget doing that... you're trying to mix oracle and DataStage syntax. It won't work.
In theory there's no difference between theory and practice. In practice there is.
baglasumit21
Participant
Posts: 132
Joined: Wed Mar 01, 2006 11:12 pm
Location: Pune

Re: Error whil executing userdefined function in DS

Post by baglasumit21 »

ogmios wrote:Forget doing that... you're trying to mix oracle and DataStage syntax. It won't work.
It worked. It was my mistake. I gave a ; at the end of the query. Thats why it was giving an error as invalid character. Now its working fine.

Thnx...
SMB
baglasumit21
Participant
Posts: 132
Joined: Wed Mar 01, 2006 11:12 pm
Location: Pune

Re: Error whil executing userdefined function in DS

Post by baglasumit21 »

ogmios wrote:Forget doing that... you're trying to mix oracle and DataStage syntax. It won't work.
It worked. It was my mistake. I gave a ; at the end of the query. Thats why it was giving an error as invalid character. Now its working fine.

Thnx...
SMB
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly - two things will typically generate that 'invalid character' error in Oracle: a semi-colon or untranslated job parameters.
-craig

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