1.How many ways to create Global macro variables what are those can anyone explain examples
2.
data dsn;
input name $ city $;
if city='hyd';
/*where city='hyd';
datalines;
ram blr
ravi chennai
krish vja
kesav hyd
;
run;
*HERE IF WORKS AND WHERE NOT WORKS IN DATALINES
SAS provides extremely well done documentation for its products. Learning to read the documentation will enhance your problem-solving skills by orders of magnitude.
I changed your subject line because your question has got nothing to do with macro variables.
As already stated, Maxim 1 is king here:
Study it, and you will find why WHERE cannot work in a data step that reads data only from DATALINES or INFILEs.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.