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


Please Help Members By Posting Answers For Below Questions

Mention the category in which sas informats are placed?

724


What is a macro routine?

2211


How do you convert basic cube to transaction cube and transaction cube to basic cube?

1877


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

1752


If a variable contains only numbers, can it be a character data type?

724






Explain bmdp procedure?

710


Explain by-group processing?

692


Which command is used to perform sorting in sas program?

676


what is transformation in sas data integration? : Sas-di

650


Do you need to know if there are any missing values?

687


what is sas application server? : Sas-di

619


What is the difference between the proc sql and data step?

751


What are the 3 components in sas programming?

834


What is substr function?

724


What are the default statistics that proc means produce?

687