全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2175 2
2014-11-10
The SAS functions of inputn,inputc, putn,putc are allowed a format name argument as a variable. But it has limitations about how many formats can be loaded at running time.

data fmt;
   do i=1 to 5000;
      fmtname=catt('_',i,'_');
      start=i;
      label=i;
      type='I';
      output;
    end;
run;

options nonotes;
proc format cntlin=fmt;
run;
options notes;

data test;
   *do i=1 to 50;
   do i=1 to 5000;
     fmtname=catt('_',i,'_');
     value=inputn(compress(put(i,best.)),fmtname);
     output;
   end;
run;

proc print;run;
二维码

扫码加我 拉你入群

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

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

全部回复
2014-11-10 11:56:01
thanks. what is the reason then? JingJu
二维码

扫码加我 拉你入群

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

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

2014-11-10 13:06:08
I was told by a SAS developer that the limitation was by designed back then.

It can easily bypass by a hash object implement.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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