intheangel 发表于 2014-3-9 20:04 
额,你的和我不一样,
_NAME_        199007        199008        199009        199010,
你的变量就是 ...
 NOT OK ! PLS SEE Line 29 : ERROR
1                     
1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='stdize';
4          %LET _CLIENTPROJECTPATH='C:\Users\Commodity\Desktop\stand.egp';
5          %LET _CLIENTPROJECTNAME='stand.egp';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
NOTE: Procedures may not support all options or statements for all devices. For details, 
      see the documentation for each procedure.
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport12(ID=EGSR) FILE=EGSR STYLE=Analysis
12       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/EnterpriseGuide/4.3/Styles/Analy
12       ! sis.css") NOGTITLE NOGFOOTNOTE GPATH=&sasworklocation ENCODING=UTF8
12       ! options(rolap="on");
NOTE: Writing TAGSETS.SASREPORT12(EGSR) Body file: EGSR
13         
14         GOPTIONS ACCESSIBLE;
15         data before;
16          input ind bm1 bm2 bm3 bm4 bm5;
17          cards;
NOTE: The data set WORK.BEFORE has 4 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds
      
22          ;
23          run;
24         proc transpose out=a;
25          id ind;
26          run;
NOTE: There were 4 observations read from the data set WORK.BEFORE.
NOTE: The data set WORK.A has 5 observations and 5 variables.
NOTE: PROCEDURE TRANSPOSE used (Total process time):
      real time           0.03 seconds
      cpu time            0.01 seconds
      
27         PROC STANDARD DATA=work.a
28          MEAN=0 STD=1 OUT=after;
29          VAR 199007 199008 199009 199010;
                ______
                22
                76
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, _ALL_, _CHARACTER_, 
              _CHAR_, _NUMERIC_.  
ERROR 76-322: Syntax error, statement will be ignored.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.AFTER may be incomplete.  When this step was stopped there were 
         0 observations and 0 variables.
NOTE: PROCEDURE STANDARD used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds
      
30          PROC MEANS DATA=after MAXDEC=2 MEAN STD;
31          RUN;
NOTE: No variables in data set WORK.AFTER.                                 
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds
      
32         
33         
34         
35         GOPTIONS NOACCESSIBLE;
36         %LET _CLIENTTASKLABEL=;
37         %LET _CLIENTPROJECTPATH=;
38         %LET _CLIENTPROJECTNAME=;
39         %LET _SASPROGRAMFILE=;
40         
41         ;*';*";*/;quit;run;
42         ODS _ALL_ CLOSE;
43         
44         
45         QUIT; RUN;