| 
 | 
楼主
 
 
 楼主 |
发表于 2003-10-14 10:36:19
|
只看该作者
 
 
 
请问高手:这是什么错误,如何修改呢?
<!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->  
data stacey.laydown1; 
set stacey.laydown1; 
format  
        xjoin date7. 
; 
xjoin=.; 
if _n_le 13 then xjoin=intnx('day','08dec00'd,_n_); 
if _n_gt 13 then xjoin=intnx('day','02jan01'd,_n_-13); 
run; 
 
LOG窗口: 
56   data stacey.laydown1; 
57   set stacey.laydown1; 
58   format 
59       xjoin date7. 
60   ; 
61   xjoin=.; 
NOTE: SCL source line. 
62   if _n_le 13 then xjoin=intnx('day','08dec00'd,_n_); 
              -- 
              388 
                 ---- 
                 202 
NOTE: SCL source line. 
63   if _n_gt 13 then xjoin=intnx('day','02jan01'd,_n_-13); 
              -- 
              388 
                 ---- 
                 202 
ERROR 388-185: Expecting an arithmetic operator. 
 
ERROR 202-322: The option or parameter is not recognized and will be ignored. 
 
64   run; 
 
NOTE: The SAS System stopped processing this step because of errors. 
WARNING: The data set STACEY.LAYDOWN1 may be incomplete.  When this step was stopped there 
         were 0 observations and 16 variables. 
WARNING: Data set STACEY.LAYDOWN1 was not replaced because this step was stopped. 
NOTE: DATA statement used: 
      real time           0.01 seconds 
      cpu time            0.01 seconds |   
 
 
 
 |