Unable to open csv file format

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

vijayindukuri
Participant
Posts: 66
Joined: Fri Nov 25, 2005 7:55 am

Post by vijayindukuri »

Loveojha:
That won't convert it to csv, go to your xls editor, do a save as and save it as a csv file format.
You mean to say that every time we get excel input file we must do a save as in csv format. Can it be done in any other way any suggestions.
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

You mean to say that every time we get excel input file we must do a save as in csv format. Can it be done in any other way any suggestions.
Yes exactly.

The other thing could be using the excel file through a DSN created of the workbook, using microsoft's drivers.
Success consists of getting up just one more time than you fall.
vijayindukuri
Participant
Posts: 66
Joined: Fri Nov 25, 2005 7:55 am

Post by vijayindukuri »

Thankyou all,
Who had spent their time and energy.
Any way that was a great learning.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

vijayindukuri wrote:After renaming the file i tried to view the file by double cliking that,I was able to see that data in csv format.
Just for one last note - no, you didn't. Double-clicking on the renamed csv file simply launched Excel and you were looking at the spreadsheet. Again. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

There are softwares present out-there that can do the conversion for you. Renaming the file doesnt change its structure internally. As your OS is windows, you can access the workbooks by creating an odbc connection.
Regards,
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
dsnovice
Participant
Posts: 38
Joined: Thu Jul 22, 2004 11:56 pm
Location: Mclean, VA
Contact:

Post by dsnovice »

If the incoming excel file has only one sheet, no extra blank sheets and there are no special formatting. Then, you might be able to open it using sql file stage with delimiter as 009 (tab). Some times you would have to specify the file format as Dos if your ftp process doesnt take care of converting CRLF ---> Lf.

thank you,
a novice
rwierdsm
Premium Member
Premium Member
Posts: 209
Joined: Fri Jan 09, 2004 1:14 pm
Location: Toronto, Canada
Contact:

Post by rwierdsm »

Vijayindukuri,

That will not work. You have to open your xls in Excel and 'Save As' CSV (MS DOS). Renaming the file leaves it in Excel format, as you have seen, unreadable by a text editor.

Rob
Rob Wierdsma
Toronto, Canada
bartonbishop.com
vivek
Charter Member
Charter Member
Posts: 17
Joined: Wed Feb 22, 2006 1:38 am
Location: USA

Post by vivek »

Vijay indukuri,
I had the same problem while having source system as MS Access. What I did was i wrote an update statement to eliminate the newline carriage
UPDATE OPP_12JUNE SET BAMNOTES = replace(OPP_12JUNE.BAMNOTES,Chr$(10),'');
then i have exported to a location(say to the desktop for instance) then made it tab delimited and set other delimitres as none.
if am not wrong same should work for you. Reason is that even though you made the file tab delimited, it may still have some "Enter"(new line carriage) characters present. so first update the table the export as a tab delimited file.
Post Reply