由买买提看人间百态

topics

全部话题 - 话题: printto
1 (共1页)
h******e
发帖数: 1791
1
来自主题: Statistics版 - SAS proc printto 问题。
请给看看以下code为什么把结果打在了log里而不是指定文件?
outfile已经设好,没问题。
string是dataset report里需要输出的变量。
proc printto new print = outfile; run;
data _null_;
set report;
put @1 string $char134.;
run;
proc printto; run;
l**********8
发帖数: 305
2
来自主题: Statistics版 - SAS macro Debug

************************************************************
上个完整的LOG, 谢谢大家了
****************************************************************
NOTE: PROCEDURE PRINTTO used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds

25
26 *-----------------------------------------------------;
27 %macro process(year,yr,file,first,numobs);
28
29 data cartemp;
30 set loc.carl&year.
31 (firsto... 阅读全帖
m**********n
发帖数: 34
3
来自主题: Statistics版 - 如何从sas output里读入数据。
Hope it helps.
You need to use PROC PRINTTO before PROC REPORT,
then put your PROC REPORT code as it is, followed by PROC PRINTTO.
After that is done, you use DATA step to read in this OUTFILE,which would be
your original OUTPUT file if you only use PROC REPORT.
Let me know if you have any questions.
proc printto new print=outfile; run;
PROC REPORT DATA=final_date NOWD HEADLINE HEADSKIP MISSING SPLIT='|' SPACING
=1;
COLUMN ("| | MY TITLE HERE |With ALL Available Sites | |-- "
f******u
发帖数: 250
4
don't know if it works;
PROC PRINTTO log="C:\desktop\test.sas" NEW;
RUN;
your file;
PROC PRINTTO log=log;
RUN;
a***d
发帖数: 336
5
it works ah..
options mprint;
filename clog "C:\desktop\test.txt";
proc printto log=clog;run;
data two;
set one;
if _n_=1 then do;
put 'this is the data';
put 'Please read this in details';
end;
call execute('%gg('||variableName||', '||variableLength||', '||price||')');
run;
proc printto; run;
g**r
发帖数: 425
6
来自主题: Statistics版 - SAS log window full,跪求解决方法
filename tmepfile "a file location file.log";
proc printto log=tmpfile;
run;
o****o
发帖数: 8077
7
来自主题: Statistics版 - SAS help needed: baozi will be given
does your SAS print out a lot of warning or error messages?
try options error=1; to limit error msg
it looks in SAS there is noway to turn off warning msg, but you can redirect your log output by using PROC PRINTTO log=&yourfile; RUN;
h****s
发帖数: 16779
8
来自主题: Statistics版 - SAS help needed: baozi will be given
PROC PRINTTO log = . print = .; RUN;
把log和output都存到硬盘上就好了。
s***r
发帖数: 1121
9
来自主题: Statistics版 - SAS help needed: baozi will be given
many thanks. Still struggling with this.
I also tried PROC PRINTTO log = . print = .; RUN; it does not work.
Whatis SASview? do I need to particularly set it up?
s***r
发帖数: 1121
10
来自主题: Statistics版 - SAS help needed: baozi will be given
PROC PRINTTO PRINT='c:\auto.lst' NEW;
By the way, it is the code to run a regression. many error messages coming
out.
f****r
发帖数: 1140
11
来自主题: Statistics版 - 问一个不产生SAS Log的命令
可以打印到word文档里。
这样子即能保存Log方便debug,又不用每次清空。
filename mylog "&filepath log.rtf";
proc printto new log=mylog;
run;
B******y
发帖数: 9065
12
来自主题: Statistics版 - 问一个不产生SAS Log的命令
多谢了!是不是用了proc printto,就直接去了mylog而不是SAS自己的Log?
B******y
发帖数: 9065
13
来自主题: Statistics版 - 问一个不产生SAS Log的命令
汇报一下使用结果:options nolog;似乎不起作用,我调试了几遍都没有成功,只好放
弃。proc printto没有问题,flyerr的例子里面有个New,不知道有什么用,反正我没
有加也是可以的。就是SAS运行起来和从前一样巨慢。
z**********i
发帖数: 12276
14
来自主题: Statistics版 - 问一个不产生SAS Log的命令
今天还用printto, 这个头次听说.
谢谢!

WARNING
h******e
发帖数: 1791
15
来自主题: Statistics版 - sas programmer
简单的很,ttest, means, freq, glm, mixed, sql, transpose, report, sort,
format, printto等。
B******y
发帖数: 9065
16
来自主题: Statistics版 - sas programmer
ttest, means, freq, glm, mixed 这些等统计师给你写好样本,知道到什么地方抓那
些P值之类的就可以了。report, sort, format, printto到是需要Programmer自己琢磨
怎么做好Report了。
R*********i
发帖数: 7643
17
来自主题: Statistics版 - SAS proc printto 问题。
Did you forget the "file xxxx" statement? By default contents after "put"
statement go to the log.
h******e
发帖数: 1791
18
来自主题: Statistics版 - SAS proc printto 问题。
no, outfile has been set:
filename outfile "&outpath.&fname..txt";
h******e
发帖数: 1791
19
来自主题: Statistics版 - SAS proc printto 问题。
彻底明白了,多谢了。
A*******s
发帖数: 3942
20
proc printto print="./output.lst";
run;
l*********s
发帖数: 5409
21
proc printto
h******e
发帖数: 1791
22
proc printto

##
l**********8
发帖数: 305
23
来自主题: Statistics版 - SAS macro Debug
为啥log总是报错,说找不到file work.cartemp
%let dataloc = /disk/agedisk1/medicare/data/20pct/car;
libname bworkhos "/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/temp"
;
libname temp "/disk/agebulk5/medicare.work/lbaker-DUA23466/lbaker/data/xw";
ods listing file = "/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/
temp/carrier_12212015.lst";
proc printto
log="/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/temp/carrier_
12212015.log";
run;
*------------------------------------------------... 阅读全帖
l**********8
发帖数: 305
24
来自主题: Statistics版 - SAS macro Debug
就是debug不出来,大神们救我啊
******************* 完整的 CODE ***************
%let dataloc = /disk/agedisk1/medicare/data/20pct/car;
libname bworkhos "/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/temp"
;
*libname temp "/disk/agebulk5/medicare.work/lbaker-DUA23466/lbaker/data/xw";
ods listing file = "/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/
temp/carrier_12222015.lst";
proc printto
log="/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/temp/carrier_
12222015.log";
run;
*--------------... 阅读全帖
l**********8
发帖数: 305
25
来自主题: Statistics版 - SAS macro Debug
就是debug不出来,大神们救我啊
******************* 完整的 CODE ***************
%let dataloc = /disk/agedisk1/medicare/data/20pct/car;
libname bworkhos "/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/temp"
;
*libname temp "/disk/agebulk5/medicare.work/lbaker-DUA23466/lbaker/data/xw";
ods listing file = "/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/
temp/carrier_12222015.lst";
proc printto
log="/disk/agebulk5/medicare.work/lbaker-DUA23466/ausmita/temp/carrier_
12222015.log";
run;
*--------------... 阅读全帖
1 (共1页)