- data test;
- a="2222222131362223692212222522238227252";
- b=2222226222369221222222238227252123131312123;
- c=length(a);
- run;
- options linesize=200;
- ods listing close;
- ods html path="&_projpre.\listings\" file="test1_&sysdate..xls";
- title;
- proc print data=test noobs label;
- run;
- ods html close;
- ods listing;
- options linesize=200;
- ods listing close;
- ods tagsets.excelxp file ="&_projpre\listings\test2_&sysdate..xls";
- ods tagsets.Excelxp options(sheet_name="test");
- proc report data =test wrap nowd headline headskip missing split="~";
- columns _all_;
- define _all_ / display flow style(column)={font_size=10pt borderwidth=1 background=white bordercolordark=black}
- style(header)={font_size=10pt font_weight=bold borderwidth=1 bordercolordark=black};
- run;
- ods tagsets.excelxp close;
- ods listing;
是因为a变量过长,将a减少至31个字符后方可正常输出
这是什么原因呢?



雷达卡


京公网安备 11010802022788号







