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
what do you mean by data staging area? : Sas-di
Explain the use of proc gplot? : sas-grid-administration
What is the purpose of _character_ and _numeric_?
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
List out some key concept of SAS
How to limit decimal places for the variable using proc means?
What do the put and input function do?
Describe a time when you were really stuck on a problem and how you solved it?
Do you need to rearrange the order of the data for the report?
how many types prompting framework can be broken down to? : Sas-bi
What is the role of administrative users? : sas-grid-administration
What are the features of SAS?
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
what are sas bi dashboard components? : Sas-bi
In sas admin differentiate between roles and capabilities? : sas-grid-administration