LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 20 Apr 2009 15:15:18 -0500
Reply-To:     Mary <mlhoward@AVALON.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Mary <mlhoward@AVALON.NET>
Subject:      Re: proc template IF CMP() - more than one?
Comments: To: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Content-Type: text/plain; format=flowed; charset="Windows-1252";
              reply-type=original

Why doesn't this work?

put "blahblah" / if cmp("head",section) and cmp("string2",var2);

It would seem like it ought to evaluate the whole condition and do the put statement if it is true; I don't really understand why two cmp functions in the condition should be the problem, just whether the entire condition is true or false; of course, they would have to be different variables for them both to be true at the same time.

-Mary

----- Original Message ----- From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM> To: <SAS-L@LISTSERV.UGA.EDU> Sent: Monday, April 20, 2009 2:58 PM Subject: proc template IF CMP() - more than one?

Hi All,

Can the proc template IF statement handle more than one CMP() function?

e.g. of a single function:

put "blahblah" / if cmp(section,"head");

> Mark Terjeson > Senior Programmer Analyst Investment Management & Research > Russell Investments > 253-439-2367 > > > Russell > Global Leaders in Multi-Manager Investing > > The information contained in this message is intended only for the use > of the recipient named above. This message may contain confidential > or undisclosed information. If the reader of this message is not the > intended recipient or an agent responsible for delivering to the > intended recipient, you are hereby notified that you have received > this message in error, and that any review, dissemination, > distribution or copying of it is strictly prohibited. If you have > received this message in error, please notify us by telephone > immediately at 253-439-2367. Thank you for your cooperation. > > > >


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