.DBF to .CSV conversion

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Akilasaminathan1
Participant
Posts: 3
Joined: Mon Jul 08, 2013 11:29 pm

.DBF to .CSV conversion

Post by Akilasaminathan1 »

.DBF files are the source for DataStage and i hvae seen a datasource type as dbase in ODBC connectore stage but i don't know how to read those .DBF file using ODBC connecter stage. I dont want to use any external converter to convert .DBF to .CSV format. DBASE is not a source, the .DBF fiels from DBASe is source.

How can we read .DBF files using DataStage? or
Can we convert .DBF files into .CSV file format using any script?

Anyone please help me on this.....
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: .DBF to .CSV conversion

Post by chulett »

Akilasaminathan1 wrote:DBASE is not a source, the .DBF files from DBASE is source.
Same thing. The file is the database. Use the ODBC Connector stage after creating an ODBC data source name using the dBase drivers.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Akilasaminathan1
Participant
Posts: 3
Joined: Mon Jul 08, 2013 11:29 pm

Re: .DBF to .CSV conversion

Post by Akilasaminathan1 »

Do we have any other specific script to convert as .CSV file format?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

A non-DataStage solution? Google for "convert dbf to csv" to find alternatives.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Akilasaminathan1
Participant
Posts: 3
Joined: Mon Jul 08, 2013 11:29 pm

Post by Akilasaminathan1 »

Thanks.
I can able to read .DBF files using ODBC connector stage.
But i am not able to create metadata for .DBf files.
How to create metadata(table definition) for .DBF files?

Anyone please help me on this
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Let's start with what you've tried and what issue(s) you are having.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

dBase metadata are usually only "documented", which ultimately means that you have to retrieve them manually either from a document or from program code that accesses the data.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
MrBlack
Participant
Posts: 125
Joined: Wed Aug 08, 2012 8:57 am

Post by MrBlack »

I use the ODBC stage to read DBFs. Be sure though, sometimes I need to make sure that the CDX and FPT files of the databse are in the same directory of the DBF file that the ODBC connection is pointed to.
Post Reply