XLSHEET AS A SOURCEDATA

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
Poornagirija
Participant
Posts: 65
Joined: Fri Nov 19, 2004 12:00 am

XLSHEET AS A SOURCEDATA

Post by Poornagirija »

HI folks, :D
Is there any option available in DataStage to get the data directly from xl sheet. :?:
currently we are manually converting the xlsheet into csv format and using sequential stage we are achiving our results.

We want to overcome this manual interuption.

Any suggestions please.


Many thanks in advance.

with regards,
poornagirija.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Search works. And it's Excel.
Last edited by chulett on Wed Dec 21, 2005 8:29 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Chulet,

I guess we could not reach the post :cry:

Hi Poornagirija,

Shouldn't this post be in Server Forum :wink: .

-Kumar
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi Poornagirija,

Its been a long time since I did this but I remember using the ODBC stage and had the Include System Tables option enabled after which I was able to access each worksheet as a seperate table.

HTH
--Rich
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Post by satheesh_color »

You can connect to an excel either through an ODBC connection or an OLEDB connection.

ODBC Stage -Create a system DSN using Microsoft Excel Driver (*.xls)

------------------------------
Satheesh
Success is a journey not a Destination.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry - I edited the link at the last minute and hacked off one too many bits. :cry:

It's fixed now!
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

chulett wrote:Sorry - I edited the link at the last minute and hacked off one too many bits. :cry:

It's fixed now!
Are you sure you fixed it now.... it still asks for userid and password.

-Kumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hmmm... works fine for me. You could always try hovering over the link, then take the Topic number and plug it straight into the address bar yourself. See if that works more better.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Direct ckick works now :D

-Kumar
Poornagirija
Participant
Posts: 65
Joined: Fri Nov 19, 2004 12:00 am

Post by Poornagirija »

HI Friends,

Thanks a lot . :)

I have started working on that with lots of enery from your words. :)

Sorry for posted the topic in PX.

with regards,
Poornagirija.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Poorna,

start off with something simple, like an Excel sheet with only one column and see if you can get that to work correctly in view data. Then you have an idea of how it functions and can analyze your problem. Since Excel allows unstructured data that is often the source of errors. In your case you posted an odd thing - the double quotes between the column names. Also, are you doing a specific SELECT? You can also test these connections using the microsoft office tool "MSQUERY" to see if you can narrow down the cause.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Click on the GetSQLInfo button (stage properties) to ensure that your query is constructed with the correct quote and delimiter characters.

When you're building up to it, as Arnd suggested, test with a column name that has no spaces in it before introducing a column name that does have spaces. It does seem to be complaining about a column name of the form "xxx yyy".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Poornagirija
Participant
Posts: 65
Joined: Fri Nov 19, 2004 12:00 am

Post by Poornagirija »

HI Friends,
Thanks for your support. :D

I did simple excercise as you suggested.Now im able to view the data.
I got that error message becz of that column name with spaces.

My column name is like client_stg$.Source table name.I have used the option GetSQLInfo button (stage properties) as Ray suggested.
But i got the same error message.

How to view those columns(column name with space)?

Thanks and regards,
Poornagirija
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Poornagirija wrote:How to view those columns(column name with space)?
It's not possible. This is not a fault in DataStage; it's a limitation of the ODBC driver for Excel.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Poornagirija
Participant
Posts: 65
Joined: Fri Nov 19, 2004 12:00 am

Post by Poornagirija »

HI Ray,

Thanks for your information.

with regards,
Poornagirija
Post Reply