我面临以下情况。从某些日子开始的sas日志不仅包括原始代码,而且只包括
之前,日志按预期工作,包括代码。
我已在网上查看但无法找到解决方案。
问题:有一些选项/代码可以恢复选项,让代码也包含在日志中吗?
更新: 根据理查德的说法,第一个选项并没有解决问题。在您建议的两个选项的日志下方:
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
SAS (r) Proprietary Software Release 9.4 TS1M3
Group=LOGCONTROL
CPUID Prints the CPU identification number at the beginning of the SAS log.
DATE Prints the date and time that a SAS program started.
DECIMALCONV=COMPATIBLE
Specifies the binary to decimal conversion and formatting methodology.
NODETAILS Does not display additional information when files are listed in a SAS library.
DMSLOGSIZE=99999 Specifies the maximum number of rows that the SAS Log window can display.
NODTRESET SAS does not update the date and time in the titles of the SAS log and procedure output file.
NOECHOAUTO Does not write statements that are in the AUTOEXEC file to the SAS log as they are executed.
ERRORS=20 Specifies the maximum number of observations for which SAS issues complete error messages.
HOSTINFOLONG Print operating environment information in the SAS log when SAS starts.
LINESIZE=132 Specifies the line size for the SAS log and for SAS procedure output for the LISTING destination.
LOGAPPLNAME= Specifies a SAS session name for SAS logging.
NOLOGLANGCHG Disables changing the language of the SAS output when the LOCALE= option is changed.
LOGPARM=WRITE=BUFFERED ROLLOVER=NONE OPEN=REPLACE
Specifies when SAS log files are opened, closed, and according to the LOG= system option, how they are named.
MISSING=. Specifies the character to print for missing numeric values.
MLOGIC Traces macro execution and writes the results to the SAS log.
NOMLOGICNEST Does not display the macro nesting information in the SAS log for MLOGIC output.
NOMPRINT Does not display the SAS statements that are generated by macro execution.
MSGLEVEL=N Specifies the level of detail in SAS log messages.
NEWS=!SASROOT/misc/base/news
Specifies the location of the news file that is to be written to the SAS log immediately after the header.
NOTES SAS writes notes to the SAS log.
NUMBER Prints the page number on the first title line of each page of SAS output.
NOOVP Disables overprinting of error messages to make them bold.
NOPAGEBREAKINITIAL
Does not begin SAS log and procedure output for the LISTING destination on a new page.
PAGESIZE=60 Specifies the number of lines that compose a page of the SAS log and SAS output.
PRINTMSGLIST Specifies to print the entire list of messages to the SAS log.
NOSOURCE Does not write program source statements to the SAS log.
SOURCE2 Writes secondary source statements from included files to the SAS log.
NOSYMBOLGEN Does not display the results of resolving macro variable references in the SAS log.
ECHO= Specifies a message that is echoed to the SAS log while initializing SAS.
RTRACE=NONE Specifies whether to produce a list of resources that are read or loaded during a SAS session.
NOFULLSTIMER Does not write performance statistics to the SAS log.
NOMSGCASE Specifies that SAS writes notes, warning, and error messages in mixed casing.
NOOPLIST Does not write SAS system option settings to the SAS log.
STIMEFMT=(NLDATM2. HMS TIMEAMPM KB MEMFULL TSFULL NC)
Specifies the format that is used to display the FULLSTIMER and STIMER output for timestamp, memory, CPU and
elapsed time statistics.
STIMER Writes real and CPU time to the SAS log.
NOVERBOSE Does not write start-up system options to the SAS log.
NOTE: PROCEDURE OPTIONS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
SAS (r) Proprietary Software Release 9.4 TS1M3
Group=LOG_LISTCONTROL
2 The SAS System 18:23 Tuesday, February 6, 2018
DATE Prints the date and time that a SAS program started.
DECIMALCONV=COMPATIBLE
Specifies the binary to decimal conversion and formatting methodology.
NODETAILS Does not display additional information when files are listed in a SAS library.
NODTRESET SAS does not update the date and time in the titles of the SAS log and procedure output file.
LINESIZE=132 Specifies the line size for the SAS log and for SAS procedure output for the LISTING destination.
NOLOGLANGCHG Disables changing the language of the SAS output when the LOCALE= option is changed.
MISSING=. Specifies the character to print for missing numeric values.
NUMBER Prints the page number on the first title line of each page of SAS output.
NOPAGEBREAKINITIAL
Does not begin SAS log and procedure output for the LISTING destination on a new page.
PAGESIZE=60 Specifies the number of lines that compose a page of the SAS log and SAS output.
NOTE: PROCEDURE OPTIONS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
答案 0 :(得分:3)
尝试检查或设置SOURCE选项
options SOURCE;
如果这似乎无法解决问题,请在提交此代码后使用显示的日志更新问题:
proc options group=logcontrol;
run;
proc options group=log_listcontrol;
run;
答案 1 :(得分:2)
显示(生成)SAS代码的另一个选项是options mprint;
- 根据documentation,这将显示SAS宏生成的代码(如果有的话)。
虽然它不会显示代码,但options notes;
会提供更详细的日志,并且 - 默认情况下启用 - 有时会因性能原因而关闭。