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 are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
Can you suggest us materials for sdtm mapping?
I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak
Did you used proc lifetest? when?
2 Answers Accenture, Parexel, Quintiles,
Mention the category in which sas informats are placed?
What is the difference between match merge and one to one merge?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set?
What was the last computer book you purchased? Why?
What do the put and input function do?
how do you want missing values handled? : Sas programming
If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?