MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reading MVS DB2 table using SAS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
whizkid79
Beginner


Joined: 29 Sep 2004
Posts: 53
Topics: 14

PostPosted: Tue Dec 28, 2004 9:57 pm    Post subject: Reading MVS DB2 table using SAS Reply with quote

Hi,

I tried using the following SAS code to connect to a DB2 subsystem (ABCD):
Code:
PROC SQL;
CONNECT DB2 (SSID=ABCD);
RUN;


But the connection was not established and I got the following error:

Code:
CANNOT CONNECT TO DB2 SUBSYSTEM NAMED DSNJ, RC = 12, REASON CODE =     
00F30006.  ALTER "DSNJ" TO THE ACTUAL NAME OF YOUR TARGET DB2 SUBSYSTEM
BY USING SAS SYSTEM OPTION DB2SSID OR LIBNAME/DATASET OPTION SSID.     


Let me know how the connection can be established.

Thanks,
Whizkid79
Back to top
View user's profile Send private message
whizkid79
Beginner


Joined: 29 Sep 2004
Posts: 53
Topics: 14

PostPosted: Tue Dec 28, 2004 9:58 pm    Post subject: Reply with quote

Sorry, the SAS code used is
Code:
PROC SQL;
CONNECT TO DB2 (SSID=ABCD);
RUN;
Back to top
View user's profile Send private message
whizkid79
Beginner


Joined: 29 Sep 2004
Posts: 53
Topics: 14

PostPosted: Thu Dec 30, 2004 9:32 am    Post subject: Reply with quote

Is there no way to connect to DB2 tables?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Dec 30, 2004 9:55 am    Post subject: Reply with quote

whizkid79,

Check this link which explains in detail about accessing db2 data from sas

http://www.sconsig.com/sastips/tip00062.htm

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Dec 30, 2004 9:59 am    Post subject: Reply with quote

Kolusu,

You are just incredible !!!. From where are you getting all these links ? Gr8 job.

Thanks,
Phantom
Back to top
View user's profile Send private message
whizkid79
Beginner


Joined: 29 Sep 2004
Posts: 53
Topics: 14

PostPosted: Sun Jan 02, 2005 7:40 pm    Post subject: Reply with quote

Hi Kolusu,

I tried that, but got the same error I've mentioned above. Its not connecting.

Whizkid79.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group