全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3085 4
2013-04-26
有一个SPDS库下的数据集都没有压缩,需要使用options compress = yes;选项将该库下的所有数据集进行压缩;
但是库内的数据集数量太多,不可能都一一使用data set来操作表吧!
请问大家有没有别的简便方法能将该库内的所有数据集进行压缩。
我尝试过使用proc copy 该库 至另一个SPDS库内,可是查看表信息后还是没压缩。
在线等待回复,谢谢大家

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-4-26 09:46:47
options compress=yes;
proc copy in= out=  noclone; /*加上noclone选项*/
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-4-26 10:34:24
ziyenano 发表于 2013-4-26 09:46
options compress=yes;
proc copy in= out=  noclone; /*加上noclone选项*/
run;
刚才选用了几个数据集测试了下,问题得到了解决。就是不知道这个选项的含义?是否会影响COPY的速度?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-4-26 10:40:00
KennyL 发表于 2013-4-26 10:34
刚才选用了几个数据集测试了下,问题得到了解决。就是不知道这个选项的含义?是否会影响COPY的速度?
CLONE|NOCLONE specifies whether to copy the following data set attributes:
  • size of input/output buffers
  • whether the data set is compressed
  • whether free space is reused
  • data representation of input data set, library, or operating environment
  • encoding value
  • whether a compressed data set can be randomly accessed by an observation number

These attributes are specified with data set options, SAS system options, and LIBNAME statement options:
  • BUFSIZE= value for the size of the input/output buffers
  • COMPRESS= value for whether the data set is compressed
  • REUSE= value for whether free space is reused
  • OUTREP= value for data representation
  • ENCODING= or INENCODING= for encoding value
  • POINTOBS= value for whether a compressed data set can be randomly accessed by an observation number

For the BUFSIZE= attribute, the following table summarizes how the COPY statement works:
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-4-28 11:16:57
ziyenano 发表于 2013-4-26 10:40
CLONE|NOCLONE specifies whether to copy the following data set attributes:
  • size of input/outp ...
  • 明白了,谢谢!
    二维码

    扫码加我 拉你入群

    请注明:姓名-公司-职位

    以便审核进群资格,未注明则拒绝

    相关推荐
    栏目导航
    热门文章
    推荐文章

    说点什么

    分享

    扫码加好友,拉您进群
    各岗位、行业、专业交流群