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
How to test the debugging in sas?
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
What are pdv and it functions?
what is sas business intelligence? : Sas-bi
Explain proc univariate?
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
Describe the function and untility of the most difficult SAS macro that you have written.
Name few SAS functions?
what is the purpose of _error_? : Sas programming
Explain the difference between using drop = data set option in set and data statement?
what is slowly changing dimension? : Sas-di
How to sort in descending order?
What are the data types does SAS contain?
What makes sas stand out to be the best over other data analytics tools?
Explain why double trailing @@ is used in input statement?