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
Answer / ashish
data count;
set l;
if count(name,'malli') then b=_n_;
run;
| Is This Answer Correct ? | 2 Yes | 0 No |
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 |
i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?
Do you need to know if there are any missing values?
How to convert a numeric variable to a character variable?
Explain what is data step?
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
Hi, I have one dataset like id date ex: id date 1 13 1 13Oct2011 2 14 2 14Oct2011 3 15 3 15Oct2011 --->this is the current date here i want date format like 13Oct2011,14Oct2011 how we can modify the numeric to date format plz answer.
Which is the Best SAS training Institute in Delhi NCR for SAS certification preparation
In the flow of DATA step processing, what is the first action in a typical DATA Step?
what is the formula to measure Baseline
what is a post baseline?
How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.
why is a stop statement needed for the point=option on a set statement? : Sas programming