User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 456,565 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,583 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser: Programming Forums
Views: 840 | Replies: 0
Reply
Join Date: Oct 2007
Posts: 1
Reputation: sparewb is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sparewb sparewb is offline Offline
Newbie Poster

calling macros in SAS using different conditions

  #1  
Oct 22nd, 2007
Hi,

Not too sure whether this is the right place to look for help.
I am newbie to SAS.
Basically, I have written a few macros in SAS which I would like to activate when different conditons are met.
For example.

Data _NULL_

Do i=0 to 10

Select (i)

When (0)%Macro1(var1);
when(2) % macro2(var2);
....
otherwise
end
end

However, I found that I cannot do that i.e. select different macros when different conditions are met. Anybody can suggest how I could achieve the same functionality?

(P.S if possible, give code fragments as i am really very new to SAS)

Also, is it possible to concatenate 2 macro strings.

i.e. % Let macro1=ABC;
%Let macro2=DEF;

I would like to have
%Let macro 3= ABCDEF; (but using macro1 and 2 since the values may change.)

How can I do this??
Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Computer Science and Software Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Computer Science and Software Design Forum

All times are GMT -4. The time now is 5:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC