Valid in: | Anywhere |
Category: | ODS: Third-Party Formatted |
Interaction: | By default, when you execute a procedure that
uses the FORMCHAR system option (for example, PROC PLOT or PROC CHART),
ODS formats the output in SAS Monospace font. If you are creating
output that will be viewed in an operating environment where SAS software
is not installed, this output will not display correctly. This is
because without SAS, the SAS Monospace font is not recognized. To
make your document display correctly, include the following statement
before your SAS program: OPTIONS FORMCHAR="|----|+|---+=|-/\<>*"; |
CAUTION: |
The following actions are available for the ODS PRINTER statement:
tabulate
.
The second anchor is named tabulate1
;
the third is named tabulate2
, and so
on.
Specifying new anchor names at various points in your program is useful when you want to link to specific parts of your PRINTER output. Because you can control where the anchor name changes, you know in advance what the anchor name will be at those points.
The AUTHOR= option takes effect only if specified at the opening of a file.
NOBOOKMARKLIST is an alias for BOOKMARKLIST=NONE | NO | OFF.
BOOKMARKLIST is an alias for BOOKMARKLIST=SHOW | YES | ON.
This option has an effect only when creating PDF, PDFMARK, PS output.
The COMPRESS= option takes effect only if specified at the opening of a file.
The COMPRESS= option overrides the UPRINTCOMPRESSION option. If COMPRESS= is specified, the UPRINTCOMPRESSION system option is then queried. If the system option is off, it will be turned on for this one PDF statement and the PDF file will be compressed. When compression is complete, the UPRINTCOMPRESSION system option is again enabled for all other files to use. For more information, see the UPRINTCOMPRESSION system option.
You must specify media-type next to the file-specification specified by the CSSSTYLE= option.
SYSPRINT= | if you are using the Windows operating environment and do not specify any of the following options: PCL, PDF, PDFMARK, PS, or SAS. |
PRINTERPATH= | in all other cases. |
The KEYWORDS= option takes effect only if specified at the opening of a file.
REPORT.PS
.
Additional body files are named REPORT1.PS
, REPORT2.PS
,
and so on.
The NEWFILE= option cannot be used if you are sending output to a physical printer.
Example:
FILE= 'MAY5.PS'
PDF does not support double-byte Type1 fonts.
0
results
in a fully expanded table of contents, while PDFTOC=2
results
in a table of contents that is expanded to two levels.
SYSPRINT= | if you are using the Windows operating environment and do not specify any of the following options: PCL, PDFMARK, POSTSCRIPT, PS, or SAS. |
PRINTERPATH= | in all other cases. |
You cannot use the PRINTER= option with the PCL, PDF, PDFMARK, or PS options.
In the Windows operating environment, if you do not specify the SAS option in the ODS PRINTER statement, then a description of the printer is located in the Windows registry.
To see a list of available printers for SAS printing, use the REGEDIT command. The printers are listed in the Registry Editor window under COREPRINTINGPRINTERS.
PS does not support double-byte Type1 fonts.
For instructions on making your own user-defined style definitions, see TEMPLATE Procedure: Creating a Style Template.
The SUBJECT= option takes effect only if specified at the opening of a file.
The TITLE= option takes effect only if specified at the opening of a file.
ods printer ps style=banker file='bankerstyle.ps'; proc print data=statepop; run;
ods ps file='nostyle.ps'; proc print data=statepop; run;
ods printer ps style=Journal file='Journalstyle.ps'; proc print data=statepop; run; ods printer ps close; ods ps close;
Use the FILENAME statement
with the PRINTER device type specified to create a printer fileref
that you can print to.
|
|
options pdfsecurity=low pdfpw=(open=testpw);
options pdfsecurity=high pdfpw=(open=testpw);
options pdfsecurity=high pdfpw=(open=testpw); ods pdf file="secure.pdf"; proc contents data=sashelp.class; run; ods pdf close;
Features: |
ODS _ALL_ CLOSE ODS HTML statement:: BODY=
ODS LISTING statement:: CLOSE
|
Other features: |
PROC UNIVARIATE |
Data set: | StatePop |
title;
options nodate nonumber;
ods html body='your_file.html';
ods printer ps file='your_file.ps';
ods select BasicMeasures 'Tests For Location' Univariate.CityPop_90.ExtremeObs;
proc univariate data=statepop mu0=3.5; var citypop_90 citypop_80; run;
ods printer close;