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

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

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

Post New Answer

More SAS Interview Questions

how can u extract,transform and loading?

2 Answers   CitiGroup,


how are numeric and character missing values represented internally? : Sas programming

0 Answers  


hi i am nipun can anybody tell me that if a clinical sas programmer write the code and after successfull execution where do they store it. how they submit tables to TL how work is assigned to programmers either both code, log, output to be submitted. can any one tell me the process

2 Answers   HSBC,


who is the best SAS clinical Trainer in Hyderabad?

3 Answers  


In the SAS Data step what is the difference between the subsetting done by Where and subsetting done by If?

6 Answers   Cognizant,






How do you convert basic cube to transaction cube and transaction cube to basic cube?

0 Answers  


How to specify variables to be processed by the freq procedure?

0 Answers  


What SAS statements would you code to read an external raw data file to a DATA step?

10 Answers   NIIT,


i have one dataset data l; input name: $ 25; cards; manoj is a good boy to krishna krishna is a god boy to malli malli is good boy to ramana ques: here i want "manoj" observations nubers

3 Answers   SAS,


What is the work of tranwrd function?

0 Answers  


how will you location sas platform applications available from web browser? : Sas-bi

0 Answers  


What do you know about symput and symget?

0 Answers  


Categories