Help using Base SAS procedures

WARNING: No output destinations active. (How do I get rid of this warning)

Reply
Contributor
Posts: 61

WARNING: No output destinations active. (How do I get rid of this warning)

This code below copies all 71 datasets from the main warehouse library to a backup library, with the following naming convention "MmmYYbkp".
Why am I getting the No output destinations active, warning?

/*** TAKES ONE HOUR AND SEVEN MINUTES TO RUN. ***/
/*** CHANGE LIBNAME AND COPY OUT= STATEMENTS BELOW
TO THE CORRECT LIBRARY YOU WANT TO COPY TO. ***/

libname Oct09bkp "\\ccsas1\blc_whse\Jesse\Backup Oct2009 Datasets ";
proc datasets library=whse ;
copy out=Oct09bkp ;
run;
quit;
Super Contributor
Posts: 281

Re: WARNING: No output destinations active. (How do I get rid of this warning)

PROC DATASETS NOLIST LIBRARY=WHSE;
Contributor
Posts: 61

Re: WARNING: No output destinations active. (How do I get rid of this warning)

Thank you, Paige, for your help and for the quick response.
Super Contributor
Super Contributor
Posts: 3,174

Re: WARNING: No output destinations active. (How do I get rid of this warning)

Odd that you are not curious about why you are getting the message in the first place. Within your SAS program, there is likely an ODS command that has failed and you have some other message(s) being generated or you have short-circuited the SAS log output destination.

Scott Barry
SBBWorks, Inc.
Contributor
Posts: 61

Re: WARNING: No output destinations active. (How do I get rid of this warning)

Thanks for responding to help me.
Oro
N/A
Posts: 1

Re: WARNING: No output destinations active. (How do I get rid of this warning)

In some cases this warning could be accurate Smiley Happy

'no output destination active' can really mean what it says.

It could happen if you work with ODS, closing a destination without opening a new one

for eg;

ods listing close;

proc datasets [...] would produce such a warning.

Solution: open a destination...

ODS listing;

proc datasets [...]

Cheers,

Olivier

Ask a Question
Discussion stats
  • 5 replies
  • 7994 views
  • 1 like
  • 4 in conversation