DATA Step, Macro, Functions and more

options statement do not show on top right corner

Reply
Contributor
Posts: 28

options statement do not show on top right corner

I entered the following code:

 

options ls=80 date number;

proc means data=orion.sales;
var Salary;
run;

options nodate pageno=1;

proc freq data=orion.sales;
tables Country;
run;

options ls=95;

 

In the attached file is an example of the problem. I do not see in the options displayed for some reason. WHY?

 

Below is the LOG:

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 options ls=80 date number;
57
58 proc means data=orion.sales;
NOTE: Data file ORION.SALES.DATA is in a format that is native to another host,
or the file encoding does not match the session encoding. Cross
Environment Data Access will be used, which might require additional CPU
resources and might reduce performance.
59 var Salary;
60 run;
 
NOTE: There were 165 observations read from the data set ORION.SALES.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.06 seconds
cpu time 0.07 seconds
 
 
61
62 options nodate pageno=1;
63
64 proc freq data=orion.sales;
NOTE: Data file ORION.SALES.DATA is in a format that is native to another host,
or the file encoding does not match the session encoding. Cross
Environment Data Access will be used, which might require additional CPU
resources and might reduce performance.
65 tables Country;
66 run;
 
NOTE: There were 165 observations read from the data set ORION.SALES.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.04 seconds
cpu time 0.05 seconds
 
 
67
68 options ls=95;
69
70 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
82

example.PNG
Regular Contributor
Posts: 161

Re: options statement do not show on top right corner

If you like to see the current settings of your SAS session, try the proc options statement as shown below. 

PROC OPTIONS;
RUN;

You should see the one's you have specified such as linesize=80. 

 

Hope this helps....!!!

Kannan Deivasigamani
Contributor
Posts: 28

Re: options statement do not show on top right corner

the proc options did not help. i am using SAS University edition. Is there some statement i need to know that will display the options statements in the output?

Trusted Advisor
Posts: 1,118

Re: options statement do not show on top right corner

I think you miss, e.g., the date and page number in the top right corner of your SAS outputs. The corresponding SAS system options refer primarily to the classic listing output. Your PNG file, however, shows HTML output. I don't know about the SAS University edition, but in a standard SAS session you can switch between these types of output (or select both) in Tools --> Options --> Preferences... --> Results. It was one of the first things I did after installing SAS 9.4 to switch from HTML to listing output only.

Regular Contributor
Posts: 161

Re: options statement do not show on top right corner

Here is an example using SAS University Ed.

 

options ls=80 pagesize=60 ;
proc options option=(pagesize ls) ;
run;

and here are the results printed in the log....

 

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         options ls=80 pagesize=60 ;
 57         proc options option=(pagesize ls) ;
 58         run;
 
     SAS (r) Proprietary Software Release 9.4  TS1M3
 
  PAGESIZE=60       Specifies the number of lines that compose a page of the SAS 
                    log and SAS output.
  LINESIZE=80       Specifies the line size for the SAS log and for SAS 
                    procedure output for the LISTING destination.
 NOTE: PROCEDURE OPTIONS used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 59         
 60         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         

If you notice the options used are printed in the log......  Is this what you are looking for ?

Kannan Deivasigamani
Super User
Posts: 19,869

Re: options statement do not show on top right corner

I don't think HTML allows those options, and I get the same behaviour is SAS UE.

 

If you specify a different destination, PDF for example it does generate the notes.

You'll need to navigate the file and open them to view the results.

 

ods pdf file='/folders/myfolders/test.pdf';
ods html file='/folders/myfolders/test.html';

options date number;
proc means data=sashelp.class;
run;

ods html close;
ods pdf close;
SAS Super FREQ
Posts: 8,868

Re: options statement do not show on top right corner

options like Linesize and Pagesize not even used by ODS destinations like HTML, RTF and PDF. That is because those destinations do not have the concept of "characters per inch" like the LISTING destination (or output window). So do not expect options that are designed for listing to work in other destinations. Another thing that will not work, particularly in HTML output is the PAGENO option -- HTML doesn't have the concept of "pages", since 1 HTML file is 1 web "page" whether it is 5 rows of output or 500 rows of output -- one HTML file is one "page" -- so again, the PAGENO option is irrelevant for HTML (although honored by PDF and RTF).

cynthia
Ask a Question
Discussion stats
  • 6 replies
  • 330 views
  • 0 likes
  • 5 in conversation