Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SET CURRENT DEGREE = 'Any';

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: SET CURRENT DEGREE = 'Any';
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: 8211
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 27, 2009 1:17 am    Post subject:
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    Post subject: Reply to: SET CURRENT DEGREE = 'Any';
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us