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 |
how to assign a macro value to a variable?
When merging 2 datasets with a common variable (not merge key), how to keep both?
Give an example where SAS fails to convert character value to numeric value automatically?
What is PROC in SAS?
where to use sas business intelligence? : Sas-bi
What is program data vector (pdv)?
tell me about use of arrays in sas
Hi, I have one dataset like id date ex: id date 1 13 1 13Oct2011 2 14 2 14Oct2011 3 15 3 15Oct2011 --->this is the current date here i want date format like 13Oct2011,14Oct2011 how we can modify the numeric to date format plz answer.
Name and describe three SAS functions that you have used, if any?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT SAS Training in Data Management at InfoSchool Bangalore
Describe what are the different levels of administrative users in sas? : sas-grid-administration