标题: proc format创建的control data set中的length变量起什么作用? [打印本页] 作者: shiyiming 时间: 2008-6-4 11:22 标题: proc format创建的control data set中的length变量起什么作用? 问题描述:
用proc format cntlout=创建control data set,其中有一个length变量(标签为format length).请问这个变量的作用是什么?
(用proc format fmtlib显示format信息时,也会显示length的值)
已做工作:
1\查帮助:(<!-- m --><a class="postlink" href="http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a002473477.htm">http://support.sas.com/documentation/cd ... 473477.htm</a><!-- m -->)
(1)"specifies a numeric variable whose value is the value of the LENGTH= option",我不清楚这个length=option是出现在哪里的?
(2)"the length of the informat or format": 如果设定格式的宽度可以用default\max\min选项;如果控制formt的label在fmtlib输出中的宽度可以用maxlabeln选项.length控制的到底是什么长度呢?
2\建了一个数据集,label变量的值为长度为10的字符串,length变量的值设为5.然后用proc format cntlin=创建format.可再用fmtlib查看时,length仍为5;把数据集中length的值改为15,也一样.