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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.