LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 2 Mar 2004 15:05:05 -0500
Reply-To:   "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Subject:   Re: Macro calls in Proc SQL?
Comments:   To: Dewen.Hou@BLOCKBUSTER.COM

On Tue, 2 Mar 2004 13:35:45 -0600, Dewen Hou <Dewen.Hou@BLOCKBUSTER.COM> wrote:

>Hi Dear All, > >Can I use a Macro Call in the Proc SQL Selection? Something like: > >Proc SQL; >Create Table A as >Select X1, Y1, X2, Y2, %Distance(X1,Y1,X2,Y2) as Dist >from B; >Quit; > >Here %Distance is a macro to do some calculation. > >Thanks, > >David Hou

Hi, David,

Why not? It would work as long as the macro "emits" (hi, Richard!) an expression that the select can handle. I would try the expression first as it is then package it into the distance macro.

Cheers, Chang


Back to: Top of message | Previous page | Main SAS-L page