`

statistics server run syntax job problem

阅读更多

1 .今天在 pes 中运行高新区项目 syntax 文件时,遇到了下面的问题:

问题 1

--- PRMS ---

statisticsb -f syntax.sps -type html -i -out "ForPES0916.html"

The process terminated with the exit code 1.

--- STDOUT ---

--- STDERR ---

statisticsb WARNING: invalid language -- en. Using default language.

然后在 PASW Stastistics Server 中运行 stastisticsb 命令时,

C:\Program Files\SPSSInc\PASWStatisticsServer17>statisticsb

出现以下问题:

问题 2   statisticsb WARNING: invalid language -- en. Using default language.

由此断定是 PASWStatisticsServer17 出现问题了,而不是 syntax 文件有问题。

重装 PASWStatisticsServer17 后,上面问题得到解决。

2 .解决完上述问题后,在 pes 中运行高新区项目 syntax 文件,又出现了一个新的问题:

问题 3

--- PRMS ---

The process terminated with the exit code 1.

Remote PASW Statistics Server failed to execute syntax job.

--- STDOUT ---

。。。。。 // 中间省略了很多日志信息。

gt; 璀﹀憡  # 237

>PASW Statistics  璇诲彇鐨勮 娉曡 鍖呭惈   垨澶氫釜鍦ㄥ綋鍓嶅尯鍩熶腑鏃犳晥鐨勫瓧绗︺ 傝繖浜涘瓧绗﹀凡琚   崲涓洪棶鍙枫 ��

  45  *VARIABLE LABELS Total_Industry_Output '?? ? ? '.*

  46 

  47  SORT CASES BY code(A).

Row size: 32 bytes

Row count: 102

Uncompressed file size: 0.0MB

syntax 文件运行到有中文字符时,出现乱码情况,程序出现异常。

于是又直接用 statisticsb 运行 syntax 文件如下:

C:\temp>statisticsb -f forpes0916.sps –i

// 文件 ForPes0916.sps 需要存放在 c:\temp 文件夹下,然后进入 c:\temp 文件夹下,运行 statisticsb -f forpes0916.sps –i 机制,其中 -f file 的意思 , 后跟文件名 ,-i 是此 syntax 文件中有执行画图的操作,所有加上 -i 参数。

运行结果如下:

   68 command lines read.

    0 errors detected.

   11 warnings issued.

    1 seconds CPU time.

    2 seconds elapsed time.

      End of job.

从运行结果可以看出 : 0 个错误。所以 syntax 语法没有问题,只是上传到 pes 中的 syntax 文件中的中文字符必须处理。便把此 syntax 文件中的字符保存为 utf-8 格式再上传到 pes 中,重新运行后结果正常!于是问题 3 得到解决!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics