When looking for data contained in a character string of 150
bytes, which function is the best to locate that data: scan,
index, or indexc?
Answer Posted / ganesh
Scan function the best for locating the particular word
specified in a argument,scan function default length is
200bytes.
data k;
r='ganesh kumar';
u=scan(r,2);
proc print;
run;
result: kumar
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
Give some ways by which you can define the variables to produce the summary report (using proc report)?
What is the difference between order and group variable in proc report?
what is study design in while working with SAS? what are screening variables in SAS?
What is the use of %include statement?
Explain data step in SAS
Why and when do you use proc sql?
what is the difference between floor and ceil functions in sas? : Sas-administrator
What are symget and symput? : sas-macro
Explain translate function?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
how to do user inputs and command line arguments in sas?
What are the data types that sas contain?
Mention the category in which sas informats are placed?