How to Convert data from excel to XML

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
vsanghvi
Participant
Posts: 22
Joined: Wed Mar 09, 2005 4:47 pm

How to Convert data from excel to XML

Post by vsanghvi »

How can i convert data from Excel sheet (.csv file) to XML output? Has anybody done this before? If so can you share details on what stages you used and how you specified your XML tags etc. I appreciate your help.

Thanks
lshort
Premium Member
Premium Member
Posts: 139
Joined: Tue Oct 29, 2002 11:40 am
Location: Toronto

Post by lshort »

This is very well documented in the "XML Pack Designer Guide" - Chapter 4 - XML Output. Check your Datastage documents directory.
8)
Lance Short
"infinite diversity in infinite combinations"
***
"The absence of evidence is not evidence of absence."
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

The problem that you're going to have is reading the Excel Spreadsheet in UNIX. DataStage does not ship with an ODBC driver to read Excel in Unix. There are some other ways to do that, but not within DataStage.

You might check out this thread:
viewtopic.php?t=85601&highlight=read+ex ... sheet+unix

for more information.

Good luck,
Tony
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

I assume a ".so" file would be needed to read an excel in UNIX.


Regards
Sreeni
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can gather the csv file and prepare the xml using xml writer.
vsanghvi
Participant
Posts: 22
Joined: Wed Mar 09, 2005 4:47 pm

Thanks

Post by vsanghvi »

Thanks Guys for the replies. I have .csv file only so i can put it out on Unix and can read it in my source file as an sequential file. However it is going to be a problem if that has comma or semi colen as a data. I am just going to seperate by tab. I will check the document chapter 4 for the details on XML. Let's see how far i can go.

Thanks again and share if you have other thoughts.
Post Reply