One way of creating a new variable in Macros is by %
Let....What is the other way..?
Answer Posted / prem krishnan
1) %macro <macroname> ( );
%mend (<macroname>;
a DATA step that contains a SYMPUT routine within a macro
definition
a DATA step that contains a SYMPUTX routine within a macro
definition
a SELECT statement that contains an INTO clause in PROC SQL
within a macro
definition
a %LOCAL statement.
%global statement
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of using sas?
What is the basic syntax style in SAS?
how to debug and test the sas program? : Sas-administrator
what is function of retain statment
how does sas handle missing values in assignment statements? : Sas programming
what is intially documentation in sas?
for report generation which one you used proc report or data_null_?
Do you need to rearrange the order of the data for the report?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
how do you debug and test your sas programs? : Sas programming
what is broad cast agent? : Sas-bi
what is the purpose of _error_? : Sas programming
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What is the work of tranwrd function?
what are sas/access and sas/connect? : Sas programming