what is the difference between x=substr(name,1,2);
and substr(name,1,2)='x';
Answer Posted / oanhntt
x=substr(name,1,2) means you assign x value equal to the
first 2 characters of variable "name" while
substr(name,1,2)='x' just compare these fist 2 characters to
value 'x', so this seem useless without condition syntax
(correct one should be: if substr(name,1,2)='x' then /*do
some thing*/;).
| Is This Answer Correct ? | 4 Yes | 16 No |
Post New Answer View All Answers
Enlist the functions performed by sas.
How can sas program be validated?
What Proc glm does?
Differentiate between proc means and proc summary.
What are the differences between sum function and using “+” operator?
Give some examples where proc report’s defaults are same as proc print’s defaults?
What are the different types of sas functions?
how do you test for missing values? : Sas programming
How you can read the variables that you need?
what is the use of sas management console? : Sas-di
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
Name some categories in sas 9? : sas-grid-administration
Explain proc sort?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
What can you learn from the SAS log when debugging?