1.we can execute a macro with in a macro,by using call
symput and symget can any one give me one example?
2.We can create the macro variables by using %let,%do,macro
parameters,INTO clause in proc sql and call symput, can
any one give me example to create macro variable with INTO
clause and call symput?
3.
Answer Posted / aravind9882
data x;
a=98;
b=45;
call symput('m',a);
run;
%put &m;
proc sql;
select b into :m2 from x;
quit;
%put &m2;
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is study design in while working with SAS? what are screening variables in SAS?
How you can read the variables that you need?
What do you know about symput and symget?
Describe the ways in which you can create macro variables?
what is broad cast agent? : Sas-bi
What is slibref?
AE datasets names? how many types?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
what is sas and what are the functions? : Sas-administrator
which date functions advances a date time or date/time value by a given interval? : Sas programming
Describe what are the different levels of administrative users in sas? : sas-grid-administration
How do dates work in sas?
Hello, I have PROC SQLs results group by 3 fields and I use SUM and COUNT functions in SQL. The problem is when I try to display my result with PROC TABULATE. I am getting very big numbers. I believe I make a mistake some where in Tabulate. Here is my Proc Tabulate. PROC TABULATE DATA=OUT04_05 FORMAT=12.; CLASS YR CENTRE VISA / PRELOADFMT EXCLUSIVE; VAR NEWUSER FRAUD TRANSFER AUTUSER REISSUE; TABLE CENTRE ALL, (YR ALL)*VISA, (NEWUSER*F=COMMA12. AUTUSER*F=COMMA12. FRAUD*F=COMMA12. TRANSFER*F=COMMA12. REISSUE*F=COMMA12.) / MISSTEXT={LABEL='0'} PRINTMISS RTS=20; FORMAT VISA VISAFMT.; KEYLABEL SUM = ' ' ALL = 'TOTAL'; LABEL YR = 'DATE YEAR' NEWUSER = 'TOTAL NEW ACCT' TRANSFER = 'TOTAL TRANSFER' FRAUD = 'TOTAL FRAUD TRANSFER' AUTUSER = 'TOTAL AUTH USERS' REISSUE = 'TOTAL REISSUE'; When I code it like : NEWUSER*N*F=COMMA12. AUTUSER*N*F=COMMA12. I get same amount numbers but to find a NEWUSER I use COUNT(*) and to find AUTUSER I use SUM(xxxx) function so both result shouldn’t be the same my problem is in this point. Could you tell me where the problem in code is. How can I display my result? TX.
List down the reasons for choosing sas over other data analytics tools.
Have you used macros? For what purpose you have used? : sas-macro