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

How do you control the number of observations and/or variables read or written?

0 Answers  


Briefly explain input and put function?

0 Answers  


what is the primary variable in your study?

3 Answers   Accenture,


Name and describe few sas character functions that are used for data cleaning in brief.

0 Answers  


how can you improve the performance of a query, If it is excuting very slowly?

2 Answers   Zensar,






what does the run statement do? : Sas programming

0 Answers  


What does P-value signify about the statistical data?

0 Answers  


How do you download a flat file from Mainframe to your local PC using SAS?

3 Answers  


What are the features of base sas system?

0 Answers  


In the flow of DATA step processing, what is the first action in a typical DATA Step?

6 Answers   Accenture,


How do you debug and test your SAS programs?

0 Answers   Quintiles,


what are the considerations when picking a SAS/STAT procedure?

0 Answers   Accenture, Quintiles,


Categories