ODBC connection to Foxpro

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
dsqspro
Premium Member
Premium Member
Posts: 20
Joined: Wed Apr 15, 2009 7:01 am

ODBC connection to Foxpro

Post by dsqspro »

Can some one help me with connecting FoxPro dbf files on windows server from DataStage on UNIX with ODBC stage

and work with .odbc.ini and uvodbc.config
dsqspro
Premium Member
Premium Member
Posts: 20
Joined: Wed Apr 15, 2009 7:01 am

Re: ODBC connection to Foxpro

Post by dsqspro »

Hi,
I was able to successfully read data from sample file on local machine.

But not able to connect to remote server file location.

Before I try connecting Windows server, I am trying to connect to another UNIX box.

Code for .odbc.ini:
[dBase]
QEWSD=39906
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMdbf22.so
Description=DataDirect dBaseFile(*.dbf) Driver
ApplicationUsingThreads=1
CacheSize=4
CreateType=dBASE5
Database=/IP/User_Name/Passwd/tmp/Test_ODBC IntlSort=0
Locking=RECORD
UseLongNames=0
UseLongQualifiers=
DataFileExtension=DBF
ExtensionCase=UPPER
FileOpenCache=0
LockCompatibility=dBASE

Please let me know the highlighted is correct
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't know FoxPro but I sincerely doubt that is correct. Database is just typically the name itself and shouldn't contain any user/password info if that's what you are doing - that would come as part of the stage setup, the credentials needed to make that connection at runtime.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Since dbase is a file-based database and not a database server, I would doubt that you can access it remotely. You'll probably have to mount the remote file system using NFS, Samba, or similar so that it appears to be local.

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

Post by chulett »

Ah, yes... so basically just a ".dbf" file, if I recall correctly?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nasimul
Participant
Posts: 37
Joined: Wed Jan 25, 2006 1:38 am

Access .dbf files through DataStage

Post by nasimul »

How can I read the .dbf files even though it's placed on DataStage server? Don't I need to create DSN? If so, how? Please suggest.
nasimul
Participant
Posts: 37
Joined: Wed Jan 25, 2006 1:38 am

Re: ODBC connection to Foxpro

Post by nasimul »

Hi - Can you please suggest how read .dbf files placed on local machine thru datastage? I am unable read the file through ODBC because we are not going to deal with Foxpro database. Only .dbf files would be transferred to DataStage server and we need to read them.

Please help. It's urgent!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If it's urgent sign up with your official support provider for priority service.

DSXchange is an all-volunteer site whose members post as and when they can.
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 »

Those "dbf" files are the database.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nasimul
Participant
Posts: 37
Joined: Wed Jan 25, 2006 1:38 am

Post by nasimul »

Thanks Craig.
Post Reply