what is the difference between %put and symbolgen?
Answers were Sorted based on User's Feedback
Answer / mallikarjuna reddy.vanna
besides all the above answers, we can also say that by using
%put we can get values of specified macro variables, where
as by using symbolgen we can get the values of all the macro
variables with in a program.
%put is a macro language program statement, like %put and
%macro. symbolgen is an option.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / basha
both are used bebugging of macros
%put stmt write the text or macro variable information
like all macro global variables
where as
symbolgen display what macro variable resolves the value
ex;
%let v=sas;
symbolgen displays
macro variable v resolves to sas
this is especially useful when macro variables resolves
other than that u expected
%put stmt is also used with in the macro
symbolgen must be used options stmt
debugging macro with %put stmt
%put &d;
log:macrovariable d resolves to 'some-value '
regarda
basha
if any suggestion of this answer please mail
me:bashag3@yahoo.com
| Is This Answer Correct ? | 3 Yes | 0 No |
%put is used to display user defined messages on log window
after execution of a prog where as
%symbolgen is used to print the value of a macro variable
resolved, on log window
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / rajaanku11
In addition to the above answer,we can add one more sentence
to the %put.
%put is also used to print the macrovariables(automatic or
user defined or all) values on log.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / cutepa1
Mallikarjun is exactly correct that symbolgen is just an
option and cant be used within statements.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / d.s
options symbolgen could cause problems sometimes.
%macro m(x);
options symbolgen;
%let x=%eval(&x+1);
&x
%mend;
%put NOTE:***x=%m(1)***;
| Is This Answer Correct ? | 1 Yes | 0 No |
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
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 ?
Does anybody has lastest SAS certification dumps,if anybody has please mail me at akshara_SAS@ymail.com Thanks Akshara
how to handle in stream data containing semicolon in it?
How many missing values are available? When might you use them?
What is run-group processing?
explain the concepts and capabilities of business object? : Sas-bi
what is business intelligence? : Sas-bi
What is the pound sign used for in the data_null_ ?
Tell me more about the parameters in macro? : sas-macro
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set?
Explain the use of proc print and proc contents?