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 |
For what purpose would you use the RETAIN statement?
how can u create zero observation dataset?
IS SAS COMPILER OR INTERPRETER? EXPLAIN?
3 Answers Aon Hewitt, HSBC, SCL, TCS,
Describe a time when you were really stuck on a problem and how you solved it?
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
how do you pull data from equifax?tell me the process?
0 Answers Synchrony Financial,
what is Global Symbol table and Local symbol table?
what are some good sas programming practices for processing very large data sets? : Sas programming
I have 2 data sets A & B. Both have a variable called Age in them, each of them specifying a different functionality. In my program I use bot these data sets. How do I specify which Age variable I want to use?
Can you explain the process of calendar?
What is the difference between %local and %global? : sas-macro
In PROC PRINT, can you print only variables that begin with the letter “A”?