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 we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
how does sas handle missing values in functions? : Sas programming
What is your favorite all time computer book? Why?
Mention the difference between ceil and floor functions in sas?
Explain input and put function?
What is the use of the %include statement?
Are you involved in writing the inferential analysis plan? Tables specfications?
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
What do you understand by the term Normal Distribution?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.
Are you involved in writing the inferential analysis plan? Tables specfications?
What is the difference between %local and %global? : sas-macro
what are input dataset and output dataset options? : Sas programming
Describe what are the different levels of administrative users in sas? : sas-grid-administration