473,395 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Connect ASP.net(2.0) to AS400 Iseries w/ DB2

Can someone tell me what I need to get connected to our AS400?

I am trying to write an app in VS2005(Data source, Gridview) that requires
data from files on our AS400. I've downloaded DB2, and installed it, but
apparently I need an additional product, "DB Connect" to actually make a
connection. "DB connect" says that it will only display tables with a type
of "T", and as far as I know, we are using files, not tables on the 400.

Can someone point me in the right direction?

Al G
Dec 14 '07 #1
6 4572
Al G wrote:
Can someone tell me what I need to get connected to our AS400?

I am trying to write an app in VS2005(Data source, Gridview) that requires
data from files on our AS400. I've downloaded DB2, and installed it, but
apparently I need an additional product, "DB Connect" to actually make a
connection. "DB connect" says that it will only display tables with a type
of "T", and as far as I know, we are using files, not tables on the 400.

Can someone point me in the right direction?
Tables are physical files in DB2 for i5/OS (System i | iSeries | AS/400).
publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatc/rzatcterminology.htm

Most likely you are using "DB2 Connect":
www-306.ibm.com/software/data/db2/db2connect

There should be no problem accessing physical files via DB2 Connect, as
long as the physical files are "externally described". All tables and
views created via SQL DDL are externally described files. All physical
and logical files created using DDS (to describe fields/columns) are
externally described - for example using CRTPF ... SRCFILE().

An alternative to DB2 Connect might be the iSeries Access .NET provider:
www-03.ibm.com/systems/i/software/access/windows/dotnet/index.html

--
Karl Hanson
Dec 14 '07 #2

"Karl Hanson" <kc******@youess.ibm.comwrote in message
news:4762eb04$1@kcnews01...
Al G wrote:
>Can someone tell me what I need to get connected to our AS400?

I am trying to write an app in VS2005(Data source, Gridview) that
requires data from files on our AS400. I've downloaded DB2, and installed
it, but apparently I need an additional product, "DB Connect" to actually
make a connection. "DB connect" says that it will only display tables
with a type of "T", and as far as I know, we are using files, not tables
on the 400.

Can someone point me in the right direction?

Tables are physical files in DB2 for i5/OS (System i | iSeries | AS/400).
publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatc/rzatcterminology.htm

Most likely you are using "DB2 Connect":
www-306.ibm.com/software/data/db2/db2connect

There should be no problem accessing physical files via DB2 Connect, as
long as the physical files are "externally described". All tables and
views created via SQL DDL are externally described files. All physical and
logical files created using DDS (to describe fields/columns) are
externally described - for example using CRTPF ... SRCFILE().

An alternative to DB2 Connect might be the iSeries Access .NET provider:
www-03.ibm.com/systems/i/software/access/windows/dotnet/index.html

--
Karl Hanson
Thanks Karl,

Too many new terms, I guess. I've found an older trial version of DB2
Connect, V8.2, so will load that and see if I can connect.

Al G
Dec 14 '07 #3

"Al G" <ag*******@nospam.charter.netwrote in message
news:Uc*************@newsfe06.lga...
>
"Karl Hanson" <kc******@youess.ibm.comwrote in message
news:4762eb04$1@kcnews01...
>Al G wrote:
>>Can someone tell me what I need to get connected to our AS400?

I am trying to write an app in VS2005(Data source, Gridview) that
requires data from files on our AS400. I've downloaded DB2, and
installed it, but apparently I need an additional product, "DB Connect"
to actually make a connection. "DB connect" says that it will only
display tables with a type of "T", and as far as I know, we are using
files, not tables on the 400.

Can someone point me in the right direction?

Tables are physical files in DB2 for i5/OS (System i | iSeries | AS/400).
publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatc/rzatcterminology.htm

Most likely you are using "DB2 Connect":
www-306.ibm.com/software/data/db2/db2connect

There should be no problem accessing physical files via DB2 Connect, as
long as the physical files are "externally described". All tables and
views created via SQL DDL are externally described files. All physical
and logical files created using DDS (to describe fields/columns) are
externally described - for example using CRTPF ... SRCFILE().

An alternative to DB2 Connect might be the iSeries Access .NET provider:
www-03.ibm.com/systems/i/software/access/windows/dotnet/index.html

--
Karl Hanson

Thanks Karl,

Too many new terms, I guess. I've found an older trial version of DB2
Connect, V8.2, so will load that and see if I can connect.

Al G

I installed the trial version DB2 Connect v8.2, and it required that I
un-install the IBM DB2 v9.1 that I was trying to test.
VS2005 doesn't show DB2 as one of the possible connection types now. I
presume there are components out there that I am missing.
Do I need to add anything to the 400? We're at V5R4 now.

Thanks

Al G
Dec 15 '07 #4
>>>Can someone tell me what I need to get connected to our AS400?
> Too many new terms, I guess. I've found an older trial version of DB2
Connect, V8.2, so will load that and see if I can connect.
I installed the trial version DB2 Connect v8.2, and it required that I
un-install the IBM DB2 v9.1 that I was trying to test.
VS2005 doesn't show DB2 as one of the possible connection types now. I
presume there are components out there that I am missing.
Do I need to add anything to the 400? We're at V5R4 now.
Thanks
Al G
May be that installing iSeries Access (V5R4) on pc with VS2005 gives you
the "drivers" you need; usually we do this...
....and this gives our pc developers the tools (iSeries Navigator) to
control DB on iSeries/system i server.

For what I know (on i5/iSeries servers I control) you don't need to
install anything on "AS/400" server.
Check instead that the desired "host servers" are started on iSeries:
you may ask it to your iSeries administrator or check it from VS2005
client from command line using CWBPING your_iseries_net_name and
controlling for "Data Access".
http://www.itjungle.com/fhg/fhg082907-story03.html
HTH
Stefano P.

--
"Niuna impresa, per minima che sia,
può avere cominciamento e fine senza queste tre cose:
e cioè senza sapere, senza potere, senza con amor volere"
[Anonimo fiorentino, XIV sec.]

(togliere le "pinzillacchere" dall'indirizzo email ;-)
Dec 15 '07 #5
Al G wrote:
"Al G" <ag*******@nospam.charter.netwrote in message
news:Uc*************@newsfe06.lga...
>"Karl Hanson" <kc******@youess.ibm.comwrote in message
news:4762eb04$1@kcnews01...
>>Al G wrote:
Can someone tell me what I need to get connected to our AS400?

I am trying to write an app in VS2005(Data source, Gridview) that
requires data from files on our AS400. I've downloaded DB2, and
installed it, but apparently I need an additional product, "DB Connect"
to actually make a connection. "DB connect" says that it will only
display tables with a type of "T", and as far as I know, we are using
files, not tables on the 400.

Can someone point me in the right direction?

Tables are physical files in DB2 for i5/OS (System i | iSeries | AS/400).
publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatc/rzatcterminology.htm

Most likely you are using "DB2 Connect":
www-306.ibm.com/software/data/db2/db2connect

There should be no problem accessing physical files via DB2 Connect, as
long as the physical files are "externally described". All tables and
views created via SQL DDL are externally described files. All physical
and logical files created using DDS (to describe fields/columns) are
externally described - for example using CRTPF ... SRCFILE().

An alternative to DB2 Connect might be the iSeries Access .NET provider:
www-03.ibm.com/systems/i/software/access/windows/dotnet/index.html

--
Karl Hanson
Thanks Karl,

Too many new terms, I guess. I've found an older trial version of DB2
Connect, V8.2, so will load that and see if I can connect.

I installed the trial version DB2 Connect v8.2, and it required that I
un-install the IBM DB2 v9.1 that I was trying to test.
VS2005 doesn't show DB2 as one of the possible connection types now. I
presume there are components out there that I am missing.
Do I need to add anything to the 400? We're at V5R4 now.

Thanks

Al G
Nothing else is needed on the System i - all DB and communications
support is in the base i5/OS (aka OS/400). DB2 Connect communicates via
DRDA. The InfoCenter topic "Distributed Database Programming" has more
info on DRDA here:
http://publib.boulder.ibm.com/infoce...al1kickoff.htm

The DRDA TCP/IP server support in i5/OS can be started with this command:
===STRTCPSVR SERVER(*DDM)

You can see/configure the server relational database (RDB) name with
this command:
===WRKRDBDIRE
The entry with remote location *LOCAL represents the server RDB.

If you decide to use the iSeries Access .NET provider, you'll want to
ensure the database "host server" support is active.
===STRHOSTSVR SERVER(*DATABASE)

--
Karl Hanson
Dec 17 '07 #6

"Karl Hanson" <kc******@youess.ibm.comwrote in message
news:4765c9ab$1@kcnews01...
Al G wrote:
>"Al G" <ag*******@nospam.charter.netwrote in message
news:Uc*************@newsfe06.lga...
>>"Karl Hanson" <kc******@youess.ibm.comwrote in message
news:4762eb04$1@kcnews01...
Al G wrote:
Can someone tell me what I need to get connected to our AS400?
>
I am trying to write an app in VS2005(Data source, Gridview) that
requires data from files on our AS400. I've downloaded DB2, and
installed it, but apparently I need an additional product, "DB
Connect" to actually make a connection. "DB connect" says that it will
only display tables with a type of "T", and as far as I know, we are
using files, not tables on the 400.
>
Can someone point me in the right direction?
>
Tables are physical files in DB2 for i5/OS (System i | iSeries |
AS/400).
publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatc/rzatcterminology.htm

Most likely you are using "DB2 Connect":
www-306.ibm.com/software/data/db2/db2connect

There should be no problem accessing physical files via DB2 Connect, as
long as the physical files are "externally described". All tables and
views created via SQL DDL are externally described files. All physical
and logical files created using DDS (to describe fields/columns) are
externally described - for example using CRTPF ... SRCFILE().

An alternative to DB2 Connect might be the iSeries Access .NET
provider:
www-03.ibm.com/systems/i/software/access/windows/dotnet/index.html

--
Karl Hanson
Thanks Karl,

Too many new terms, I guess. I've found an older trial version of DB2
Connect, V8.2, so will load that and see if I can connect.

I installed the trial version DB2 Connect v8.2, and it required that
I un-install the IBM DB2 v9.1 that I was trying to test.
VS2005 doesn't show DB2 as one of the possible connection types now.
I presume there are components out there that I am missing.
Do I need to add anything to the 400? We're at V5R4 now.

Thanks

Al G

Nothing else is needed on the System i - all DB and communications support
is in the base i5/OS (aka OS/400). DB2 Connect communicates via DRDA. The
InfoCenter topic "Distributed Database Programming" has more info on DRDA
here:
http://publib.boulder.ibm.com/infoce...al1kickoff.htm

The DRDA TCP/IP server support in i5/OS can be started with this command:
===STRTCPSVR SERVER(*DDM)

You can see/configure the server relational database (RDB) name with this
command:
===WRKRDBDIRE
The entry with remote location *LOCAL represents the server RDB.

If you decide to use the iSeries Access .NET provider, you'll want to
ensure the database "host server" support is active.
===STRHOSTSVR SERVER(*DATABASE)

--
Karl Hanson


Thank you gentlemen, I'll look into it.

Al G
Dec 17 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sleepy Smurf | last post by:
Hello all, I wonder if you could clarify this for me: I want to develop applications on the Visual Studio.Net platform with connectivity to the DB2 on the AS400 platform for the database. I...
13
by: Sehboo | last post by:
Hello, we have data sitting on AS400 (V4R5M0) - DB2-400. I need to access that from my vb.net application. I don't know anything about AS400. Is it possible to get data from tables and stored...
14
by: Brad Allison | last post by:
Sorry to repeat myself if this is the same question I asked in the past, but I have finally made a connection to our AS400 through ODBC. I tried to get the connection using the data connection...
5
by: Amaryllis | last post by:
I'm trying to call a CL which is located on our AS400 from a Windows application. I've tried to code it in different ways, but I seem to get the same error every time. Does anyone have any clue...
3
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use...
5
by: Nathan Given | last post by:
Hello All, I've been struggling on and off for 3 months trying to connect to an DB2 database running on an IBM iSeries machine. I FINALLY figured out how to connect with Coldfusion (see...
3
by: Mortsdeh | last post by:
Hi, I have been assigned to connect to a AS400 queue using the iSeries API, probably version 5 release 3. I use Visual Basic.NET in Visual Studio.NET 2003. I would be grateful for all input...
0
by: fahrvergnuugen | last post by:
Here's the situation: I'm trying to get DB2 Connect, running on a linux web server, to connect to a backend DB2 database, running on an iSeries AS400. I am 100% green when it comes to AS400s...
1
by: gioibm | last post by:
Hi. Have someone solution to read mysql database from as400 to write db2??? Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.