Date: Thu, 18 Nov 2004 10:09:22 +0000
Reply-To: Saqi <saqi2000@gmail.com>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Saqi <saqi2000@GMAIL.COM>
Subject: LIKE statement as a regular SAS expression???
Content-Type: text/plain; charset=US-ASCII
I am generating an HTML table using put statement. I would like to
output the link only where prod_code is like C for everything else I
don't want to put the link out.
If prod_code like 'C%' then
do;
put @134 '<TD WIDTH="235" ALIGN="CENTER"><FONT FACE="Arial" SIZE="2">
<A HREF='my_link'
TARGET="_top">Click Here</A></FONT></TD>';
end;
but it is complaining about like. Like can only be used with where
statement. Can you please put me in the right direction??
Regards
Jan
|