i have a data set with 20 observations i want label from
8 to 15 observations ? how you create this one.
Answers were Sorted based on User's Feedback
Answer / ram
Hi, We can create label for variables but not to the
observations. For, Observations we can create
formats.Either predifined of manual formats. So,please
check this
| Is This Answer Correct ? | 22 Yes | 2 No |
Answer / krishna
data c;
infile cards firstobs=8 obs=15;
input name$ sex $ age height weight;
label name='surname';
cards;
Joyce F 11 51.3 50.5
Jane F 12 59.8 84.5
Louise F 12 56.3 77.0
Alice F 13 56.5 84.0
Barbara F 13 65.3 98.0
Carol F 14 62.8 102.5
Judy F 14 64.3 90.0
Janet F 15 62.5 112.5
Mary F 15 66.5 112.0
Thomas M 11 57.5 85.0
James M 12 57.3 83.0
John M 12 59.0 99.5
Robert M 12 64.8 128.0
Jeffrey M 13 62.5 84.0
Alfred M 14 69.0 112.5
Henry M 14 63.5 102.5
Ronald M 15 67.0 133.0
William M 15 66.5 112.0
Philip M 16 72.0 150.0
;
another way
data class;
set sashelp.class(firstobs=8 obs=18);
label name='surname';
run;
| Is This Answer Correct ? | 23 Yes | 4 No |
Answer / krishna
data class;
set sashelp.class(firstobs=8 obs=15);
label name='surname';
run;
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / anil
data class;
set sashelp.class(firstobs=8 obs=18);
name='surname';
run;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajesh
first i have to select the required veriables in a new data
set there i can label the variables as u like
| Is This Answer Correct ? | 2 Yes | 5 No |
In sas admin differentiate between roles and capabilities? : sas-grid-administration
How we can call macros with in data step? : sas-macro
How do you control the number of observations and/or variables read or written?
what are the types of interactive display types? : Sas-bi
what are sas bi dashboard components? : Sas-bi
what is p-value
3 Answers Accenture, Quintiles, Sristek,
what is chi-square test? have you used that?
1 Answers Accenture, Quintiles,
data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat
What techniques and/or PROCs do you use for tables?
Does anybody have SAS Training manual or documentation or can you refer me any book to have better understanding on SAS. I am fresher to SAS tool. (Ready to pay)
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
i have a dataset with 25 obs; 10th obs has like ramu,anji,ramu,azad,ramu like this. i want to know how many times the word repeats in that obs?