我正在尝试使用SAS 9.2创建XPORT文件。其中一个标签长度超过40个字符,在PROC COPY
上被截断。
我已尝试PROC COPY
和DATA
来创建XPORT
文件。这有可能解决,还是我运气不好?
333 /* Export Dataset */
334 OPTIONS VALIDVARNAME=ANY;
335 /*
336 PROC COPY IN=work OUT=xptout MEMTYPE=data;
337 SELECT MyDataSet;
338 RUN;
339 */
NOTE: PROCEDURE DATASETS used (Total process time):
real time 0.42 seconds
cpu time 0.25 seconds
340 DATA xptout.MyDataSet;
341 SET work.MyDataSet;
342 RUN;
NOTE: The variable label {long label} has been truncated to {truncated label}.
NOTE: There were NNN observations read from the data set WORK.MyDataSet.
NOTE: The data set XPTOUT.MyDataSet has NNN observations and NN variables.
NOTE: DATA statement used (Total process time):
real time 0.12 seconds
cpu time 0.09 seconds
答案 0 :(得分:2)
多么悲伤,但这是不可能的。 XPORT格式基于80个字符块进行字节打包。标签的XPORT变量描述中有40个字符的硬限制。因此,虽然该列自身支持SAS数据集中的256个字符,但XPORT文件仅支持40个
:O(