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 (January 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 26 Jan 2009 13:20:28 -0600
Reply-To:     "./ ADD NAME=Data _null_;" <iebupdte@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "./ ADD NAME=Data _null_;" <iebupdte@GMAIL.COM>
Subject:      Re: iml
Comments: To: hd <heenagd@gmail.com>
In-Reply-To:  <f0fd7eca-7346-4e25-9d0f-63ab2e648837@p2g2000prn.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

Show your work.

99 proc iml; NOTE: IML Ready 100 reset print log nocenter; 101 a = {1 2 3};

A 1 row 3 cols (numeric) 1 2 3

102 b = a##3;

B 1 row 3 cols (numeric) 1 8 27

103 quit; NOTE: Exiting IML.

On 1/26/09, hd <heenagd@gmail.com> wrote: > On Jan 26, 1:49 pm, snoopy...@GMAIL.COM (Joe Matise) wrote: > > In regular SAS the power operator is ** > > > > so > > y=2**4 is y=16 > > > > Don't know if IML is the same, but it might be :) > > > > -Joe > > > > > > > > On Mon, Jan 26, 2009 at 12:42 PM, hd <heen...@gmail.com> wrote: > > > How Do I generate the power of a number/vector in IML. > > > > > Example: I have a vector a and I want to get a^3. how do i do this in > > > IML > > > > > Many Thanks- Hide quoted text - > > > > - Show quoted text - > > > Thanks Joe. It does work. So does ##. Weird. >


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