To read Foxpro .DBF files

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
saugat_1982
Participant
Posts: 29
Joined: Mon Nov 20, 2006 7:17 am
Location: Melbourne

To read Foxpro .DBF files

Post by saugat_1982 »

I am interested to read foxpro dbf files ( created in Window) to read through DataStage ( in Linux) .

Can you please any one suggest me the steps /prerequisites for this process ?

Thank you .
Saugat Dey
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ODBC. You (or someone here) will need to check if one of the branded ODBC drivers that ship with the product suport .dbf files, if not one would need to be purchased.
-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 »

I think the requirement is to read from the DBF files directly, rather than through FoxPro. There are Google articles about how to program this using languages like C# or VB that you may be able to adapt into, say, a DataStage routine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ray.wurlod wrote:I think the requirement is to read from the DBF files directly
I assumed so to, something ODBC should be able to handle quite easily I would think.
-craig

"You can never have too many knives" -- Logan Nine Fingers
saugat_1982
Participant
Posts: 29
Joined: Mon Nov 20, 2006 7:17 am
Location: Melbourne

Post by saugat_1982 »

@ Craig - Requirement is to read from dbf files , no access to Foxpro DB .
So I am not sure, will just an "ODBC" be a solution ?

@ Ray - I beleive 3rd party will definitely able to do , but client is insisting on xploring any feature in IIS can do that or not ?

Thnx
Saugat
Saugat Dey
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

saugat_1982 wrote:@ Craig - Requirement is to read from dbf files , no access to Foxpro DB .
So I am not sure, will just an "ODBC" be a solution ?
I've said it twice, I guess a third time won't hurt - Yes. AFAIK, you just need the right ODBC driver.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

I bet that if the OP looks in the $DSHOME/.odbc.ini file the correct driver will indeed be found.
- james wiles


All generalizations are false, including this one - Mark Twain.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's not there. No FoxPro ODBC driver ships with IIS 8.5.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Well, bummer. It was there in 8.1, under the guise of dbase.
- james wiles


All generalizations are false, including this one - Mark Twain.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right... look for a "dbase" driver, not anything that specifically says FoxPro.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Yeah, yeah, yeah.... :)

It's the same driver for DBase, FoxPro and a few others which utilize the DBF file format.
- james wiles


All generalizations are false, including this one - Mark Twain.
sinhasaurabh014
Participant
Posts: 86
Joined: Wed Apr 02, 2008 2:32 am
Location: Bangalore

dbf drivers

Post by sinhasaurabh014 »

Apologies for late posting ....
Even though the .odbc.ini file mentions the complete driver name, when i checked in the path, the said driver does not exist.

I am not sure if IBM ships it with the package. Does anybody have any idea?

Code: Select all

[dBase]
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMdbf25.so
Description=DataDirect dBaseFile(*.dbf) Driver
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

My understanding is that IBM only ships this one for Windows-based servers (ditto for the SQL Server Connector).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply