|
楼主

楼主 |
发表于 2011-6-9 03:31:46
|
只看该作者
macro ? GTL
[quote:25h0g47j][color=#008000:25h0g47j]WARNING: Truncated record.[/color:25h0g47j]
3346 + layout gridded / columns=2 border=true opaque=true
[color=#BF0000:25h0g47j] ------
180[/color:25h0g47j]
3346!+autoalign=(topright topleft top);
[color=#BF0000:25h0g47j]ERROR 180-322: Statement is not valid or it is used out of proper order.[/color:25h0g47j]
3347 + entry textattrs=(weight=bold) "Statistics";
[color=#BF0000:25h0g47j]-----
180[/color:25h0g47j]
ERROR 180-322: Statement is not valid or it is used out of proper order.
3347 + entry halign=right ' '
[color=#BF0000:25h0g47j] -----
180[/color:25h0g47j]
3347!+ ;
[color=#BF0000:25h0g47j]ERROR 180-322: Statement is not valid or it is used out of proper order.[/color:25h0g47j]
.....
[/quote:25h0g47j]
我的问题,macro运行无误。可以每当我
%inc 'N:\jingju11\_Macros_\plot.sas';
如上的错误便产生。
大家知道原因或者有此经验吗?
macro较长,类似如下.我想关键不是macro的具体内容,而是%inc执行时产生了莫名其妙的误解。
谢谢。京剧
[code:25h0g47j]....
%macro DistPlotMcr(dset=,var=, f=12.2, file=, orientation=, dpi=,style=);
ods path (prepend) work.templat(update);
proc template;
define statgraph ___DistPlotMcr_distribution;
MVAR VAR NOBS MEAN STD TEST TESTLABEL STAT PTYPE PVALUE;
begingraph/ designwidth=640px designheight=480px;
entrytitle "Distribution of " eval(collabel(VAR)) " with Descriptive Statistics";
layout overlay;
layout lattice / rowweights=(.9 .1) columndatarange=union rowgutter=2px;
。。。
layout overlay / yaxisopts=(offsetmin=.04 griddisplay=auto_on);
discretelegend "norm" "kern" "band" / location=inside across=1 autoalign=(right left) opaque=true;
histogram VAR / scale=percent primary=true binaxis=false;
densityplot VAR / normal( ) name="norm" legendlabel="Normal";
densityplot VAR / kernel( ) name="kern" legendlabel="Kernel" lineattrs=graphdata2(thickness=2px);
fringeplot VAR/ datatransparency=.65;
/* inset for descriptive statistics */
layout gridded / columns=2 border=true opaque=true autoalign=(topright topleft top);
...[/code:25h0g47j] |
|