由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - ODS target.ExcelXP 生成的EXCEL文件问题
相关主题
受不了EXCEL了(包子请教 proc report ods excel file)[提问]如何用SAS在同一个ExcelBook里create several spreadsheets?
SAS有类似put直接往output里写东西的语句吗?这里有没有SAS ODS高手?
ods proc reportproc report format question
SAS ODS PDF 的问题包子请教:SASoutput encoding的问题
问个sas日期小白问题batch?
How to import several excel files together?[合集] 请教一个sas问题
how to use Scan in SAS (so it works like parse in excel)请教 SAS macro function 的问题
请教SAS ODS to Excel求助关于sas macro 中的if- then语句
相关话题的讨论汇总
话题: ods话题: width话题: excel话题: file话题: datestamp1
进入Statistics版参与讨论
1 (共1页)
p********a
发帖数: 5352
1
OPEN的时候每次都要提示 it is in a different format than specified by the
file extension. Verify that file is not corrupted ...
这很ANNOYing,有没有办法不让EXCEL出这个提示呢?我知道它其实是XML。
g*****d
发帖数: 526
2
呃,用dde。。。

【在 p********a 的大作中提到】
: OPEN的时候每次都要提示 it is in a different format than specified by the
: file extension. Verify that file is not corrupted ...
: 这很ANNOYing,有没有办法不让EXCEL出这个提示呢?我知道它其实是XML。

s*******e
发帖数: 1385
3
为什么我没有过这种问题,你specify的file name那么是XXXXXX.xls吗?

【在 p********a 的大作中提到】
: OPEN的时候每次都要提示 it is in a different format than specified by the
: file extension. Verify that file is not corrupted ...
: 这很ANNOYing,有没有办法不让EXCEL出这个提示呢?我知道它其实是XML。

p********a
发帖数: 5352
4
Yes, Excel extensions.
My file was created under unix SAS. Maybe it is because of Unix?
My other files created under Windows don't have such issues.

【在 s*******e 的大作中提到】
: 为什么我没有过这种问题,你specify的file name那么是XXXXXX.xls吗?
s*******e
发帖数: 1385
5
I don't have this problem with unix SAS either.

【在 p********a 的大作中提到】
: Yes, Excel extensions.
: My file was created under unix SAS. Maybe it is because of Unix?
: My other files created under Windows don't have such issues.

p********a
发帖数: 5352
6
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= 'yes'
embedded_footnotes='yes' default_column_width="35, 35" width_fudge='0.75'
TITLE_FOOTNOTE_WIDTH="50" sheet_name= "xxxx Summary");
proc report data=dir_file nowd split="|" missing headline headskip;
title1 "xxxxxx Report";
title2 "Updated on: &datestamp1";
column owner size fdate directory dsn ;
define owner / display "Owner" flow width=10 ;
define size / format=comma10.2 "Size in GB" width=10;
define fdate / format=mmddyy10. "Last Modified Date" width
=10;
define directory / "Directory" width=150;
define dsn / "Dataset Name" width=100;
run;
Quit;
ODS tagsets.excelxp close;
s*******e
发帖数: 1385
7
ODS listing close;
ODS tagsets.ExcelXP path=
Should it be "ODS tagsets.ExcelXP file="

is
bquote(
autofit

【在 p********a 的大作中提到】
: 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

p********a
发帖数: 5352
8
Thanks!
1 (共1页)
进入Statistics版参与讨论
相关主题
求助关于sas macro 中的if- then语句问个sas日期小白问题
发包子求大牛解SAS问题,急How to import several excel files together?
why this error in %if statementhow to use Scan in SAS (so it works like parse in excel)
SAS 一问. 谢谢!请教SAS ODS to Excel
受不了EXCEL了(包子请教 proc report ods excel file)[提问]如何用SAS在同一个ExcelBook里create several spreadsheets?
SAS有类似put直接往output里写东西的语句吗?这里有没有SAS ODS高手?
ods proc reportproc report format question
SAS ODS PDF 的问题包子请教:SASoutput encoding的问题
相关话题的讨论汇总
话题: ods话题: width话题: excel话题: file话题: datestamp1