书本上的,但是运行不出结果data sasuser.example1_9;
input rate@@;
time=intnx('month','01mar2007'd,_n_-1);
format time monyy5.;
cards;
7.7390 7.7247 7.6330 7.5753;
proc print data=sasuser.example1_9;
run;
结果显示:
OTE: Copyright (c) 1999-2000 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software Release 8.1 (TS1M0)
Licensed to UNIVERSITY OF CALIFORNIA/BERKELEY CAMPUS, Site 0029107011.
NOTE: This session is executing on the WIN_PRO platform.
NOTE: SAS initialization used:
real time 1:11.48
cpu time 1.09 seconds
1 data sasuser.example1_9;
2 input rate@@;
3 time=intnx('month','01mar2007'd,_n_-1);
4 format time monyy5.;
5 cards;
NOTE: The data set SASUSER.EXAMPLE1_9 has 0 observations and 2 variables.
NOTE: DATA statement used:
real time 0.45 seconds
cpu time 0.06 seconds
NOTE: SCL source line.
6 7.7390 7.7247 7.6330 7.5753;
------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
7 proc print data=sasuser.example1_9;
8 run;
NOTE: No observations in data set SASUSER.EXAMPLE1_9.
NOTE: PROCEDURE PRINT used:
real time 0.26 seconds
cpu time 0.01 seconds