Sunteți pe pagina 1din 2

”password”) close

Setting this on the global OPTIONS close the PDF destination and the file that ODS PDF
statement controls the Owner and Open  ODS ODSPDF
ODS PDF
PDF TipTip
TipSheet
is associated
Sheet
Sheet
with it. You cannot print the
passwords on a PDF document. You can set ODS file PDF until youSheet
Tip close the destination.
one orOptions:
Global
Global both options
Options: PDF in any
PDF order. If you set
Security
Security Action
ActionSyntax Syntax Column
Columnforfor
logo,
logo,
address,
address,
and
and
trademark
trademark
info.
info.
both options,
Global the passwords
Options: PDF cannot
Security be the Action
exclude Syntax | all |none
exclusions(s)
pdfsecurity=none|
pdfsecurity=none|
same. low|
low|high high ods
odspdf pdf<(<ID=>identifier)>
<(<ID=>identifier)> <action>;
<action>; Column for logo, address, and trademark info.
Setting
Setting this
this
option
option ononthetheglobal
global OPTIONS
OPTIONS IfIfyouyou use
usethethe
ODS
ODS PDFPDFstatement
statement
pdfsecurity=none| low| high ods
excludes pdf <(<ID=>identifier)>
output objects from thewithoutwithout
<action>;
PDF
ODS
ODS PDF
PDF
statement
statement can
cancontrol
control thethe
level
level of of
PDF
PDF document
document This tip sheet places frequently used
There
Setting arethismore
option global
on theoptions for PDF
global OPTIONS anan action
action ororoptions,
options, then
then
If you use the ODS PDF statement
destination. it it
opens
opens thethePDF
PDF
without
encryption.
encryption. TheThedefault
default value
value is is
none.
none.
Using
Using low low information in one place, on one sheet of
security available that control printing,
ODS PDF
statement can control the level of PDF document destination
destination and
andcreates
creates PDF PDF output.
output.
gives
gives40-bit
40-bit encryption;
encryption; high
high is is
128-bit
128-bitencryption.
encryption. an action or options, then it opens the PDF paper, so you don’t have to search through the
Tip
Tip Sheet
Sheet
encryption.
copying, andThe default value
changing the is none. Using
contents of thelow
gives 40-bit encryption; high is 128-bit encryption. destination
select and creates
selections(s) | all |nonePDF output. online documentation. It also gives you
PDF file. For aAdobecomplete description, refer
Tip Sheet
This
Thisoption
option requires
requires Adobe Acrobat
Acrobat 5.05.0
andand
higher.
higher. something to take home, type in, and try.
toThis
the option
Base SAS requiresdocumentation.
®
Adobe Acrobat 5.0 and higher. Actions
selects output objectsActions for the PDF
pdfpassword=(open=”password”
pdfpassword=(open=”password”owner= owner= destination. Actions This tip sheet presents the most common
”password”)
”password”) statements and attributes used in creating
Global OPTIONS Statement Usage
pdfpassword=(open=”password” owner= close close output with the ODS PDF statement. This
”password”) show
close statement opens, manages, or closes the PDF
Setting
Setting
options this
thispdfsecurity=low
ononthe theglobal
globalOPTIONS
OPTIONS close
closethe thePDF
PDFdestination
destinationand andthethefile
filethat
that destination, which produces PDF output, a form
pdfpassword=(open=”open”
statement
statement
Setting controls
controls
this onthe theOwner
the Ownerand
global andOpen
OPTIONS Open isisassociated
associated
writes the with
withit.
current it.
You You
selectioncannot
cannot
or print
printthe
exclusion thethat
list of output that is read by Adobe Acrobat and
owner=”owner”);
passwords
passwords ononacontrols
aPDF
PDFdocument.
document. YouYou close the PDF destination and the file
statement the Owner andcancan
Open setset file
file until
forisuntil
theyouyouclose
PDF
associatedclose thethedestination.
destination
with it.destination.
to the
You
®
SAS print
cannot log.the other applications. The ODS PDF statement is
one
oneor orboth
bothoptions
passwords options
on ain inany
PDF any order.
order.IfIfyou
document. yousetset
You can set part of the ODS printer family of statements.
both
both options,
options, thethe passwords
passwords cannot
cannot bebe file until you close the destination.
one or both options in any order. Ifthethe
you set exclude
excludeexclusions(s)
exclusions(s)| all | all|none
|none
same.
same.both options, the passwords cannot be the For complete information, refer to the Base SAS®
exclude exclusions(s) | all |none
same. excludes
excludesoutput outputobjects
objectsfrom fromthe thePDF
PDF 9.4 documentation at
This
Thistiptipsheet
sheetplaces
placesfrequently
frequentlyused used
There
Thereare aremore
moreglobalglobaloptions
optionsforforPDF PDF destination.
destination. http://support.sas.com/documentation/onlinedoc/
security
security available
available that
that control
control printing,
printing, excludes output objects from the PDF base/index.html.
information
information in in
one
oneplace,
place, onon
This tip sheet places frequentlyone
one sheet
sheetofof
used
There are more global options for PDF paper,
paper, sosoyou
youdon’t
don’t
have
have totosearch
search through
through
copying,
copying, andandavailable
changing
changing thethecontents
contents ofofthe the destination. information in one place, on one sheet the
ofthe
security that control printing, select
selectselections(s)
selections(s)| all | all|none
|none online
online documentation.
documentation. It It
also
alsogives
gives you
you
paper, so you don’t have to search through the
PDF
PDF file.
file.For
copying, Foraandacomplete
complete
changing description,
description,
the contents refer
refer
of the something
something
select selections(s) | all |none onlineto totake
takehome,
home,type
documentation. typein,in,and
It also andtry.
gives try.
you
totothe
theBase
PDF Base SAS
file. Fordocumentation.
SAS ® ®
adocumentation.
complete description, refer selects
selectsoutput
outputobjects
objectsforforthe thePDF PDF something to take home, type in, and try.
to the Base SAS® documentation. This
Thistiptipsheet
sheetpresents
presentsthe themost
mostcommon
common
destination.
destination.
selects output objects for the PDF statements
statements and
and attributes
attributesused
used in in
creating
creating
Global
GlobalOPTIONS OPTIONSStatement StatementUsage Usage destination. output
This tip sheet presents the most
output with
withthe
theODSODS PDF
PDF statement.
statement.
common
This
This
statements and attributes used in creating
options
Global OPTIONS
optionspdfsecurity=low
pdfsecurity=low
Statement Usage show
show statement
statement opens,
opens, manages,
manages, or
output with the ODS PDF statement. or
closes
closesthe
thePDF
PDF
This
pdfpassword=(open=”open”
pdfpassword=(open=”open” show destination,
destination, which
which produces
produces PDF
PDF
statement opens, manages, or closes theoutput,
output,a a
form
form
PDF
options pdfsecurity=low
owner=”owner”);
owner=”owner”);
pdfpassword=(open=”open”
writes
writes the
thecurrent
currentselection
selectionororexclusion
exclusionlist list ofofoutput
output that
thatis is
read
readbybyAdobe
Adobe Acrobat
Acrobat
destination, which produces PDF output, a form and
and
for
for thethePDF
PDF destination
destination to to
the theSAS
SAS ®®
log.
log. other
other applications.
applications.
output thatThe isTheODS
ODS
byPDF
PDFstatement
statement
Acrobatisand
is
owner=”owner”); writes the current selection or exclusion list part
of
partof of
thetheODS
ODS printer
read
printerfamily
family
Adobe
of of
statements.
statements.
for the PDF destination to the SAS® log. other applications. The ODS PDF statement is
part of the ODS printer family of statements.
ForFor complete
complete information,
information, refer
refer toto thetheBaseBase SASSAS
® ®
SAS
9.49.4 Institute Inc. at at
documentation
documentation World Headquarters 
For677 complete
8000 information, refer to the Base SAS®
http://support.sas.com/documentation/onlinedoc/
http://support.sas.com/documentation/onlinedoc/
+1 919 sas.com/offices
9.4 documentation at
base/index.html.
base/index.html.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks
of SAS http://support.sas.com/documentation/onlinedoc/
Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and
product names are trademarks of their respective companies. Copyright © 2019, SAS Institute Inc.
base/index.html.
All rights reserved. 190175.00319
ODS PDF Tip Sheet
 ODS
ODS
ODS
ODS PDF
PDF
PDF
PDF Tip
Tip
Tip
Tip Sheet
Sheet
Sheet
Sheet
Basic Usage
Basic
Basic
Basic Usage
Usage
Usage ODS
ODS
ODS
ODSPDF
PDF
PDF
PDF Example
Example
Example
Example nspecifies
nspecifies
n nspecifies the
thethe
specifies level
thelevel
of ofofcompression.
ofcompression.
compression.
level
level TheThe
compression. TheThe
larger
larger the
larger
larger thethenumber,
thenumber, number,
number, the
thethe greater
greater
the the
thethethe
greater
greater
This code snippet will create
thethe
theoutput file compression. For example,
snippet will create the output file n=0 isisis
ods pdf <option(s)>; ThisThis
codecode
snippet
snippet
will will
create
create output
output
file file
odsodsods
pdfpdfpdf <option(s)>;
<option(s)>;
<option(s)>;
“output.pdf” with a simple table of five
compression.
compression.
compression. For example,
For For
example, n=0n=0
example, isn=0
… procedure name… …… … “output.pdf”
“output.pdf” withwith
“output.pdf” with aasimple
a simplesimple table
table of of
table offive
five five completely uncompressed, and isisthe
isthe
… procedure name
… procedure
… procedure
ods pdf
name
close;
name
observations. completely
completely
completely uncompressed,
uncompressed,
uncompressed,andand
n=9
and n=9
is
n=9 the
n=9 the
odsodsods
pdfpdfpdf
close;close;
close; observations.
observations.
observations. maximum
maximum
maximum
maximum compression
compression level.
compression
compression level.
The
level.
level. The default
default
TheThe default
default
Common
Common
CommonOptions
Common Options
Options
Options
ods
odsods
ods
proc
pdf
pdf
proc
pdf
pdffile="output.pdf";
file="output.pdf";
file="output.pdf";
print
file="output.pdf";
print data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
value
value
value
value isn=6.
isisn=6.isn=6.
n=6.
proc
proc
print
print
data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
run;
run;
anchor=”anchor-name”
run;
run; This
Thisoption
This
This
optionwill
option
option take
will
willwill
takeprecedence
take
take
precedenceover
precedence
precedence the
over
overover the
the the
anchor=”anchor-name”
anchor=”anchor-name”
anchor=”anchor-name” ods
odspdf
ods
ods
pdfclose;
pdfpdf
close;
close;
close;
specifies the root name for the anchor tag DEFLATION
DEFLATION
DEFLATION
DEFLATIONglobal
globaloption.
global
global option.
option.
option.
specifies
specifies
specifies the
the theroot
root name
root
name forfor
name for
thethe
theanchor
anchor
anchor tag
tag tag
that that identifies
identifies each
each output
output object.
object.
thatthat
identifies
identifies
eacheach
output
output
object.
object. PDF Metadata Options
PDF
PDF
PDFMetadata
Metadata
MetadataOptions
Options
Options
columns=n
columns=n
columns=n
columns=n
specifies the number of columns to create author=”author-text”
author=”author-text”
specifies
specifies
specifiesthe
the number
the
number
number ofcolumns
of columns
of columns
totocreate
tocreate
create author=”author-text”
author=”author-text”
inserts the text string that you specify as as
on each page of output. inserts
inserts
inserts
thethethetext
text textstring
string
stringthat
thatthatyou
you you specify
specify
specifyas as
ononeach
oneach
eachpage
page ofofoutput.
page ofoutput.
output. author,
author, into
into the
themetadata
metadata of a file.
author,
author,into into
the the
metadata
metadataofofaofafile.
afile.
file.
contents=no | yes
contents=no
contents=no
contents=no | yes keywords=”keywords-text”
controls |the yes | generation
yes of a printable table keywords=”keywords-text”
controls
controls
controls
thethethegeneration
generation
generation ofofaofaprintable
aprintable
printable table
table
table keywords=”keywords-text”
keywords=”keywords-text”
inserts into the output file’s metadata, a
of contents. inserts into the output file’s metadata,
of contents.
of contents.
of contents. inserts
inserts
string into
of into
the
keywords.the
output
output
Thefile’s
file’s
metadata,
keywords metadata, a aaa
enable
string
string
string
document of keywords.
of keywords.
ofmanagement
keywords. The
TheThe keywords
keywords
keywords
system enable
to doenableenable
topic- a aa
file=”filename” document management system
file=”filename”
file=”filename”
file=”filename”
specifies the name of the file that will This code snippet will create the output file document
document
based management
searches. management system
system totodo
tododotopic-
topic-
topic-
This code snippet awill create based
based
based searches.
searches.
searches.
specifies
specifies
specifiesthe
contain the
the name
name
the name ofofthe
output ofthe
thefile
file
tables. file that
that will
that
will
will This“style.pdf”
This
code code withwill
snippet
snippet simple
will
create thethe
table
create ofoutput
five
output
the output file
observations
file file
contain the output tables. “style.pdf”
“style.pdf”
“style.pdf” with
using thewith
style
witha simple
template
a simple
a simpletable
table
tableof
“Ocean”:
of fivefive
of five observations
observations
observations subject=”subject-text”
contain
contain
thethe output
output tables.
tables. using
using thethe
using thestyle
style template
style
template
template “Ocean”:
“Ocean”:
“Ocean”:style=Ocean; subject=”subject-text”
inserts the text string that you specify as the
subject=”subject-text”
subject=”subject-text”
startpage=never | no | now | yes ods pdf file="style.pdf"
startpage=never | no | now | yes proc print data=sashelp.class(obs=5); inserts
subject,
inserts
inserts
thethe
into
thetext
textthe
textstring
metadata
string
stringthat
that ofyou
that
you ayou specify
file.
specify
specifyasasthe
asthe
the
controls page| breaks.
startpage=never
startpage=never no | no
| now| now | yes| yes
ods
odsodspdf
pdfpdffile="style.pdf"
file="style.pdf"
file="style.pdf" style=Ocean;
style=Ocean;
style=Ocean;
controls page breaks.
run;print data=sashelp.class(obs=5);
proc
proc
proc
print
print
data=sashelp.class(obs=5);
data=sashelp.class(obs=5); subject,
subject,
subject, into
intointo the
thethe metadata
metadata
metadata of a
of aoffile.file.
a file.
controls
controls
page page
breaks.breaks. ods
run; pdf close;
style=style-definition
run;
run;
ods pdf close; title=”title-text”
style=style-definition
specifies the style definition to use.
odsods
pdfpdf
close;
close; title=”title-text”
inserts the text string that you specify as the
title=”title-text”
title=”title-text”
style=style-definition
style=style-definition inserts the text string that you specify
specifies
specifies
specifiesthethe
the style
style style definition
definition
definition totouse.
touse.
use.
title,
inserts into
inserts
the the
the
text metadata
text
string
stringof
that ayou
file.
that you
specify
specifyasasthe
asthe
the
text=”text-string” title,
title,
title,into
intointo the
thethe metadata
metadata
metadata of a file.
of aoffile.
a file.
inserts a text string into your output.
text=”text-string” PDF Compression Option
text=”text-string”
text=”text-string”
inserts
inserts a atext
inserts atext
text string
stringstring into
into into your
youryour output.
output.
output.
PDF
PDF
PDFCompression
Compression
CompressionOption
Option
Option
uniform compress=n
ensures uniform table width from page to controls the compression of a PDF file.
compress=n
uniform
uniform
uniform compress=n
compress=n
pageuniform
within atable singlewidthtable.from page to Compression
controls the reduces the size
compression ofPDF
the file.
ensures
ensures
ensures
uniform
uniform tabletablewidthwidthfrom from
pagepage
to to controls
controls
the the
compression
compressionofofaofaPDF
a PDF file.
file.
file.
page within Compression reduces the size of the file.
pagepage
within
within a asingle
asingle
single table.
table.table. Compression
Compression reduces
reduces
thethe
sizesizeof the
of the
file.file.

S-ar putea să vă placă și