LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 24 Jun 2005 13:50:30 -0800
Reply-To:     David Neal <afdbn@UAA.ALASKA.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David Neal <afdbn@UAA.ALASKA.EDU>
Subject:      ODS fails to create file (v9.1.3-sp2)
Content-Type: text/plain; charset=us-ascii

I have a problem with ODS. It seems to have a problem creating a file with a specific name. When I run the following code, it fails to create the output file but when I change the name slightly, everything works.

Seems to have a problems when I end with numbers from 1 to 9. (note: "com1.doc" causes real problems.)

David Neal

data fas;

input com3 @@;

datalines;

1 2 3 4 1 2 3 4 3 4 5 6

;

run;

/*Does not work*/

ods rtf file="c:\com3.doc";

proc freq data=fas;

tables com3;

run;

ods rtf close;

/*Not even in html*/

ods html file="c:\com3.html";

proc freq data=fas;

tables com3;

run;

ods html close;

/*Works*/

ods rtf file="c:\com10.doc";

proc freq data=fas;

tables com3;

run;

ods rtf close;

ods rtf file="c:\com3a.doc";

proc freq data=fas;

tables com3;

run;

ods rtf close;

Error:

18 ods rtf file="c:\com3.doc";

ERROR: Physical file does not exist, c:\com3.doc.

ERROR: Fatal ODS error has occurred. Unable to continue processing this output destination.

WARNING: No body file. RTF output will not be created.

19 proc freq data=fas;

20 tables com3;

21 run;

NOTE: There were 12 observations read from the data set WORK.FAS.

NOTE: PROCEDURE FREQ used (Total process time):

real time 0.03 seconds

cpu time 0.03 seconds

22 ods rtf close;


Back to: Top of message | Previous page | Main SAS-L page