全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
6830 9
2013-05-30
悬赏 888 个论坛币 已解决
复制代码


1    data a;
2    input x;
3    format x pvalue6.4;
              ---------
              48
ERROR 48-59: The format PVALUE was not found or could not be loaded.

4    cards;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.A may be incomplete.  When this step was stopped there were 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.29 seconds
      cpu time            0.03 seconds

6    ;


7    run;


输出格式pvalue,以前没问题的,不知道突然怎么的,就出现了找不到输出格式的问题,求助
版本SAS 9.2 TS level 2M2
但试了一些其它的格式如z6. , percent10.2; yymmdd10.;
都是可以的啊,为什么就这个pvalue的找不到
并且,直接用proc 步计算统计量p值的时候,p值不能正确显示,也会出现上述的waring
34   proc univariate data=sashelp.class;
35   var age;
36   run;

WARNING: 格式“pvalue6.4”加载失败!
NOTE: “PROCEDURE UNIVARIATE”所用时间(总处理时间):
      实际时间          0.45 秒
      CPU 时间          0.06 秒



补充:强烈怀疑SAS的格式目录或文件被损坏,想知道格式文件存在什么地方,找别人电脑上的拷贝过来替换一下。




最佳答案

pobel 查看完整内容

关于sas自带format的文件存放位置: data test; set sashelp.vformat; where fmtname="PVALUE"; put path= objname=; run; 附件中是 9.1.3 中PVALUEw.d对应的文件,不知能否解决楼主问题。
二维码

扫码加我 拉你入群

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

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

全部回复
2013-5-30 14:03:03
关于sas自带format的文件存放位置:


data test;
   set sashelp.vformat;
   where fmtname="PVALUE";
   put path= objname=;
run;

附件中是 9.1.3 中PVALUEw.d对应的文件,不知能否解决楼主问题。

附件列表

uwfpvalu.zip

大小:7.64 KB

 马上下载

本附件包括:

  • uwfpvalu.dll

二维码

扫码加我 拉你入群

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

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

2013-5-30 14:42:10
重启SAS。。。。试试其他格式。。。。
9.3木问题
二维码

扫码加我 拉你入群

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

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

2013-5-30 18:28:56
If you try to use a SAS data file that has permanent formats but you don't have the format library, you will get errors like this.

    ERROR: The format $MAKEF was not found or could not be loaded.
    ERROR: The format FORGNF was not found or could not be loaded.

Without the format library, SAS will not permit you to do anything with the data file.  However, if you use options nofmterr; at the top of your program, SAS will go ahead and process the file despite the fact that it does not have the format library.  You will not be able to see the formatted values for your variables, but you will be able to process your data file.  Here is an example.

    OPTIONS nofmterr;
    libname in "c:\";

    PROC FREQ DATA=in.auto;
       TABLES foreign make;
    RUN;
二维码

扫码加我 拉你入群

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

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

2013-5-30 18:52:46
复制代码
In this example, SAS supplied formats would be searched first, followed by work.formats, then myfmtlib.formats, and finally myfmtlib.cat1.
二维码

扫码加我 拉你入群

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

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

2013-6-2 18:01:20
哥,没有解决我的问题,我就是上面那个代码,就是pvalue6.这样的格式找不到,原来是可以的,现在不行了
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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