What is difference between Global n Local Macro Variables..?
Answers were Sorted based on User's Feedback
Two types of scopes exist for macro variables: global and
local. Global macro variables exist for the duration of the
SAS session and can be referenced anywhere in the program--
either inside or outside a macro. Local macro variables
exist only during the execution of the macro in which the
variables are created and have no meaning outside the
defining macro.
| Is This Answer Correct ? | 31 Yes | 0 No |
Answer / rag_uss
Global macro variables can be used anywhere in the program,
whereas Local macro variable can be used within that macro only.
| Is This Answer Correct ? | 20 Yes | 0 No |
Answer / vikram s
Global Variables are the one which can be defined at the
beginning of the program and cannot change inside the
program, whereas local variables are the one which can be
instantly with in the program
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / sandeep
Global macro variable can be created and used anywhere in
the application and global macro variable value stores in
global symbol tables
Local macro variable can be created and used only inside of
the macro block and local macro variable value stores in
local symbol tables
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / balu
global variables,is defined if it is "open code"that is everything outside the macro.and it can be used anywhere in the program.whereas local variables are defined inside the macro.and it is used only inside its own macro.
| Is This Answer Correct ? | 2 Yes | 1 No |
how to rearrange the data as our wish by using dataset block?
Does anybody have SAS Training manual or documentation or can you refer me any book to have better understanding on SAS. I am fresher to SAS tool. (Ready to pay)
how sas deals with business intelligence? : Sas-bi
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
How to convert HTML file into SAS dataset?
Difference between sum function and using “+” operator?
what is business intelligence? : Sas-bi
What is the purpose of _character_ and _numeric_?
Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.
create macros---you have 365 number of data and you need to merge it throw the macros,,,,,, data file1; input a @@; cards; 1 2 3 4 ; run; data file2; input a @@; cards; 5 6 7 8 ; run; data file3; input a @@; cards; 9 10 11 12 ; run;data file4; input a @@; cards; 13 14 15 16 ; run;
Intern stastical programmer written test
What is the difference between order and group variable in proc report?