j*******r 发帖数: 412 | 1 proc format;
value gender 1 = ' Male '
2 = ' Female';
run;
我想把这个format在proc tabulate里显示出来,留着blanks这样可以有错位的效果。
结果打印结果是leading blanks被自动删除了。
十分苦恼,求好心的专家点拨:
怎么才能保留这些blanks呢? |
l****u 发帖数: 529 | 2 Is it in a rtf form? If you want to use rtf form to output, you can define
in the style with asis=on. |
j*******r 发帖数: 412 | 3 Thanks luanyu.
yes, it is rtf output.And I saw examples with proc report.
It's still not working as I intended in the proc tabulate statement.
btw,
I just found a workaround thanks to your hint:
value gender 1 ='03'x' Male'
2 ='03'x' Female';
too bad it's only 1 space. |
l****u 发帖数: 529 | 4 find a paper for you, but I don't know if it works in your case
http://www.phuse.eu/download.aspx?type=cms&docID=332 |
G*****u 发帖数: 1222 | 5 不一定是sas的问题。有时候我从oracle导出数据到excel,用excel打开有些leading
zeros或者空格就没掉了。你可以用ultra edit看看output。 |