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 

Querying DB2 thru SAS

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


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Thu Apr 21, 2005 1:39 am    Post subject: Querying DB2 thru SAS Reply with quote

Hi,
We have SAS and DB2 on mainframe. we are using Spufi to query database. Can i interact DB2 thru SAS.
_________________
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 21, 2005 5:44 am    Post subject: Reply with quote

Sarangdhar,

Please search before posting. This topic has been discussed earlier. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=3446&highlight=sas

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
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Wed Jun 01, 2005 2:14 am    Post subject: Reply with quote

Kolusu i tried below SAS code:
OPTIONS DB2SSID=DSN;
PROC SQL;
CREATE VIEW SASUSERS AS
SELECT * FROM CONNECTION TO DB2
(SELECT USERID, SUBR_NBR, USER_TYP FROM PFLDSNA.PFLPFL_USER);

PROC PRINT;
TITLE 'SAMPLE SAS CONNECTION TO DB2';
RUN;

I'm getting this error:
CANNOT CONNECT TO DB2 SUBSYSTEM DSN, RC = 00F30034

This RC says Plan name specified does not exist or wrong plan name specified. Where can I specify the plan name.


Below is the normal spufi we are using:
//SPUFI EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DSN)
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP51)
/*
//SYSIN DD *
SELECT column1, column1 FROM owner.tablename;
_________________
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jun 01, 2005 8:41 am    Post subject: Reply with quote

Sarangadhar,


The reason code 00F30034 means that you are not authorized to run this plan. check this for a detailed explanation of the reason code.
Code:

00F30034                                                                 
                                                                         
Explanation:  The authorization ID associated with this connection is not
authorized to use the specified plan name or the specified plan name does
not exist.                                                               
                                                                         
This reason code is issued by the following CSECTs: DSN3CT30, DSN3SI30   
                                                                         
System Action:  The request to allocate a plan to the authorization ID is
denied.                                                                   
                                                                         
User Response:  Verify that the correct plan name was specified. If this 
plan exists, then request execution authority to the plan from either the
owner of the plan or from another person given authority to grant         
execution authority to the plan.


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
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Thu Jun 02, 2005 1:06 am    Post subject: Reply with quote

I'm authorised to run this plan, In fact i'm running cobol-db2 programs with plan PLFPBTC0, and spufi programs with plan DSNTEP51.

First of all i didn't specify any plan name in SAS-DB2 step, right?, then what plan name it takes by default?
_________________
Thanks
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