Desktop productivity for business analysts and programmers

WARNING: No output destinations active. while using proc sql into:?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 119
Accepted Solution

WARNING: No output destinations active. while using proc sql into:?

Hello,

 

I am using a proc sql into: statement similar to the following one:

 

PROC SQL NOPRINT;

SELECT EMPID, DIAG

INTO :EMP_LIST, : DIAGLIST

FROM MASTER;

QUIT;

%PUT &EMP_LIST &DIAGLIST;

 

 

However, I receive a warning statement such as: WARNING: No output destinations active.

Is there a way to avoid this warning statement?

 

Regards,

Alain


Accepted Solutions
Solution
Thursday
Super User
Posts: 9,890

Re: WARNING: No output destinations active. while using proc sql into:?

How do you submit that code? If from a EG code node, please post the whole log of the node.

 

Because I just ran this for testing:

ods _all_ close;

proc sql noprint;
select name into :names separated by ',' from sashelp.class;
quit;

%put &names;

and it worked:

27         ods _all_ close;
28         
29         proc sql noprint;
30         select name into :names separated by ',' from sashelp.class;
31         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

32         
33         %put &names;
Alfred,Alice,Barbara,Carol,Henry,James,Jane,Janet,Jeffrey,John,Joyce,Judy,Louise,Mary,Philip,Robert,Ronald,Thomas,William

Only when I removed the noprint from the proc sql statement did I get the WARNING.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

View solution in original post


All Replies
Super Contributor
Posts: 324

Re: WARNING: No output destinations active. while using proc sql into:?

Hi,

 

Do you have noprint in your original proc sql?

 

Can you see the result of the %put statement?

 

 

Regards,

Amir.

 

Super User
Posts: 9,890

Re: WARNING: No output destinations active. while using proc sql into:?

Could this be of help to you?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Respected Advisor
Posts: 2,825

Re: WARNING: No output destinations active. while using proc sql into:?

Show us the SASLOG

--
Paige Miller
Solution
Thursday
Super User
Posts: 9,890

Re: WARNING: No output destinations active. while using proc sql into:?

How do you submit that code? If from a EG code node, please post the whole log of the node.

 

Because I just ran this for testing:

ods _all_ close;

proc sql noprint;
select name into :names separated by ',' from sashelp.class;
quit;

%put &names;

and it worked:

27         ods _all_ close;
28         
29         proc sql noprint;
30         select name into :names separated by ',' from sashelp.class;
31         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

32         
33         %put &names;
Alfred,Alice,Barbara,Carol,Henry,James,Jane,Janet,Jeffrey,John,Joyce,Judy,Louise,Mary,Philip,Robert,Ronald,Thomas,William

Only when I removed the noprint from the proc sql statement did I get the WARNING.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Valued Guide
Posts: 559

Re: WARNING: No output destinations active. while using proc sql into:?

What client application are you using EG or Studio or PC SAS? If your running the code in EG without NOPRINT and you don't have any output destination mentioned then you might get this warning.

 

In EG go to Tools>Results>Results Formats>Check one here.

 

image.png

Thanks,
Suryakiran
Super User
Posts: 10,689

Re: WARNING: No output destinations active. while using proc sql into:?

It is weird. I never get this sort of WARNING after running your code.

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 151 views
  • 0 likes
  • 6 in conversation