Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / 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

When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / prr

Hi Friends,
actually I can't able to understand the question.
please repeat again in a understandable way.

scan: it returns Nth word from character observation.

index: it return starting position of the character from
character observation.

index C: it returns starting position of any character from
character observation.

Is This Answer Correct ?    3 Yes 0 No

When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / mohan reddy

INDEX IS TEH BEST FUNCTION

Is This Answer Correct ?    6 Yes 4 No

When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / rinky

The questions is to locate and not to extract any
particular word from a string of 150 bytes. SO, according
to me INDEX is the best.

Is This Answer Correct ?    4 Yes 2 No

When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / jothi sankar

INDEX is best one. Is for getting location of mentioned
data.

Eg:
str1 = 'Hi i am fine here. how are u there ? .....';
str2 = index(str1,'how'); --> str2 = 20



SCAN is to get a substring upto mentioned character

INDEXC to locate only for mentioned one or more single
character

Is This Answer Correct ?    5 Yes 5 No

When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / yaga

I think Index is the best option to locate the word
beacause SCAN is SAS function to extract the particular
word positioned in nth place. for ex: 2 word from the string

Is This Answer Correct ?    1 Yes 1 No

When looking for data contained in a character string of 150 bytes, which function is the best to l..

Answer / surendra

INDEX is the best function

Is This Answer Correct ?    4 Yes 5 No

Post New Answer

More SAS Interview Questions

How we will Developing new reports Using Data step programming and Macros ?

4 Answers  


Describe the ways in which you can create macro variables?

0 Answers  


how can u import .csv file in to SAS?tell Syntax?

7 Answers   CitiGroup, Franklin Templeton,


What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?

2 Answers   Accenture,


who is the best SAS clinical Trainer in Hyderabad?

3 Answers  


At compile time when a SAS data set is read, what items are created?

14 Answers   Accenture,


Are the preferred term counts are always equal to Body system counts? If so, Why are they equal if not why they are not equal?

1 Answers   Icon,


what is cummaltive frequency,and varience in proc unviarte

1 Answers   L&T,


How to save the log information in a file for future use

2 Answers   HCL,


how to import HTML files into SAS datasets?

3 Answers   HP,


In SAS explain which statement does not perform automatic conversions in comparisons?

0 Answers  


what other SAS features do you use for error trapping and data validation?

3 Answers   Quintiles,


Categories