由买买提看人间百态

topics

全部话题 - 话题: ods
1 2 3 4 5 6 7 8 9 下页 末页 (共9页)
p***r
发帖数: 920
1
来自主题: Statistics版 - SAS help : how to macro ods
I wanna switch easily between two type of ods pdf/html, how can I code a
macro to control the on/off of ods, the manual structure is as following,
what I do so far is keeping quote and unquote which is somewhat tedious.
any suggestoin?
ods listing close;
/*ods html file="&add.\table.xls";*/
ods pdf file="&add.\table.pdf"; options orientation=landscape nodate
nonumber missing=" " papersize="letter";
ods pdf close;
/* ods html close;*/
ods listing;
o****o
发帖数: 8077
2
来自主题: Statistics版 - SAS help : how to macro ods
will this work for u? If so, pls reward me some baozi
%let pdfoff=%str(*);
%let htmloff=%str(*);
ods listing close;
&htmloff. ods html file="&add.\table.xls";
&pdfoff. ods pdf file="&add.\table.pdf";
options orientation=landscape nodate
nonumber missing=" " papersize="letter";
/* yada yada yada */
&pdfoff. ods pdf close;
&htmloff. ods html close;
ods listing;
s********r
发帖数: 729
3
来自主题: Statistics版 - 请教SAS ODS to Excel
我的问题是用ODS 输出 到excel 时候, 必要的格式不能保留
ods listing close;
ods tagsets.excelxp file='...'
options(... thousands_separator=','...)
proc report;
...
run;
ods tagsets.excelxp close;
ods listing open;
结果生成的文件里面还是没有数字的千字节分隔符‘,’。望指教,多谢!
j**********3
发帖数: 305
4
来自主题: Statistics版 - ods layout怎么不能分成两个column啊
这个用ods regions 的xy选项就可以实现啊!
example
ods layout start;
ods region x=0 in y=5.5 in height=4 in width=4 in;
%bar_chart(&dataIn, %scan(&varList,&i.,' '));
ods region x=4 in y=5.5 in height=4 in width=4 in;
%pie_chart(&dataIn, %scan(&varList,&i.,' '));
ods layout end;
z***j
发帖数: 29
5
来自主题: Chemistry版 - 求ODS反相柱用法
ODS反相柱能用THF做流动相么?我的一个酸只能溶于THF,所以想用ods柱子来分离,但
是据说ODS柱子一般得流动相是酸,甲醇,乙腈,水之类的。所以我就在这里咨询一下
做分析分离的高手们,给我稍微详细的介绍一下ODS反相柱的用法以及注意点,有推荐
的材料的话不妨给我发一下。小弟不胜感激啊!z****[email protected]
t*********l
发帖数: 778
6
来自主题: Statistics版 - 急问个简单的SAS ODS PDF的问题
我也没试出来..我用的这个
ods pdf file='';
ods listing close;
data _null_;
put'hello';
run;
ods pdf close;
ods listing;
感觉不应该用 put 和data _null_
a****a
发帖数: 3411
7
来自主题: Statistics版 - 新手请教sas ods
刚刚开始学sas
没用过ods
想用ods生成survival function,但是没有显示出来,谁能帮看看问题出在哪?
ODS GRAPHICS ON;
PROC LIFETEST DATA=mylib.survival3 PLOTS=(C S);
TIME years*status(0);
RUN;
ODS GRAPHICS OFF;
log的显示
o****o
发帖数: 8077
8
来自主题: Statistics版 - SAS help : how to macro ods
then wrap it into a macro:
%macro switch(type);
%global s1 s2;
%if %upcase(&type) eq HTML %then %do;
%let s1=html;
%let s2=xls;
%end;
%else %if %upcase(&type) eq PDF %then %do;
%let s1=pdf;
%let s2=pdf;
%end;
%mend;
%switch(pdf);
ods listing close;
ods &s1 file="&add.\table.&s2";
options orientation=landscape nodate
nonumber missing=" " papersize="letter";
ods &s1 close;
ods listing;
d*******o
发帖数: 493
9
来自主题: Statistics版 - SAS help : how to macro ods
Similar to oloolo's.
%macro odsswitch(switch = );
%if %eval(&switch) = 0 %then %do;
ods html file="&add.\table.xls";
%end;
%else %if %eval(&switch) = 1 %then %do;
ods pdf file="&add.\table.pdf"
%end;
%else %goto exit;
ods _all_ close;
ods listing;
%exit:;
%mend;
a******a
发帖数: 743
10
来自主题: Statistics版 - ods layout怎么不能分成两个column啊
想生成有两个column的gridded output 照着最简单的code写 出来怎么都是分成一张一
张的图 烦死了 大家帮个忙
有个很简单的sample code
data exp;
input age height weight;
datalines;
27 69 159
31 46 154
89 20 168
20 11 178
;
ods layout columns=2;
ods region;
proc gplot data=exp;
plot age*height; run;
ods region;
proc gplot data=exp;
plot age*weight; run;
ods layout end;
w*****y
发帖数: 130
11
my code is
ODS html file='' ;
Proc print noobs data=;
run;
ods html close;
everytime it say that the output window is full.
I dont want to print anything to the ouput window,just need to save my data
to local file in csv or xls.
should I use
ods listings close;
thanks
p********a
发帖数: 5352
12
来自主题: Statistics版 - ODS target.ExcelXP 生成的EXCEL文件问题
I used the following codes. Could you help me to take a look and see what is
wrong? Thanks
%let datestamp=%sysfunc(today(),yymmddn8.);
%let datestamp1=%sysfunc(datetime(),datetime20.);
%let datestamp2=%substr(%sysfunc(tranwrd(&datestamp1,:,_)),1,15);
%put &datestamp1 &datestamp2;
ODS listing close;
ODS tagsets.ExcelXP path = "/sassvr1/test_report" file="sassrv1_at_%bquote(
&work1pct.)._&datestamp2._CST.xls"
style=EGDefault options( autofilter='all' embedded_titles='yes' autofit
_height= 'y... 阅读全帖
s*******e
发帖数: 1385
13
来自主题: Statistics版 - ODS target.ExcelXP 生成的EXCEL文件问题
ODS listing close;
ODS tagsets.ExcelXP path=
Should it be "ODS tagsets.ExcelXP file="

is
bquote(
autofit
m*****8
发帖数: 654
14
来自主题: Statistics版 - ods proc report
i'm doing proc report and ods rtf, now my variable I want it to show like
this:
original: china guangdong guangzhou
I want to show like:
China
Guangdong
Guangzhou
in the table, how can I do that in proc report? Or how can I do that in data
steps by cocatinating?
question 2:
how to define the width in the output table, since width= do not work for
ods, is there a syntex in 'style'??
question 3:
do a page breat after a group. I guess I can find that in the book, just
want to cast it to keep lazy..
s*r
发帖数: 2757
15
why not ods?
i thought ods rft + proc report is a common combination
x***n
发帖数: 103
16
以前一直用ods rtf startpage=never 生成多个table在一页上,自从换了9.2就不起作
用了,一个表格分一页。写信去问sas 客服,他们说ods rtf从来不支持startpage=
never,但可以用startpage=no,试了也没用。问题是我用了好久了怎么可能不支持呢。
有谁有同样的问题吗?
谢谢!
y****1
发帖数: 400
17
我刚刚用9.2试了一下,就自己随便的两个数据。startpage=no还是work的啊。table都
在一页
上面。重启一下SAS或者电脑?
ods rtf file='C:\Documents and Settings\OIR
Student\Desktop\Qilong\Previous Work 5-Survey of Earned Doctors 1920-
2007\try.rtf' startpage=no;
proc freq data=Inst07;
tables postdoc;
run;
proc freq data=Inst07;
tables pdocstat;
run;
ods rtf close;
D******n
发帖数: 2836
18
来自主题: Statistics版 - [SAS] ODS output with by statement
lets say i did sth like this
ods output OneWayFreqs = tab;
proc freq;tables xxx;by yyy;run;
ods output close;
the resultant table 'tab' is a messed up, Can I tweak this to output all
the tables by yyy separately?
w*******n
发帖数: 469
19
来自主题: Statistics版 - 急问个简单的SAS ODS PDF的问题
ods pdf file="C:\a.pdf";
data _null_;
file print;
put 'Hello World!';
run;
ods pdf close;
g*********e
发帖数: 458
20
来自主题: Statistics版 - 急问个简单的SAS ODS PDF的问题
wwwscopin(and all IDs interested):
Thank you very much for your help!
But still I have some questions related.
I put the code into macro then it doesn't work again. The error report doesn
't give much info.
if you are free, please give a hand. Thank you.
%macro test;
ods pdf;
data _null_ file="C:\a.pdf";
file print;
%put 'Testing';
run;
ods pdf close;
%mend test;
%test;
r***e
发帖数: 1840
21
【 以下文字转载自 Statistics 讨论区 】
发信人: yuxuxin (开水泡妞), 信区: Statistics
标 题: 请教老刘: ods output wilcoxonscores
发信站: BBS 未名空间站 (Thu Aug 21 17:04:45 2014, 美东)
这玩儿到底产生出来什么东西。能给个very high level的表述不?
m*****8
发帖数: 654
22
来自主题: Statistics版 - ods proc report
thanks,
1, i need that format not for the header, but for the values, do you know
how? I saw programer use '/\line' seems only works in specific macro..
2, width doesn't work for ods rtf, i think i figure out by using cellwidth=
in style option;
3,....
G**S
发帖数: 1108
23
来自主题: Statistics版 - ods proc report
you need to manually insert '8' at the beginning of each page for ODS.
it's said this bug will be fixed in 9.2
m*****8
发帖数: 654
24
来自主题: Statistics版 - ods proc report
thanks guns, but i don't quite get it, can u refer something i can read?
i guess what you mean is after the report procedure, read the report, and
manually insert some values in the cells using ods statements, is that right
?
A*********u
发帖数: 8976
25
来自主题: Statistics版 - ods proc report
最好的方法就是看别人的code
你们公司的code应该是共享的吧

thanks guns, but i don't quite get it, can u refer something i can read?
i guess what you mean is after the report procedure, read the report, and
manually insert some values in the cells using ods statements, is that right
?
m*******e
发帖数: 23
26
请教如何在PROC REPORT 的TITLE 部分加粗字体?
不希望用ODS来做,因为想保留PROC REPORT 直接OUTPUT的结果(SAS 格式),然后转
换成WORD格式(通过SAS TO WORD CONVERT),目的是在WORD中显示加粗标题(BOLD).
但又不希望在WORD中操作。希望能在SAS中自动产生,并且在转换过程中保留。
x***n
发帖数: 103
27
谢谢了,sas回信了
The problem is a defect in SAS 9.2 where use of ORIENTATION=LANDSCAPE and
specifying BODYTITLE prevents tables from appearing on the same page when
you specify STARTPAGE=NO using ODS RTF.
A workaround is to use the new tagsets.rtf in SAS 9.2.
It uses BODYTITLE by default, so you do not need to specify it.
问题出在我这些option同时用.在9.1是没有这个bug的。
o******6
发帖数: 538
28
☆─────────────────────────────────────☆
whatsummer (不理猫变女鬼) 于 (Thu Mar 6 10:27:28 2008) 提到:
都是一页一个表格,哪怕只是一个短小的表格。
然后我要手动给他们一个一个拷进word
怎么迫使sas把表格之间只留固定的几行呢?
多谢
☆─────────────────────────────────────☆
hmsam (babypig) 于 (Thu Mar 6 12:37:08 2008) 提到:
in ods rtf statement: startpage=never

☆─────────────────────────────────────☆
whatsummer (不理猫变女鬼) 于 (Thu Mar 6 14:56:44 2008) 提到:
神人!!!谢谢
☆─────────────────────────────────────☆
whatsummer (不理猫变女鬼) 于 (Thu Mar 6 15:01:21 2008) 提到
r*****y
发帖数: 199
29
如题,用ods html想把图片做在html文件里面,但是run完之后图片都显示不出来,都
是一个框里面一个X,有人能指点一下吗,低级问题请不要鄙视啊!
o******6
发帖数: 538
30
☆─────────────────────────────────────☆
whatsummer (不理猫变女鬼) 于 (Thu Mar 6 10:27:28 2008) 提到:
都是一页一个表格,哪怕只是一个短小的表格。
然后我要手动给他们一个一个拷进word
怎么迫使sas把表格之间只留固定的几行呢?
多谢
☆─────────────────────────────────────☆
hmsam (babypig) 于 (Thu Mar 6 12:37:08 2008) 提到:
in ods rtf statement: startpage=never

☆─────────────────────────────────────☆
whatsummer (不理猫变女鬼) 于 (Thu Mar 6 14:56:44 2008) 提到:
神人!!!谢谢
☆─────────────────────────────────────☆
whatsummer (不理猫变女鬼) 于 (Thu Mar 6 15:01:21 2008) 提到
A*******s
发帖数: 3942
31
来自主题: Statistics版 - [SAS] ODS output with by statement
use the path of ods output tables
P****D
发帖数: 11146
32
Yes, ods listings close; will do. See http://www.ats.ucla.edu/stat/sas/faq/odsexample.htm
a****a
发帖数: 3411
33
来自主题: Statistics版 - 新手请教sas ods
我的是9.1
ods不是在base包里的吗
h*e
发帖数: 10233
34
来自主题: Statistics版 - 这里有没有SAS ODS高手?
请教一个问题。我有一个dataset要output到excel,用的是ODS, 现在有一个问题。
dataset第1*n+1行(1,4,7。。。)需要用interger format,第1*n+2行(2,5,8。
。。)需要用currency format,
第1*n+3行(3,6,9。。。)需要用% format.这个code要怎么写呢?我想用cellstyle
as,但是不知道format部分要加在哪里。高手指点一下。
h*e
发帖数: 10233
35
来自主题: Statistics版 - 这里有没有SAS ODS高手?
应该用不上macro,就是ODS里的style,不过不管用啥,能output出来这个结果就成,你
知道吗?
l*****8
发帖数: 483
36
来自主题: Statistics版 - 这里有没有SAS ODS高手?
可不可以在原来的dataset里改,存在一个text field里,然后再ODS到excel 里。。
data bb;
length text_field $100.;
set your_dataset;
if mod(_N_,3)=1 then do; ***** ;end;
else if mod(_N_,3)=2 then do; text_field=put(your_field, DOLLAR8.); end;
else if mod(_N_,3)=0 then do; ****;end;
drop your_field;
rename text_field=your_field;
run;
b*******g
发帖数: 170
37
来自主题: Statistics版 - 菜鸟问个怎样用ods markup
工作上需要跑很多个proc mixed,想把这多个proc的结果都放到excel里面,并且每个
proc是一个tab,而不是一个table一个tab,如何才能办到?我用了ods markup,但是一
个table一个tab, 看起来太费劲了。
S*********t
发帖数: 522
38
来自主题: Statistics版 - 问一个SAS ODS RTF的问题
请教一个SAS ODS RTF问题,就是出来的Table,怎样才能在Column header的上下各加
上一条横线?另外我的Table是按Group来做的,每个Group一个表,但是表都是一样的
,没有用by,就是一个一个做的,然后有一个Column,在某些Group里有很长的值,我
用了Flow, SAS output窗口里看都是好好的,但是写到RTF里来以后,一个表在那些个
有很长值的Group里就被断成了两个。请问如何解决?谢谢了。
j**********3
发帖数: 305
39
来自主题: Statistics版 - ods layout怎么不能分成两个column啊
ods region有X Y选项控制位置的。可以放在一张的
h******s
发帖数: 3420
40
PROC REPORT, ODS 到 EXCEL, 动不动就把我的长数据改成1。1E+11 之类的,
我要改回 110011876592 之类, 怎么办?而且数据长度不一,不一定都
是12 DIGIT。 试了NUMERIC 和 CHARACTER FORMAT, 都给我换成这个E格式, 受不
了拉。
求高人指点。
f**********0
发帖数: 142
41
add options to define the length
ods tagsets.excelxp
file="xx.xls"
options (sheet_name = "&datain"
frozen_headers='1'
absolute_column_width='15,10,25,10,10,15,15,15'
Embedded_titles='yes'
Embedded_Footnotes='no'
Autofit_Height = 'yes');
j****e
发帖数: 158
42
use ods tagsets excel
ods listing close;
ods tagsets.ExcelXP path='output-directory' file='aedata.xml' style=SUGI31;
ods tagsets.ExcelXP options(sheet_name='Data - Trial 1');
* Proc PRINT #1 here w/ style override;
ods tagsets.ExcelXP options(sheet_name='Data - Trial 2');
* Proc PRINT #2 here w/ style override;
ods tagsets.ExcelXP options(sheet_name='Summary - Trial 1');
* Proc TABULATE #1 here;
ods tagsets.ExcelXP options(sheet_name='Summary - Trial 2');
* Proc TABULATE #2 here;
ods tagsets.Exc
w****2
发帖数: 12072
43
2008年GDP数据公布后,网络上相关的讨论比往年红火许多,也许是许多人突然发现中
国GDP既将超过日本成为世界第二,从而产生的兴奋所致。
确实这样的结果出乎许多人预料。记得03,04年在舰船的一个帖子里古道就预言中国
GDP将在2010年前超过日本,当时所有人都把古道预言当做痴人说梦。05年在这里热点
论坛也发过类似预言,被网友称之为乐天派。
3年前说今年中国GDP超过日本几乎被所有人当成虚妄梦幻,可今个2009年还就能成为现
实。认知与事实落差为什么会如此大呢?一言以概之,,就是大家都被舆论欺骗了。舆
论谁主导的呢?就是那些所谓主流经济学家和西方普世价值学说鼓吹者。那么他们是主
观故意欺骗吗?未必尽然。凡是主流经济学家基本上都是对经济学误入歧途的学者同时
也是所谓普世价值的盲信者。总之这两种人有个共同点,就是都能罔顾事实顽固的去相
信他们喜欢相信的东西。然后又把他们喜欢相信的东西当做科学的东西去占领话语坛,
去教育民众。由于他们自身的虔诚和专家的身份,所以欺骗性大也就不足为奇了。
到底什么是GDP呢?GDP能表征什么呢?
很多人都以为GDP就是衡量一个国家经济实力最权威最俱代表性的... 阅读全帖
y********o
发帖数: 2565
44
So, you wanna open the connection in your code-behind?
For oracle, do this:
Instantiate an OracleDataSource object and pass your db user name and passow
rd as well as the network protocol to its setter methods, like so:
OracleDataSource ods = new OracleDataSource();
ods.setUser(dbUser); // e.g. "hr"
ods.setPassword(dbPassword); // e.g. "hr"
ods.setDriverType(driverType); // e.g. "oci8"
ods.setNetworkProtocol(networkProtocol); // e.g. "ipc"
And then you say,
Connection conn = ods.getConnection(
P**********c
发帖数: 17
45
来自主题: Statistics版 - Ask 2 simple SAS questions,thanks
第一个,outp选项好像没有输出sig,可以试试比较笨的方法,用 ods trace和ods
output,比如:
data temp;
do i=1 to 30;
x=rannor(0);
y=rannor(0);
z=rannor(0);
output;
end;
ods trace on;
proc corr data=temp nosimple outp=temp_corr;
var x y z;
run;
ods trace off;
ods output PearsonCorr=temp_corr_sig;
proc corr data=temp nosimple outp=temp_corr;
var x y z;
run;
ods output close;
proc print data=temp_corr_sig;
run;
第二题不太全明白具体的意思

level到指定
)。
y****d
发帖数: 432
46
来自主题: Statistics版 - 【分享】SAS2010全球论坛文章合集
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
前面说明:
需要的童鞋请到我的签名档的博客查找!谢谢!发E-mail太累了!
觉得有价值的话可以顶一下,以便更多的人看到!谢谢!
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
SAS2010全球论坛文章
1-10
Getting Connected to Your Data with SAS/CONNECT®
A Robust and Flexible Approach to Automating SAS® Jobs Under UNIX
Using SAS® Output Delivery System (ODS) Markup to Generate Custom
PivotTable and PivotChart Reports
Creating Easily Reusable and Extensible Processes: Code That Thinks for
Itself
ODS HTML Evolution, HTML that scrolls, panels, ... 阅读全帖
p***s
发帖数: 68
47
来自主题: Statistics版 - 求助:SAS 画图输出问题.
Two solutions:
1. Use Adobe Acrobat (professional version, not reader) to combine multiple
files into a single file.
2. Use ODS Graphics PDF output format as below:
ods graphics / reset=all;
ods list close;
ods pdf file=".pdf";
......
......
......
ods pdf close;
ods listing;
d******9
发帖数: 404
48
来自主题: Statistics版 - proc report format question
Finally, I find below info from SAS support.
Usage Note 32414: How can I prevent loss of leading zeroes when generating
Microsoft Excel output with ODS
http://support.sas.com/kb/32/414.html
Microsoft Excel uses the general format when importing data values that do
not have an Excel format applied. This general format attempts to determine
how the value should be formatted. For example, an account number that is
not alpha numeric and has leading zeroes will lose the leading zero. The
same problem... 阅读全帖
X****r
发帖数: 3557
49
来自主题: Programming版 - 谁给讲讲这javascript代码
Exactly. The code is almost the same as
var oDS = new YAHOO.util.FunctionDataSource(matchNames);
var oAC = new YAHOO.widget.AutoComplete("myInput", "myContainer", oDS);
YAHOO.example.FnMultipleFields = {oDS : oDS, oAC : oAC};
Except that the variable oDS and oAC are never introduced in the global
(or current) scope.

return
inner
o******m
发帖数: 23
50
来自主题: Statistics版 - SAS输出到Excel/pdf
Following is an abbr I wrote to handle daily output needs, you can have a
look and learn learn.
-----------
DM LOG 'CLEAR'; DM OUTPUT 'CLEAR';
%MACRO SWITCH(TYPE);
%GLOBAL K1 K2;
%IF %UPCASE(&TYPE) EQ HTML %THEN %DO;%LET K1=; %LET K2=%STR(*);%END;
%ELSE %IF %UPCASE(&TYPE) EQ PDF %THEN %DO;%LET K1=%STR(*); %LET K2=;%END;
%MEND;
%SWITCH(HTML|PDF);
%LET TABLENAME=TABLE_TEMP;ODS _ALL_ CLOSE;
&K1. ODS HTML FILE="&ADD.\&TABLENAME.(&RUNDATE).XLS"; &K1. OPTION LINESIZE
=128 PAGESIZE=160;
&K2. ... 阅读全帖
1 2 3 4 5 6 7 8 9 下页 末页 (共9页)