BookmarkSubscribeRSS Feed
mdoddala
Obsidian | Level 7
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;
8 REPLIES 8
SuryaKiran
Meteorite | Level 14

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 ....)

Thanks,
Suryakiran
SuryaKiran
Meteorite | Level 14

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;
Thanks,
Suryakiran
mdoddala
Obsidian | Level 7

I'm not getting anything even when I don't suppress in the first dataset

Reeza
Super User

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;

 

mdoddala
Obsidian | Level 7

Or we can just simply choose produce pdf output in the results tab of preferences:)

Reeza
Super User
Yes but then you can't control the file name or style.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 8 replies
  • 1409 views
  • 0 likes
  • 4 in conversation