Page 1 of 1

.DBF to .CSV conversion

Posted: Mon Jul 08, 2013 11:44 pm
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.....

Re: .DBF to .CSV conversion

Posted: Tue Jul 09, 2013 12:08 am
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.

Re: .DBF to .CSV conversion

Posted: Tue Jul 09, 2013 1:45 am
by Akilasaminathan1
Do we have any other specific script to convert as .CSV file format?

Posted: Tue Jul 09, 2013 7:29 am
by chulett
A non-DataStage solution? Google for "convert dbf to csv" to find alternatives.

Posted: Thu Jul 11, 2013 5:42 am
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

Posted: Thu Jul 11, 2013 7:02 am
by chulett
Let's start with what you've tried and what issue(s) you are having.

Posted: Thu Jul 11, 2013 3:54 pm
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.

Posted: Mon Jul 15, 2013 11:52 am
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.