If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Accessing distributed systems from the mainframe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-14-07, 12:24
bigal21 bigal21 is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
Accessing distributed systems from the mainframe

Like a lot of folks, our applications where built in metaphoric "silos". We have spent a good deal of time trying to make data accessible from one silo to the next. I feel that I am close to accomplishing that goal, but I am not quite there yet.

I can run a SPUFI command from my OS/390 session and access data on Windows servers (accomplished by
a) adding the appropriate entry to SYSIBM.IPNAMES,
b) adding the appropriate entry to SYSIBM.LOCATIONS,
c) binding DSNESPCS.DSNESM68 to that location
d) changing the "LOCATION" in SPUFI
e) running the select query via SPUFI

I am happy with those results, but I need to be able to automate this procedure. Running SELECT NAME FROM LOCATION.SYSIBM.SYSTABLES through the plan DSNTEP71 results in a RC=12, but no more information than that. There is no DB2-related code to research, so I am stuck.

What am I missing?
Reply With Quote
  #2 (permalink)  
Old 09-15-07, 17:03
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by bigal21
Running SELECT NAME FROM LOCATION.SYSIBM.SYSTABLES through the plan DSNTEP71 results in a RC=12
Maybe issuing the SELECT from within a COBOL program (as static SQL) works?
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 09-17-07, 11:29
bigal21 bigal21 is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
COBOL is not my forte, but that may be an option for my developers. I'll get back to you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On