Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to generate the test data in sas without input data? : Sas-administrator

1176


What is the difference between reading data from an external file and reading data from an existing data set?

1232


What is the basic syntax style in SAS?

1226


Which function is used to count the number of intervals between two sas dates?

1191


explain the use of % includes a statement in sas? : Sas-administrator

1043


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2394


How can sas program be validated?

1072


what is the use of proc contents and proc print in sas? : Sas-administrator

1103


For what purposes have you used sas macros? : sas-macro

1048


Describe the ways in which you can create macro variables?

1249


What are the 3 components in sas programming?

1238


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1331


What is the maximum length of the macro variable? : sas-macro

1152


What are the difference between the sas data step and sas procs?

1250


which date functions advances a date time or date/time value by a given interval? : Sas programming

1006