What is the difference between %local and %global?



What is the difference between %local and %global?..

Answer / venkatesh

if we write macro variable inside the local it is called local macro we can turn local macro variable into global macro.

if we write macro outside the global it is called global macro we can't turn global macro into local.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

How could you generate test data with no input data?

6 Answers   Quintiles,


How do you debug and test your SAS programs? What can you learn from the SAS log when debugging? How do you test for missing values? How would you create multiple observations from a single observation? What are some good SAS programming practices for processing very large data sets? Briefly describe 5 ways to do a "table lookup" in SAS. Why is SAS considered self-documenting? Are you sensitive to code walk-throughs, peer review, or QC review? What other SAS features do you use for error trapping and data validation? How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

2 Answers  


what is data access? : Sas-di

0 Answers  


how do u validate the program which u have written.

1 Answers   TCS,


What is maximum storage capability of SAS?

0 Answers  


Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?

3 Answers  


How do you convert basic cube to transaction cube and transaction cube to basic cube?

0 Answers  


Can we use where and having clauses in a single SAS program. ex: proc sql;     select a,b,c from test      where state in 'KA'      and having <some condition>. Is the above program run correctly, if not why ?     

4 Answers   UHG,


Code the MEANS to produce output to be used later.

2 Answers  


explain what is data set in sas? : Sas-administrator

0 Answers  


how to read the variables in sas? : Sas-administrator

0 Answers  


data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x*y / chisq nopercent nocol norow PLCORR; RUN; If we run the code, we have Polychoric Correlation = 0.9054 in the last table. I want to extract this particular entry with the value. Means I will create one dataset in which this value will be stored/extracted. I need your help in coding this. Please help me out.

2 Answers  


Categories