View previous topic :: View next topic |
Author |
Message |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Thu Apr 21, 2005 1:39 am Post subject: Querying DB2 thru SAS |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Wed Jun 01, 2005 2:14 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Jun 01, 2005 8:41 am Post subject: |
|
|
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 |
|
|
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Thu Jun 02, 2005 1:06 am Post subject: |
|
|
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 |
|
|
|
|