楼主: B.N.F
2058 8

如何判断代码执行log然后输出? [推广有奖]

  • 1关注
  • 0粉丝

已卖:3份资源

博士生

54%

还不是VIP/贵宾

-

威望
0
论坛币
2118 个
通用积分
246.8145
学术水平
15 点
热心指数
15 点
信用等级
15 点
经验
4680 点
帖子
207
精华
0
在线时间
204 小时
注册时间
2012-8-19
最后登录
2025-1-29

楼主
B.N.F 发表于 2013-9-14 16:46:20 |AI写论文
200论坛币
是这样,如果直接printto,log文件太大,得几个g,所以有没有办法判断,log里包含什么字段,然后再输出的方法?
谢谢!
关键词:Log print int 有没有 如何

沙发
yongyitian 发表于 2013-9-14 16:46:21
B.N.F 发表于 2013-9-17 10:47
能给个例子吗
logControl.PNG

藤椅
yongyitian 发表于 2013-9-14 21:50:49
The following are the options related to the log-content. Add NO before an option if you don't
need it. For example:  
option nodate nonumber ....;


  DATE              Print date and time on top of each page of SAS log and procedure output
NODETAILS         Do not display additional information in directory lists
NODTRESET         Do not update date and time for log and print output
LINESIZE=97       Line size for SAS log and SAS procedure output
MISSING=.         Character to represent missing numeric value
NUMBER            Print page number on each page of SAS output
NOPAGEBREAKINITIAL
                   Do not begin SAS log and listing files on a new page.
PAGESIZE=55       Number of lines printed per page of output

CPUID             Print CPU information at beginning of log
NOECHOAUTO        Do not echo AUTOEXEC input to log
LOGPARM=          SAS log file control parameters
MSGLEVEL=N        Level of messages displayed
NOTES             Write notes to the SAS log
NOOVP             Do not allow output lines to be overprinted
PRINTMSGLIST      Print extended lists of messages
SOURCE            Write SAS source statements to the SAS log
NOSOURCE2         Do not write secondary source statements from included files to the SAS log
ECHO=             Prints string to the log during startup.
RTRACE=NONE       A method for observing which files are used by the SAS System
NOFULLSTIMER      Do not write system performance statistics to the SAS log
NOMSGCASE         Do not uppercase messages before returning
NOOPLIST          Do not write the settings of the SAS system options to the SAS log
STIMEFMT=M        Specifies the format to use for displaying the time on STIMER output as
                   either seconds, minutes:seconds or hours:minutes:seconds.
STIMER            Writes a subset of system performance statistics to the SAS log
NOVERBOSE         Do not print configuration options to the screen

板凳
B.N.F 发表于 2013-9-14 22:03:36
yongyitian 发表于 2013-9-14 21:50
The following are the options related to the log-content. Add NO before an option if you don't
need ...
不行呀,光NOTES 也得几个G

报纸
yongyitian 发表于 2013-9-14 22:16:44
B.N.F 发表于 2013-9-14 22:03
不行呀,光NOTES 也得几个G
还有其他的 options, 比如 macro, output from proc。
但你应先看看log里都有什么。 不想要notes, 就用
options nonotes;


SAS documents
http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001906177.htm

地板
B.N.F 发表于 2013-9-14 23:51:56
yongyitian 发表于 2013-9-14 22:16
还有其他的 options, 比如 macro, output from proc。
但你应先看看log里都有什么。 不想要notes,  ...
不是不想要note,是要note,但是如果note里面还有一些信息,就输出,其余的不输出,需要对note进行判断。

7
yongyitian 发表于 2013-9-17 09:38:41
B.N.F 发表于 2013-9-14 23:51
不是不想要note,是要note,但是如果note里面还有一些信息,就输出,其余的不输出,需要对note进行判断。
很好的问题, 只是不清楚 SAS 将哪些内容作为 NOTE 输出到日志中.
可以肯定的是, 日志中有些以 NOTE: 开头的内容是可以由其他选项(option)控

制的.
可以试一试沙发里列出的系统选项并参考下面连接的最后一部分.

Customizing the Log - Altering the Contents of the Log

http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000998454.htm

8
B.N.F 发表于 2013-9-17 10:47:45
yongyitian 发表于 2013-9-17 09:38
很好的问题, 只是不清楚 SAS 将哪些内容作为 NOTE 输出到日志中.
可以肯定的是, 日志中有些以 NOTE:  ...
能给个例子吗

9
B.N.F 发表于 2013-9-18 12:29:22
yongyitian 发表于 2013-9-18 10:42
谢谢!!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-5 18:29