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: 8165
Location: East Dubuque, Illinois, 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 Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm

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