DATA Step, Macro, Functions and more

Data Set with name of more Macro variables

Reply
Contributor
Posts: 22

Data Set with name of more Macro variables

Hi to all,

I have need to define a data set with name of more macro variables:
the name of data set is type: area_yyyy_mm:

%let mese = 5;
%let area = C;
%let anno = 1996;

data &AREA_&ANNO_&MESE;
set risultato7_1;
run;

these istructions not work, have you some alternative solution?
tahnks
SAS Employee
Posts: 13

Re: Data Set with name of more Macro variables

data &AREA._&ANNO._&MESE.;
set risultato7_1;
run;
Super Contributor
Super Contributor
Posts: 3,174

Re: Data Set with name of more Macro variables

Suggested Google advanced search argument, this topic / post for consideration:

using macro variables site:sas.com


Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 2 replies
  • 104 views
  • 0 likes
  • 3 in conversation