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
Explain proc sort?
Explain the use of proc print and proc contents?
what do the pad and dim functions do? : Sas programming
what is transformation in sas data integration? : Sas-di
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
What does PROC print, and PROC contents do?
What areas of SAS are you most interested in?
How does the internal authentication work in sas? : sas-grid-administration
What sas features do you use to check errors and data validation?
what is the difference between unique key and primary key? : Sas-di
What is program data vector (pdv)?
What are the scrubbing procedures in sas?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
how would you create multiple observations from a single observation? : Sas programming
Mention some common errors that are usually committed in sas programming.