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
Mention common programming errors committed in sas ?
Give some examples where proc report’s defaults are same as proc print’s defaults?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
what is sas application server? : Sas-di
How do you control the number of observations and/or variables read or written?
name several ways to achieve efficiency in your program? : Sas programming
describe how to adjust the performance of data integrator? : Sas-di
What is the use of %include statement?
What is run-group processing?
What are the statements in proc sql?
how will you location sas platform applications available from web browser? : Sas-bi
what are some differences between proc summary and proc means? : Sas programming
If you could design your ideal job, what would it look like?
What is the maximum length of the macro variable?