options nonumber nodate;
proc print data=dam.weightclub;
where startweight>=180;
run;
options date;
proc freq data=dam.test_scores;
where score1>=70;
tables ID;
run;
Hello,
options date; has nothing to do with your result.
Your program might not have any result or you may be missing the output destination listed.
Check your log: Does your log tell no records. Anything like this?
NOTE: No observations were selected from data set SASHELP.CLASS. NOTE: There were 0 observations read from the data set SASHELP.CLASS.
If using SAS EG then go to tools>options>results> select one (html or sas report or ....)
this is the output I got
I do see that they are not printed, however works if selected other destinations like PDF, Listing. Not exactly sure why.
The document say: specifies that the date and the time that the SAS program started are printed at the top of each page of the SAS log and any output that is created by SAS.
You may have to try other option like titles.
Title " Today's data: %sysfunc(today(),date9.) and Time: %sysfunc(time(),time.) ";
proc print data=sashelp.class;
run;
You had suppressed page numbers and dates for the first output; since no new page has to be started for the second output, nothing is printed.
I'm not getting anything even when I don't suppress in the first dataset
HTML does not have a concept of pages in terms of number, they scroll and scale, so it's not shown.
Create a different output type to see this functionality.
options nonumber nodate; ods pdf file='/folders/myfolders/demo_date_number.pdf' style=seaside; proc print data=dam.weightclub; where startweight>=180; run; ods pdf close; options date; ods pdf file='/folders/myfolders/demo_NoDate.pdf' style=seaside; proc freq data=dam.test_scores; where score1>=70; tables ID; run; ods pdf close;
@mdoddala wrote:
options nonumber nodate;
proc print data=dam.weightclub;
where startweight>=180;
run;
options date;
proc freq data=dam.test_scores;
where score1>=70;
tables ID;
run;
Or we can just simply choose produce pdf output in the results tab of preferences:)
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!
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.