NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) 9.1 (TS1M2) Licensed to UNIVERSITY OF MANITOBA, Site 0002246003. NOTE: This session is executing on the WIN_PRO platform.
NOTE: SAS initialization
used:
real time 7.68 seconds
cpu time 1.31 seconds
1 ******************************************
2 * Example 3 - only for creating *
3 * htwt_reg data used *
4 * f=htwt_reg_cr.sas *
5 * *
6 * This program creates a temporary *
7 * SAS data set used in in the example 3 *
8 * program. In most cases this data set *
9 * will be available as a permanent SAS *
10 * file in the course library *
11 ****************************************** ;
12
13 data htwt_reg ;
14 ** informats are similar to usign an informat on
15 an input statement to define the lenght of
16 a variable. This method is often used
17 when reading variable length fields from
18 list or delimited input files. ;
19 informat name $10. region $12. ;
20 input @1 name @14 region ;
21 cards ;
NOTE: The data set WORK.HTWT_REG
has 18 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.42 seconds
cpu time 0.04 seconds
40 ;
41 run;
42
43 proc contents data=htwt_reg; /* Begin a PROC step */
44 run;
NOTE: PROCEDURE CONTENTS
used (Total process time):
real time 0.45 seconds
cpu time 0.07 seconds
44 ! /* End the PROC step
*/
45
46 /* View the values of the 1st 10 observations */
47 proc print data=htwt_reg(obs=10); /* Begin a PROC step */
48 run;
NOTE: There were 10 observations
read from the data set WORK.HTWT_REG.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.06 seconds
cpu time 0.03 seconds
48 ! /* End the PROC step */
|