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
How are numeric and character missing values represented internally?
For clinical entire study how many tables will create approx?
Differences between where and if statement?
what is program data vector? : Sas-administrator
AE datasets names? how many types?
What do the SAS log messages "numeric values have been converted to character" mean?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
How can you create a macro variable with in data step? : sas-macro
Explain why double trailing @@ is used in input statement?
What is the role of administrative users? : sas-grid-administration
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
How can sas program be validated?
How to specify variables to be processed by the freq procedure?
What are the uses of sas?
Describe what are the different levels of administrative users in sas? : sas-grid-administration