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 (February 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 16 Feb 2008 12:50:38 -0500
Reply-To:     Nathaniel.Wooding@DOM.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject:      Re: sas macro language
Comments: To: Stefan Pohl <stefan.pohl@ISH.DE>
In-Reply-To:  <77343178E87F433FA8EDA88C51B0ABAD@aktuare.local>
Content-Type: text/plain; charset="US-ASCII"

Stephan

I added comments to the code

options symbolgen;* added this lets us see how the macro variables resolve ; %MACRO ward(data);

DATA table1_&data.1; * <-- you needed a decimal in order to concatenate the macro variables contents with the number;

run;** added;

%MEND ward;

%ward(test)

Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977

Stefan Pohl <stefan.pohl@ISH. DE> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject sas macro language

02/16/2008 09:06 AM

Please respond to Stefan Pohl <stefan.pohl@ISH. DE>

Hi sas-group,

%MACRO ward(data);

...

DATA table1_&data1; * <-- this does not work, I want to get test1, what is to do?;

...

%MEND ward;

%ward(test)

Thank you for help.

Stefan.

----------------------------------------- CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.


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