BookmarkSubscribeRSS Feed
gobejo
Calcite | Level 5

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
7 REPLIES 7
kannand
Lapis Lazuli | Level 10

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
gobejo
Calcite | Level 5

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?

FreelanceReinh
Jade | Level 19

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.

kannand
Lapis Lazuli | Level 10

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
Reeza
Super User

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;
Cynthia_sas
SAS Super FREQ
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
emeline
Calcite | Level 5

You just saved my grade. Thank you thank you thank you!!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 7 replies
  • 1620 views
  • 1 like
  • 6 in conversation