Help using Base SAS procedures

proc sql preserve_comments option inside a macro

Reply
New Contributor gil
New Contributor
Posts: 2

proc sql preserve_comments option inside a macro

hi.

im using the sql procedure to retrieve data from an oracle server, and im trying to use Hints .

The problem is that the proc sql is inside a macro. When i run the SQL procedure not as part of the  macro statement it works just fine ,

but when it is inside the macro it looks like the Oracle query optimizer is ignoring the Hints.

Is there a problem to use  preserve_comments inside a macro ? or am i doing anything wrong?

thanks

gil

PROC Star
Posts: 7,491

proc sql preserve_comments option inside a macro

You didn't show your macro, so I'll just take a guess.  In your macro, did you specify preserve_comments as an argument in your connect statement?

New Contributor gil
New Contributor
Posts: 2

proc sql preserve_comments option inside a macro

thank you for your reply.

The problem was with the Oracle Hint.

and here is the solution:

http://support.sas.com/kb/7/290.html

Ask a Question
Discussion stats
  • 2 replies
  • 251 views
  • 0 likes
  • 2 in conversation