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



i have a data set with 20 observations i want label from 8 to 15 observations ? how you create th..

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

i have a data set with 20 observations i want label from 8 to 15 observations ? how you create th..

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

i have a data set with 20 observations i want label from 8 to 15 observations ? how you create th..

Answer / krishna

data class;
set sashelp.class(firstobs=8 obs=15);
label name='surname';
run;

Is This Answer Correct ?    7 Yes 3 No

i have a data set with 20 observations i want label from 8 to 15 observations ? how you create th..

Answer / anil

data class;
set sashelp.class(firstobs=8 obs=18);
name='surname';
run;

Is This Answer Correct ?    1 Yes 0 No

i have a data set with 20 observations i want label from 8 to 15 observations ? how you create th..

Answer / naveen

option firstobs=8 obs=20;
proc print data=c label;
label sex=sir;
run;

Is This Answer Correct ?    0 Yes 0 No

i have a data set with 20 observations i want label from 8 to 15 observations ? how you create th..

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

Post New Answer

More SAS Interview Questions

How can you limit the variables written to output dataset in data step?

0 Answers  


what are the categories that sas informats are used to the place the data? : Sas-administrator

0 Answers  


what is the difference between DUPKEY and NODUPKEY???

4 Answers   Cognizant, EXL,


What data sets do you need to produce the report?

2 Answers   Novartis,


· What are some good SAS programming practices for processing very large data sets?

6 Answers   Quintiles,






i am importing large data from oracle to work library. in log there is a error message worklibrary space is not enough. then how to import the data safely to sas environment.

2 Answers   Cap Gemini,


hi i am nipun can anybody tell me that if a clinical sas programmer write the code and after successfull execution where do they store it. how they submit tables to TL how work is assigned to programmers either both code, log, output to be submitted. can any one tell me the process

2 Answers   HSBC,


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  


If a variable contains only numbers, can it be a character data type?

0 Answers  


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

0 Answers  


How do you put an elephant in the refrigerator?

6 Answers   Oracle,


In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?

6 Answers  


Categories