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

Answers were Sorted based on User's Feedback



i have one dataset data l; input name: $ 25; cards; manoj is a good boy to krishna krishna is a..

Answer / ashish

data count;
set l;
if count(name,'malli') then b=_n_;
run;

Is This Answer Correct ?    2 Yes 0 No

i have one dataset data l; input name: $ 25; cards; manoj is a good boy to krishna krishna is a..

Answer / vivek

data count;
set l;
a = count(sen,'manoj');
run;

Is This Answer Correct ?    4 Yes 4 No

i have one dataset data l; input name: $ 25; cards; manoj is a good boy to krishna krishna is a..

Answer / raghava

data zoo;
infile datalines;
input Name $ 29.;
datalines;
Manoj is good boy to krishna
Krishna is good boy to malli
malli si good boy to ramana
;
run;
proc print;
run;

data zoo1;
set zoo;
Name=catx('','Manoj');
run;
proc print;
run;

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More SAS Interview Questions

what is factor analysis? : Sas-administrator

0 Answers  


What is SAS? is it a software just for use or we can creat something over there?

5 Answers   Cognizant,


what is SAS ACCESS AND SAS CONNECT ? Give an example and data statements used.

1 Answers   TCS,


Difference between nodup and nodupkey options?

0 Answers  


Tell me about % include and % eval? : sas-macro

0 Answers  






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

7 Answers   CitiGroup, Franklin Templeton,


Describe crosslist option in tables statement?

0 Answers  


What is the purpose of trailing @ and @@? How do you use them?

0 Answers  


What is _n_?

22 Answers  


Explain the purpose of retain statement.

0 Answers  


How would you remove a format that has been permanently associated with a variables?

3 Answers  


what does .. meant in sas macros

3 Answers   D&B,


Categories