BookmarkSubscribeRSS Feed
wzl9527
Calcite | Level 5

if we create a rft file use ods,why do we need to program like this:

ods listing close;

ods rtf.....;

xxxxxxxxxx xxxxxxxxxxx

ods rtf close;

ods listing;

 

if we don't close listing first or sometimes we ingore it,there will be unexpected results,can someone tell me why,thanks!

1 REPLY 1
Kurt_Bremser
Super User

Depending on the interface (SAS Studio, Enterprise Guide, Display Manager) and the run mode (interactive or batch), there will be ODS destinations opened by default (in batch particularly, ODS LISTING) or by settings of the interface.

To prevent SAS from trying to write a .lst file in the current working directory (especially when in batch mode), ODS LISTING CLOSE; is used.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 413 views
  • 0 likes
  • 2 in conversation