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 |
Can anyone help to find a statement to get all the predefined formats?
3 Answers Verinon Technology Solutions,
what are methods to identify duplicate observations?
What is the good sas programming practices for processing large data sets?
what are scrubing procedures in SAS?
What do you know about sas data set?
Explain the main difference between the sas procedures and functions? : Sas-administrator
What are the features of SAS?
How to specify variables to be processed by the freq procedure?
Briefly explain input and put function?
For what purposes have you used sas macros? : sas-macro
data voter; input Age Party : $1. (Ques1-Ques4)($1. + 1); datalines; 23 D 1 1 2 2 45 R 5 5 4 1 67 D 2 4 3 3 39 R 4 4 4 4 19 D 2 1 2 1 75 D 3 3 2 3 57 R 4 3 4 4 ; Idont understand what the (Ques1-Ques4)($1. + 1) means. I have seen (Ques1-Ques4)(4*$1.), but what is (Ques1-Ques4)($1. + 1)? Appreciate all help Thanks
What are the data types does SAS contain?