Hello
I am doing proc print but I don;t see any printed output on screen.
I run:
proc print data=sashelp.cars(obs=5) noobs;
Run;
I went to tools---options---Results---Results general--- and ticked sas report,HTML
I also added command ods listing and still it is not working.
I opened a new sas and then it is working well,
may anyone telling what happened?
Hardly possible to help without knowing what happened before proc print was executed. And "knowing" means, i would have to see code and log of everything than ran before. Maybe you have something like "ods close all" in the code.
I suspect either of two things:
1. You have an ODS destination open, but the select list is set to NONE.
2. All ODS destinations are closed
To make sure that the select list is set to ALL, submit the statement
ODS SELECT ALL;
ODS SHOW;
The log will display the status of the ODS destinations. You want to see something such as
Current OVERALL select list is: ALL
As @andreas_lds suggested, the other possibility is that all destinations are closed. To test that possibility, use
ODS SELECT ALL;
PROC PRINT data=sashelp.vdest; RUN;
If a destination is open, the output will show a table such as
| Obs | destination | style |
|---|---|---|
| 1 | HTML | HTMLBlue |
If the log reports
NOTE: No observations in data set SASHELP.VDEST.
then you need to open an ODS destination such as
ODS HTML;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.