User-Defined SQL Query file in DRS Stage

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
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

User-Defined SQL Query file in DRS Stage

Post by srinagesh »

Hi !

I am trying to read the data from DRS stage based on the query in a file.

I am trying to use the Query Type as "User-Defined SQL Query file"

But It doesnt prompt me anywhere for the name of the query file.

Can you please guide me as to where I should give the name of the query file?

Regards
Nagesh
Simplicity is the ultimate sophistication
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Put the fully qualified path to the file in the USER-DEFINED SQL text box.
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
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

Post by srinagesh »

Hi !

I have tried it now.. and i get the error (a big error)

Code: Select all

F0911_GSKE_DB2_FILTER_nagesh..F0911: [DataDirect][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]ILLEGAL SYMBOL /; VALID SYMBOLS ARE ( END GET SET CALL DROP FREE HOLD LOCK OPEN WITH ALTER BEGIN
F0911_GSKE_DB2_FILTER_nagesh..F0911: SQLExecDirect: Error executing statement '/users/d09/pcg99709/selectqry.sql'.  See following database message for details.
F0911_GSKE_DB2_FILTER_nagesh..F0911.DSLink1: DSP.Open GCI $DSP.Open error -100.
Looks like it doesnt like the / character in the file path :?: Any hints?

-Nagesh
Simplicity is the ultimate sophistication
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The Help button just says this:
User-defined SQL query file. Specifies that the data is extracted using the SQL query in the pathname of the designated file that exists on the server. Enter the pathname for this file instead of the text for the query. With this choice, you can edit the SQL statements.
For both DB2/UDB and ODBC it is a choice, and I know with Oracle this works but never tried with the other two options, one of which I assume you're using.

Maybe someone else has some experience?
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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is there a "following" database message in the log?
Have you made sure that the executing user has at least r-x permission to every directory in the path?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

Post by srinagesh »

Hi !

I have checked the permissions and I have tried executing the file in OCI stage (had similar table in oracle). It worked like a charm.

It doesnt work with DRS stage.

I did not understand..
Is there a "following" database message in the log?
Where do i check for such message?

-Nagesh
Simplicity is the ultimate sophistication
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then perhaps it be broke. Check with Support.
-craig

"You can never have too many knives" -- Logan Nine Fingers
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

Post by srinagesh »

:-) I had raised couple of tickets with support previously and I dont think I will be raising many more to them
Simplicity is the ultimate sophistication
Post Reply