zoukankan      html  css  js  c++  java
  • 【SAS NOTE】用file+put实现结果输出

    1 data mysas.ifthen10;
    2     infile 'e:\ifthen.txt' firstobs=2;
    3     input date yymmn6. gtone shen dong all;
    4     y=year(date);
    5     m=month(date);
    6     format date yymmn6.;
    7     file 'e:\output.txt' print;
    8     put y '年' m 'm,getong sms users number is' gtone;
    9 run; 

    put的好处是可以直接根据变量生成文本结果报告。同时需要注意的一点是如果想输出中文需要在安装sas的时候加装中文环境。

  • 相关阅读:
    虚拟机网络配置常见问题总结
    Python
    Python
    Python
    Python
    Python
    Python
    MySQL
    MySQL
    MySQL
  • 原文地址:https://www.cnblogs.com/colipso/p/2877193.html
Copyright © 2011-2022 走看看