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
Answer Posted / ashish
data count;
set l;
if count(name,'malli') then b=_n_;
run;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
how does sas handle missing values in assignment statements? : Sas programming
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
describe about physical data integration? : Sas-di
What is the use of function Proc summary?
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
Give an example where SAS fails to convert character value to numeric value automatically?
What are the implications?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
Name any two sas spawners? : sas-grid-administration
What sas features do you use to check errors and data validation?
What are the limitations for memory allocation for SAS variables
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
How do dates work in sas?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation