The MCHP SAS MANUAL - Create Height/Weight (log)

         


Sample Data Sets: Height/Weight - log

241
242  ************************************
243  * f=htwt_cr.sas                    *
244  *                                  *
245  * This program creates a temporary *
246  * SAS data set using raw values    *
247  * entered for 18 observations.     *
248  ************************************;
249
250  data htwt;                  /* Begin the DATA step */
251            /* Describe variable names and locations */
252    input name $ 1-10 sex $ 12 age 14-15
253          height 17-18 weight 20-22;
254             /* Read the following lines of raw data */
255  cards;

NOTE: The data set WORK.HTWT has 18 observations and 5
      variables.
NOTE: DATA statement used:
      real time           0.04 seconds


274  ;              /* End the lines of raw data */
275  run;           /* End the DATA step */
276
277                   /* Obtain info on the data set */
278  proc contents data=htwt; /* Begin a PROC step */
279  run;

NOTE: PROCEDURE CONTENTS used:
      real time           0.16 seconds

279!                          /* End the PROC step */

280
281        /* View the values of the 1st 10 observations */
282  proc print data=htwt(obs=10);  /* Begin a PROC step */
283  run;

NOTE: PROCEDURE PRINT used:
      real time           0.04 seconds

283!                                /* End the PROC step */


Last modified on