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

SET CURRENT DEGREE = 'Any';


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

New User


Joined: 10 Nov 2006
Posts: 19
Location: New York

PostPosted: Tue Jan 27, 2009 12:46 am
Reply with quote

I am trying to optimize an sql and my dba suggested
SET CURRENT DEGREE = any; but couldn't tell me where to code the line. Also, the sql is embedded in SAS.

I've tried:
Proc SQL NOPRINT STIMER;
Connect TO DB2(SSID=zt01)
SET CURRENT DEGREE = 'ANY';
CREATE Table MTD_Flows as
SELECT * FROM CONNECTION TO DB2 (
Select
s.cola as x
,s.colb as y
,s.colc as z
.
continue....

Doesn't work. I've tried before the select and after the full select. Doe anyone know where it would be syntactically correct?

Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 27, 2009 1:17 am
Reply with quote

Try it this way:
Code:
OPTIONS SET="CURRENT DEGREE = 'ANY'";
Proc SQL NOPRINT STIMER;
Connect TO DB2(SSID=zt01)
CREATE Table MTD_Flows as
SELECT * FROM CONNECTION TO DB2 (
Select
s.cola as x
,s.colb as y
,s.colc as z
This is not tested since I don't have DB2 on site but from my reading of the SAS manual SET is an options statement, not part of PROC SQL.
Back to top
View user's profile Send private message
ywheeler

New User


Joined: 10 Nov 2006
Posts: 19
Location: New York

PostPosted: Tue Jan 27, 2009 1:23 am
Reply with quote

Thank you.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top