BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Selecting from AS400

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi As400
View previous topic :: View next topic  
Author Message
Freddy
Guest





PostPosted: Tue Aug 05, 2003 11:40 am    Post subject: Selecting from AS400 Reply with quote



Hi there everyone.

I am working a project, needing to access a file on an AS400 Server.

The problem is I have never worked on a AS400 before.
How would I write a query to retrieve a file called "x" from a Library
called "y"

Thanks



Back to top
K. Hoffrath
Guest





PostPosted: Wed Aug 06, 2003 6:42 am    Post subject: Re: Selecting from AS400 Reply with quote



Freddy wrote:

Quote:
The problem is I have never worked on a AS400 before.
How would I write a query to retrieve a file called "x" from a Library
called "y"

We use Delphi/400 as middleware but it should work with other
libraries too.
Steps to take:

1) Define a database connection in your programm.

2) Add a query and set the database property to your database.

3) Write your sql into Query.SQL, e.g. "select * from y/x" where y is the
library and x is the file. If you have logical files you can use them also.


HTH

--
Karsten Hoffrath


Back to top
DJ van Wyk
Guest





PostPosted: Wed Aug 06, 2003 10:02 am    Post subject: Re: Selecting from AS400 Reply with quote



I'm using Delphi 5 Professional in conjunction with IBM Client Access.
With this you can go the ODBC route or the dbExpress route, each with
it's own pros and cons.

Set your ODBC just like any other ODBC driver. Remember to set the
correct library with the correct profile (username/password)

1) Define a database connection in your programm.

2) Add a query and set the database property to your database.

3) Write your sql into Query.SQL, e.g. "SELECT * FROM x" where x is the
file.

Hope this will help.

DJ van Wyk

Freddy wrote:
Quote:
Hi there everyone.

I am working a project, needing to access a file on an AS400 Server.

The problem is I have never worked on a AS400 before.
How would I write a query to retrieve a file called "x" from a Library
called "y"

Thanks




Back to top
Betsy
Guest





PostPosted: Fri Nov 14, 2003 10:42 pm    Post subject: Re: Selecting from AS400 Reply with quote

DJ van Wyk,
d5 pro with IBM Client Access... come back!

I am currently upgrading from d5 to d7 and transitioning from ODBC to ADO...
I am encountering some little problems using the ADO connection/objects via
the IBMDA400 provider and am scanning sources to find out if I am going
about this all wrong.

We do use Client Access here... so am wondering if I would be better off
using DBExpress and dbexpca400 driver/provider (did I say all of that
right?)

Can you offer your experience to me to assist in answering this question for
me? Why would I pick one over the other?

thank you
b
"DJ van Wyk" <DJvanWyk (AT) ProMed (DOT) co.za> wrote

Quote:
I'm using Delphi 5 Professional in conjunction with IBM Client Access.
With this you can go the ODBC route or the dbExpress route, each with
it's own pros and cons.

Set your ODBC just like any other ODBC driver. Remember to set the
correct library with the correct profile (username/password)

1) Define a database connection in your programm.

2) Add a query and set the database property to your database.

3) Write your sql into Query.SQL, e.g. "SELECT * FROM x" where x is the
file.

Hope this will help.

DJ van Wyk

Freddy wrote:
Hi there everyone.

I am working a project, needing to access a file on an AS400 Server.

The problem is I have never worked on a AS400 before.
How would I write a query to retrieve a file called "x" from a Library
called "y"

Thanks






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi As400 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.