You are on page 1of 2

LAYOUT= Example STYLE= Example ODS

This code snippet creates the output file POWERPOINT


ODS
ODSDestination
ODS
ODS
Destination
Destination
Destination
for
ODS Destination for
for
for PowerPoint
PowerPoint TipTip
PowerPoint
PowerPoint
PowerPoint
output.pptxTip
Tip
forobservations.
Tip
Sheet
withSheet Sheet
aSheet
simple
Sheet
table of five
The ODS Destination
LAYOUT=
LAYOUT=
LAYOUT=
Example
Example
Example
LAYOUT= Example
STYLE=
STYLE=
STYLE=
ods

This
This
STYLE=
proc
This
code
code
Example
code
Example
Example
powerpoint

snippet
file="output.pptx";
Example
print data=sashelp.class(obs=5);
snippet
snippet
creates
creates
creates
the
the
the
output
output
output
file
file
file
for PowerPoint Tip
run;
odsThis code
output.pptx
output.pptx
output.pptx snippet
with
powerpoint close;creates the output file
with
witha asimple
asimple
simple
table
table
tableofoffive
offive
five Sheet
The
The
TheODS
ODS
ODSDestination
Destination
Destination
output.pptx
observations.
observations.
observations.
observations.
with a simple table of five
The ODS Destination
ods
ods
ods
powerpoint
proc
proc
powerpoint
proc
powerpoint
print
print
ods print
file="output.pptx";
file="output.pptx";
file="output.pptx";
data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
powerpoint file="output.pptx";
The Powerpointlight style is the default
for
for
for
PowerPoint
PowerPoint
forPowerPoint
PowerPointTip
Tip
Tip
Tip
run;
run;run;
proc print data=sashelp.class(obs=5);
title1 "Two-Column Layout";
footnote "ODS Destination for PowerPoint";
ods
ods odspowerpoint
powerpoint
powerpoint
run; close;
close;
close;
ods powerpoint close;
style for ODS POWERPOINT. Use only the
Powerpointlight or Powerpointdark styles,
Sheet
Sheet
Sheet
Sheet
ods powerpoint file="Template.pptx" or a style that inherits from one of these
nogtitle nogfootnote layout=twocontent;
Thetwo
TheThe styles,
Powerpointlight with ODS
Powerpointlight
Powerpointlight POWERPOINT.
style
style
style
is isthe
isthe
the
default
default
default
proc odslist;
item 'Pre-defined template'; style
style The
for
style for Powerpointlight
ODS
forODS POWERPOINT.
ODS POWERPOINT. style
POWERPOINT.Use is the
Useonly
Use default
only the
onlythe
the
title1
title1
title1
"Two-Column
"Two-Column
"Two-Column Layout";
Layout";
Layout";
item
footnote
footnote
footnote
title1 'Side-by-side
"ODS
"ODS Destination
"ODS Destinationoutput';
Destination
"Two-Column for
for
Layout";PowerPoint";
forPowerPoint";
PowerPoint"; style
Powerpointlight
Powerpointlightfor
Powerpointlight ODS POWERPOINT.
ororPowerpointdark
orPowerpointdark
Powerpointdark Use styles,the
only
styles,
styles, This tip sheet places frequently used
item;
ods
ods
footnote "ODS Destination for PowerPoint";
ods ppowerpoint
'Use:';file="Template.pptx"
powerpoint
powerpoint file="Template.pptx"
file="Template.pptx"
Powerpointlight
ororaorastyle
astyle
style
that
that
that
inherits orfrom
inherits
inherits Powerpointdark
from
fromoneone one
ofofthese
ofthesestyles,
these information in one place, on one sheet of
list
nogtitle
nogtitle
ods / nogfootnote
nogtitle style=[bullet=check];
powerpointnogfootnote
nogfootnote layout=twocontent;
layout=twocontent;
layout=twocontent;
file="Template.pptx" This code snippet creates the output file orstyles,
astyles,
style that inherits from one of these paper, so you don't have to search through
item 'Tables'; two
two styles,
two with
withODS
withODS POWERPOINT.
ODS POWERPOINT.
POWERPOINT.
proc
proc
nogtitle
item
odslist;
proc odslist;
odslist;
nogfootnote layout=twocontent;
'Graphs'; style.pptx with a simple table of five two styles, with ODS POWERPOINT. the online documentation. It also gives
item
item
item
proc item 'Lists';
'Pre-defined
'Pre-defined
'Pre-defined
odslist; template';
template';
template'; observations using the style template you something to take home,used type in, and
item
item item 'Text'; output';
'Side-by-side
item 'Side-by-side
item 'Side-by-side
'Pre-defined output';
output';
template';
Powerpointdark. This
This
This
tiptipsheet
tipsheet
sheet
places
places
placesfrequently
frequently
frequently used
used
item;
run;
end;
item;
item;
item 'Side-by-side output';
p p'Use:';
p'Use:';
'Use:'; For complete information, refer to the Base SAS® This tip in
try.
information
information
information sheet
inone
inone places
one
place,
place, frequently
place,ononone
onone
onesheet used
sheet
sheet ofofof
item;
list
list p/ /
list style=[bullet=check];
/style=[bullet=check];
style=[bullet=check];
'Use:'; This
This
This
code
ods code
code
snippet
snippet
snippet
powerpoint creates
creates
creates
the
the
the
output
file="output.pptx";output
outputfile
file
file documentation at
paper,information
paper,
paper,sosoyou
soyou
you
don't in
don't one
don'thave
haveplace,
have
to on
tosearch
to
search one
search sheet
through
through
through of
This code snippet creates the output This tip sheet presents the most common
five file
style=Powerpointdark;
goptions
item
item
listhsize=4.5in
'Tables';
item 'Tables';
/'Tables'; vsize=4.5in;
style=[bullet=check];
style.pptx
style.pptx
style.pptx
with
with
with
a asimple
asimple
simple
table
table
table
ofoffive
offive support.sas.com/base paper, so you don't haveIttoItalso search through
procitem
gmap
item map=maps.us
item 'Tables';data=maps.us all;
'Graphs';
item 'Graphs';
'Graphs'; proc print data=sashelp.class(obs=5);
style.pptx with a simple table of five the
the
the
online
online
online
statements documentation.
documentation.
documentation.
and attributes used It
also
also
in gives
gives
gives
creating
iditem
state;
item 'Lists';
item
item'Lists';
'Lists';
'Graphs'; observations
observations
observations
run;
using
using
using the
the
the
style
style
style
template
template
template you
you the
you online to
something
something
something documentation. Itin,
also gives
choro
item
itemstatecode/statistic=frequency
'Text';
item
item'Text';
'Text';
'Lists'; observations using the style template
ods powerpoint close; output with thetotake totake
ODS take
home,
home,
home,
POWERPOINT type
typetype in,and
in,andand
end;
end;
end; discrete
item 'Text'; nolegend; Powerpointdark.
Powerpointdark.
Powerpointdark. try.
try.you
try. something to take home, type in, and
Powerpointdark. ForFor
complete
For
complete
complete
information,
information,
information,
refer
refer
refer
toto
the
to
the
Base
the
Base
Base
SAS®
SAS®
SAS® statement. This statement opens,
run;
run;run; quit;
run; end;
For complete information, refer to the Base SAS® try.
run; ods
ods
ods
powerpoint
powerpoint
powerpoint
file="output.pptx";
file="output.pptx";
file="output.pptx";
style=Powerpointdark;
style=Powerpointdark;
style=Powerpointdark;
9.49.4
documentation
9.4
documentation
documentation
atatat manages,
This
This
This
tiptipsheet orpresents
tipsheet
sheet closes
presents
presentsthe
the ODS
thethe
most POWERPOINT
most
mostcommon
common
common
ods
goptions_all_
goptions
goptions close;
hsize=4.5in
hsize=4.5in
hsize=4.5in vsize=4.5in;
vsize=4.5in;
vsize=4.5in; ods powerpoint file="output.pptx"; 9.4 documentation at
http://support.sas.com/documentation/onlinedoc/
http://support.sas.com/documentation/onlinedoc/
http://support.sas.com/documentation/onlinedoc/
proc
procgmap
proc gmap map=maps.us
gmap
goptions map=maps.us
map=maps.us
hsize=4.5in data=maps.us
data=maps.us
data=maps.usall;
vsize=4.5in; all;
all; proc
procprocprint
print
printdata=sashelp.class(obs=5);
data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
style=Powerpointdark; This
statements
statements
statementstip
destination, sheet
andandand presents
producing
attributes
attributes
attributes the
output
used
used most
used that common
is
inincreating
increatingready
creating
run;
run;run;
proc print data=sashelp.class(obs=5); http://support.sas.com/documentation/onlinedoc/
base/index.html.
base/index.html.
base/index.html.
ididstate;
choro
idstate;
proc
choro
state;
gmap map=maps.us data=maps.us all;
idstatecode/statistic=frequency
choro statecode/statistic=frequency
statecode/statistic=frequency
state; ods
ods odspowerpoint
powerpoint
powerpoint
run; close;
close;
close; base/index.html. for
outputstatements
outputMicrosoft
output with
with
with
the
the and
the
ODSODS attributes
PowerPoint
ODSPOWERPOINT 2010
POWERPOINT
POWERPOINT used in creating
or later.
discrete
chorodiscrete
discrete nolegend;
nolegend;
nolegend;
statecode/statistic=frequency ods powerpoint close; output with
statement.
statement.
statement. This the
This
This ODS
statement
statement POWERPOINT
statement opens,
opens,
opens,
run;
run;
run;quit;
quit;
quit; discrete nolegend;
run; quit; statement.
manages,
manages,
manages, ororcloses
orcloses This
closesthethestatement
the
ODS
ODSODSPOWERPOINTopens,
POWERPOINT
POWERPOINT
ods
ods_all_
ods_all_ close;
_all_ close;
close; manages,
destination,
destination,
destination, or
producing closesoutput
producing
producing the
outputODS
output thatPOWERPOINT
thatthat
is isready
isready
ready
ods _all_ close;
SAS Institute Inc. World Headquarters  for
for destination,
for
Microsoft
Microsoft
Microsoft producing
PowerPoint
PowerPoint
PowerPoint 2010output
2010
2010 that
ororlater. later.ready
orlater. is
+1 919 677 8000 sas.com/offices for Microsoft PowerPoint 2010 or later.
SAS and all other SAS Institute Inc. product or service names are registered trademarks
or trademarks of SAS 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. All rights reserved. 1901902.0319
ODS
ODS
ODS
ODS
Destination
Destination
Destination
Destination
for
forfor
PowerPoint
for
PowerPoint
PowerPoint
PowerPoint
Tip
TipTip
Sheet
Tip
Sheet
Sheet
Sheet
  ODS Destination for PowerPoint Tip Sheet
Action
Action
Action
Action
Syntax
Syntax
Syntax
Syntax Basic
Basic
Basic
Basic
Usage
Usage
Usage
Usage Metadata
Metadata
Metadata
Metadata
Options
Options
Options
Options OPTIONS
OPTIONS
OPTIONS
OPTIONS
Suboptions
Suboptions
Suboptions
Suboptions
ods
odsods
powerpoint
ods
powerpoint
powerpoint
powerpoint
<(<ID=>identifier)>
<(<ID=>identifier)>
<(<ID=>identifier)>
<(<ID=>identifier)>
<action>
<action>
<action>
<action> ods
odsods
powerpoint
ods
powerpoint
......
...
powerpoint
powerpoint
procedure
procedure
...procedure
<option(s)>;
<option(s)>;
name
procedure
name
<option(s)>;
<option(s)>;
......
name
name
... ...
author="author-text"
author="author-text"
author="author-text"
author="author-text" backgroundcolor="color"
backgroundcolor="color"
backgroundcolor="color"
backgroundcolor="color"
IfIfyou
you
IfIfyou
use
you
useuse
the
use
thethe
ODS
the
ODSODS
POWERPOINT
ODS
POWERPOINT
POWERPOINT
POWERPOINT odsods
ods word
word
ods close;
word
word
close;
close;
close;
Inserts
Inserts
Inserts thethe
Inserts
the text
the text
text string
string
text
string
string
thatthat
thatyou
that
you you specify
specify
you
specify asas asas
specify Specifies
Specifies
Specifies
Specifies
the the
thethe
color color
color
color ofthe
ofofthe
of
the the background
background
backgroundofof ofof
background
statement
statement
statement
statement without
without
withoutwithout
an anaction
an
action
anaction
action
ororoptions,
or
options,
oroptions,
options,
author
author
author
author
into
into
into
the
into
thethe
metadata
the
metadata
metadata
metadata
ofofthe
of
the
ofthe
file.
the
file.
file.
file. the
thethe
slides.
the
slides.
slides.
slides.
then
then
then
then
ititopens
opens
ititopens
opens
the
thethe
ODS
the
ODS ODS
POWERPOINT
ODS
POWERPOINT
POWERPOINT
POWERPOINT Common
Common
Common
Common
Options
Options
Options
Options
destination
destination
destination
destination and
and and
and
creates
creates
creates creates
Microsoft
Microsoft
MicrosoftMicrosoft category="category-text"
category="category-text"
category="category-text"
category="category-text" backgroundimage="file-specification"
backgroundimage="file-specification"
backgroundimage="file-specification"|| | |
backgroundimage="file-specification"
file="filename"
file="filename"
file="filename"
file="filename"
PowerPoint
PowerPoint
PowerPoint
PowerPoint output
output
output
output
ininain
afile
in
file
a afile
called
called
filecalled
called "LINEAR-GRADIENT"
"LINEAR-GRADIENT"
"LINEAR-GRADIENT"
"LINEAR-GRADIENT"
||"RADIAL-
"RADIAL-
| |"RADIAL-
"RADIAL-
Inserts
Inserts
Inserts
Inserts
the
thethe
text
the
texttext
string
text
string
string
string
that
that
that
you
that
youyou
specify
you
specify
specify
specify
asas asas
saspres.pptx
saspres.pptx
saspres.pptx
saspres.pptx Specifies
Specifies
Specifies
Specifies
the
thethe
name
the
name
name
name
ofofthe
of
the
ofthe
PowerPoint
the
PowerPoint
PowerPoint
PowerPoint
file.
file.
file.
file. GRADIENT"
GRADIENT"
GRADIENT"
GRADIENT"
||"NONE"
"NONE"
| |"NONE"
"NONE"
category
category
category
category
into
into
into
the
into
thethe
metadata
the
metadata
metadata
metadata
ofofthe
of
the
ofthe
file.
the
file.
file.
file.
gfootnote/nogfootnote
gfootnote/nogfootnote
gfootnote/nogfootnote
gfootnote/nogfootnote Specifies
Specifies
Specifies
Specifies
an
animage
an
image
animage
image
ororaor
agradient
or
gradient
a agradient
gradient
totouse
to
use
touse
as
use
as asas
comments="comments-text"
comments="comments-text"
comments="comments-text"
comments="comments-text"
Actions
Actions
Actions
Actions Determines
Determines
Determines
Determines
ififgraphics
graphics
if ifgraphics
graphics
handle
handle
handle
handle
footnotes
footnotes
footnotes
footnotes
inin inin
the
thethe
background
the
background
background
background
for
forthe
for
the
forthe
slides.
the
slides.
slides.
slides.
close
close
close
close Inserts
Inserts
Inserts
Inserts
the
thethe
text
the
text
text
string
text
string
string
string
that
that
that
you
that
you
you
specify
you
specify
specify
specify
asas asas
images.
images.
images.
images. backgroundrepeat="NO_REPEAT"
backgroundrepeat="NO_REPEAT"
backgroundrepeat="NO_REPEAT"
backgroundrepeat="NO_REPEAT" || | |
comments
comments
comments
comments
into
into
into
the
into
thethe
metadata
the
metadata
metadata
metadata
ofofthe
of
the
ofthe
file.
the
file.
file.
file.
Closes
Closes
Closes
Closes
the
thethe
ODS
the
ODS ODS
POWERPOINT
ODS
POWERPOINT
POWERPOINT
POWERPOINT destination
destination
destination
destination "REPEAT"
"REPEAT"
"REPEAT"
"REPEAT" | |"REPEAT_X"
"REPEAT_X"
||"REPEAT_X"
"REPEAT_X" | |"REPEAT_Y"
"REPEAT_Y"
||"REPEAT_Y"
"REPEAT_Y"
gtitle/nogtitle
gtitle/nogtitle
gtitle/nogtitle
gtitle/nogtitle
and
and
and
the
and
thethe
file
the
filefile
that
that
filethat
is
that
isassociated
associated
isisassociated
associated
with
with
with
with
it.it. it.
You
You
it. You
You keywords="keywords-text"
keywords="keywords-text"
keywords="keywords-text"
keywords="keywords-text"
Specifies
Specifies
Specifies
Specifies
whether
whether
whether
whether
thethethe
image
the
image
image
image
used
used
used
used
for
forthe
for
the
forthe
the
cannot
cannot view
cannot
cannot
view the
view
view file
thethethe until
filefile
untilyou
fileuntil
until
you close
you
you
close the
close
close
thethethe Determines
Determines
Determines
Determines
ififgraphics
graphics
if ifgraphics
graphics
handle
handle
handle
handle
titles
titles
titles
titles
inin inin
Inserts
Inserts
Inserts
Inserts
the
thethe
text
the
text
text
string
text
string
string
string
that
that
that
you
that
you
you
specify
you
specify
specify
specify
asas asas slide
slide
slide
slide
background
background
background
background
isisrepeated
repeated
isisrepeated
repeated
horizontally,
horizontally,
horizontally,
horizontally,
destination.
destination.
destination.
destination. images.
images.
images.
images.
keywords
keywords
keywords
keywords
into
into
into
the
into
thethe
metadata
the
metadata
metadata
metadata
ofofthe
of
the
ofthe
file.
the
file.
file.
file. vertically,
vertically,
vertically,
vertically,
both,
both,
both,
both,
orornot
or
not
ornot
repeated.
not
repeated.
repeated.
repeated.
exclude
exclude
exclude
exclude
exclusions(s)
exclusions(s)
exclusions(s)
exclusions(s)
||allall
||all
|none
all
none
| |none
none image_dpi=nnn
image_dpi=nnn
image_dpi=nnn
image_dpi=nnn
status="status-text"
status="status-text"
status="status-text"
status="status-text"
Excludes
Excludesoutput
Excludes
Excludes
output objects
output
output
objectsfrom
objects
objects
from the
from
from
thethe
the Specifies
Specifies
Specifies
Specifies
the
thethe
DPI
the
DPIDPI
(dots
DPI
(dots
(dots
(dots
per
perper
inch)
per
inch)
inch)
inch)
ofofimages
of
images
ofimages
images
Inserts
Inserts
Inserts
Inserts
the
thethe
text
the
text
text
string
text
string
string
string
that
that
that
you
that
youyou
specify
you
specify
specify
specify
asas asas
destination.
destination.
destination.
destination. generated
generated
generated
generated
for
forgraphical
for
graphical
forgraphical
graphical
output.
output.
output.
output.
status
status
status
status
into
into
into
the
into
thethe
metadata
the
metadata
metadata
metadata
ofofthe
of
the
ofthe
file.
the
file.
file.
file.
select
select
select
select
selection(s)
selection(s)
selection(s)
selection(s)
||allall
||all
|none
all
none
| |none
none options(<suboption(s)>)
options(<suboption(s)>)
options(<suboption(s)>)
options(<suboption(s)>)
title="title-text"
title="title-text"
title="title-text"
title="title-text"
Selects
Selects
Selects
Selects
output
output
output
output
objects
objects
objects
objects
for
forthe
for
the
forthe
destination.
the
destination.
destination.
destination. Specifies
Specifies
Specifies
Specifies
aabehavior
behavior
a abehavior
behavior
that
that
that
is
that
isspecific
specific
isisspecific
specific
totothe
to
the
tothe
the
Inserts
Inserts
Inserts
the
Insertsthethe
text
the
textstring
text
string
text string
that
that
string you
that
you
that specify
you
youspecify
specify
asas asas
specify
ODS
ODS
ODS
POWERPOINT
ODS
POWERPOINT
POWERPOINT
POWERPOINTdestination.
destination.
destination.
destination.
show
show
show
show title
title
title
into
title
into
into
the
into
thethe
metadata
the
metadata
metadata
metadata
ofofthe
of
the
ofthe
file.
the
file.
file.
file.
startpage=yes
startpage=yes
startpage=yes
startpage=yes
||no
no
| |no
|no
now
now
| |now
now
Writes
Writes
Writesthe
Writes current
thethe
the
currentselection
current
current
selection ororexclusion
selection
selection or
exclusion
orexclusion
exclusion
list
listfor
listthe
list
forfor
the destination
forthe
the
destination totothe
destination
destination to
theSAS®
tothe
the
SAS® log.
SAS®
SAS®
log.
log.
log. Controls
Controls
Controls
Controls
when
when
when
when
aanew
new
a anew
slide
new
slide
slide
slide
isisinserted.
inserted.
isisinserted.
inserted.
style=style-definition
style=style-definition
style=style-definition
style=style-definition
Specifies
Specifies thethe
Specifies
Specifies
the style
style
the definition
style
style
definition totouse.
definition
definition use.
totouse.
use.

You might also like