Previous PageNext Page

Proc Datasets Example

*** Example of using Proc Datasets ***;

data classlib.tomodify;
   input h w g $;
   datalines;
62 115 F
64 130 f
71 210 m
70 185 M
;

Proc Datasets Lib=Classlib;
   contents data=tomodify;
   run;
   change tomodify=HTWTData;
   run;
   modify HTWTData (label="Height, Weight, and Gender of Subjects");
   		rename h=height w=weight g=gender;
		format gender $upcase.;
		label  height="Height in Inches"
			 weight="Weight in pounds";
		run;
   contents data=HTWTData;
   run;

Previous PageTable Of ContentsNext Page