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

what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

900


Explain the use of proc gplot? : sas-grid-administration

747


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1672


Difference between informat and format?

846


What are the data types does SAS contain?

844


What are the five ways to do a table lookup in sas? : sas-grid-administration

811


what does the run statement do? : Sas programming

773


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

765


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

817


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

758


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3337


What will calendar procedure do?

825


what is function of retain statment

1781


what is slowly changing dimension? : Sas-di

854


What are the differences between sum function and using “+” operator?

790