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 (September 2005, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 30 Sep 2005 23:08:24 +0000
Reply-To:     toby dunn <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         toby dunn <tobydunn@HOTMAIL.COM>
Subject:      Re: array & macro call
Comments: To: k_monal_99@YAHOO.COM
In-Reply-To:  <20050930224111.84594.qmail@web54207.mail.yahoo.com>
Content-Type: text/plain; format=flowed

Monal,

You could use call execute but unless the code inside of %test is pure macro code it wont get executed untill after the data step, so it matters as to what %test actually contains, pure macro code, pure data step code, or a mixture.

Toby Dunn

From: monal kohli <k_monal_99@YAHOO.COM> Reply-To: monal kohli <k_monal_99@YAHOO.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: Re: array & macro call Date: Fri, 30 Sep 2005 15:41:11 -0700 MIME-Version: 1.0 Received: from mailgw.cc.uga.edu ([128.192.1.101]) by MC6-F11.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 30 Sep 2005 15:42:13 -0700 Received: from listserv.cc.uga.edu (listserv.uga.edu [128.192.1.75])by mailgw.cc.uga.edu (8.12.11/8.12.11) with ESMTP id j8ULfWIq008221;Fri, 30 Sep 2005 18:41:12 -0400 Received: from LISTSERV.UGA.EDU by LISTSERV.UGA.EDU (LISTSERV-TCP/IP release 1.8d) with spool id 8234503 for SAS-L@LISTSERV.UGA.EDU; Fri, 30 Sep 2005 18:41:12 -0400 Received: from web54207.mail.yahoo.com (web54207.mail.yahoo.com [206.190.39.249]) by listserv.cc.uga.edu (8.12.11/8.12.11) with SMTP id j8UMfBSQ006507 for <SAS-L@LISTSERV.UGA.EDU>; Fri, 30 Sep 2005 18:41:11 -0400 Received: (qmail 84596 invoked by uid 60001); 30 Sep 2005 22:41:11 -0000 Received: from [69.120.113.231] by web54207.mail.yahoo.com via HTTP; Fri, 30 Sep 2005 15:41:11 PDT X-Message-Info: DJg0iSgxerJ2UV/TkwssssGQqQRb33Vq7InnzCMd/R4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;

h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;

b=f8ifjgCvLOYm8bwGGoFLis78k+w1zU3DQ1bz+nkIN8iiY/0jND+BOq6tWmjH/OZ+uOykvk8HW6nXX2OgFEcQ1C0+PhPp1ALvHbED82jIMRfZ6NqrzBtjLL7naLHOSVBINgVYZXsaPw+eEVV+j8bsmxIeDFG6YVHpT3y02zcvOps= ; Comments: To: toby dunn <tobydunn@HOTMAIL.COM> Return-Path: owner-sas-l@LISTSERV.UGA.EDU X-OriginalArrivalTime: 30 Sep 2005 22:42:13.0592 (UTC) FILETIME=[3382E580:01C5C610]

You could use call execute

HTH Mona

--- toby dunn <tobydunn@HOTMAIL.COM> wrote:

> Micheal, > > What does %test look like, that could determine if > you can do what you want > or not. > > > Toby Dunn > > > > > > From: Michael <michaelnx@GMAIL.COM> > Reply-To: Michael <michaelnx@GMAIL.COM> > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: array & macro call > Date: Fri, 30 Sep 2005 15:18:22 -0700 > Andrew, > > Thanks for ur quick reply. > > If there is a macro called %test. the following is > what I want to do. > > data two; > set one; > array a(*) _numeric_; > do i=1 to dim(a); > %test(a('||i||')); > end; > > Thanks for your help! > > Best, > Michael >

__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


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