IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

access AS400 tables from Mainframe programs


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dsandeep

New User


Joined: 17 Mar 2006
Posts: 2

PostPosted: Fri Mar 17, 2006 9:59 am
Reply with quote

icon_question.gif We need to read AS400 tables(DB2) from Mainframe batch and online programs as weel. Any suggestions ?
Heard that DB2 connect can do this .. anyone has done this before..

Thanks a lot
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Mar 17, 2006 7:47 pm
Reply with quote

hy dsandeep,

it is possible, depending of your system configuration,
you could connect both db2 systems, this on as400
and this on z/OS together. but how to do this, is
a task for your dba...

martin9
Back to top
View user's profile Send private message
dsandeep

New User


Joined: 17 Mar 2006
Posts: 2

PostPosted: Fri Mar 17, 2006 9:48 pm
Reply with quote

Thanks Martin,

Can you tell me whether DB2 connect has to be used for connedting the databases on AS-400 and Mainframe ?

Regards
icon_neutral.gif
Back to top
View user's profile Send private message
Jack Lash

New User


Joined: 17 Nov 2007
Posts: 1
Location: Philadelphia

PostPosted: Mon Nov 19, 2007 7:41 pm
Reply with quote

I was wondering if you ever found a way to do this. I have been able to connect to the AS400 and read tables with Library names less than eight characters but when the library/file name is greater than 8 characters, I can't get past the bind on the mainframe. If I use the bind parameter SQLERRER(CONTINUE) it will bind but fails at execution. Does anybody have an answer to this problem?
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Mon Nov 19, 2007 7:54 pm
Reply with quote

DSandeep,

Yes you are correct. DB2 connect will connect the to remote database.

Syntax:
Exec sql
connect to <database name>
end-exec.

As Martin suggested it is more of a DBA work.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top