SAS逻辑库是可以有多个物理位置的


下面的代码示例给出了下定义多个物理位置的SAS逻辑库Y2014。

这3段代码都能实现将逻辑库引用名:Y2014与4个物理位置:

e:\sas\data\Quater1

e:\sas\data\Quater2

e:\sas\data\Quater3

e:\sas\data\Quater4

相关联。

 

代码1:

LIBNAME Y2014('e:\sas\data\Quater1'  'e:\sas\data\Quater2'  'e:\sas\data\Quater3'  'e:\sas\data\Quater4');

注意:使用空格进行分隔

 

代码2:

LIBNAME Q1  'e:\sas\data\Quater1'

LIBNAME Q2  'e:\sas\data\Quater2'

LIBNAME Q3  'e:\sas\data\Quater3'

LIBNAME Q4  'e:\sas\data\Quater4'

LIBNAME Y2014 (Q1 Q2 Q3 Q4);

 

代码3:

LIBNAME Q2  'e:\sas\data\Quater2'

LIBNAME Q3  'e:\sas\data\Quater3'

LIBNAME Q4  'e:\sas\data\Quater4'

LIBNAME Y2014 ('e:\sas\data\Quater1' Q2 Q3 Q4);

当一个物理位置下的空间不够时,定义多个物理位置的SAS逻辑库非常有用。

这样,在写程序时只需要用一个SAS逻辑库引用名,当前面的物理路径空间用尽时,SAS会自动将定义的SAS文件存储到其他物理路径。 

 

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-05-19
  • 2021-12-02
  • 2021-11-23
  • 2021-08-09
  • 2021-04-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案