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?
Answers were Sorted based on User's Feedback
Answer / kamalan
Scan() : Used to seperate a part of string using certain
delimiters.
index() : used to search a string. Return the position
where the search STRING occurs first in the given string.
indexc() : used to serach a character.Return the position
where the search CHARACTER occurs first in the given string.
So the Answer is: Index()
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / thanwi
scan function becuase the length of the varaible returned by
scan function is 200 bytes
| Is This Answer Correct ? | 6 Yes | 5 No |
What is LAG function?How is it used? can any one explain
3 Answers TRE, Verinon Technology Solutions,
what is picture format? give any one example?
What is LOGICAL VARIABLES in SAS.And how it can be used..Can anyone support..???
How to specify variables to be processed by the freq procedure?
what is the difference between proc means and proc tabulate?
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table?
How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.
What is the Program Data Vector (PDV)? What are its functions?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?
Mention sas system options to debug sas macros.
How to include or exclude specific variables in a data set?
Explain the main difference between the sas procedures and functions? : Sas-administrator