[prev in list] [next in list] [prev in thread] [next in thread]
List: sas-l
Subject: SAS Forum: Using a control dataset to create multiple ppt files with one slide in each
From: Roger DeAngelis <rogerjdeangelis () GMAIL ! COM>
Date: 2018-06-27 22:33:33
Message-ID: 6633363701982289.WA.rogerjdeangelisgmail.com () listserv ! uga ! edu
[Download RAW message or body]
SAS Forum: Using a control dataset to create multiple ppt files with one slide in \
each
see
https://tinyurl.com/yd8jks6l
https://communities.sas.com/t5/Base-SAS-Programming/define-macro-variables-to-create-multiple-ppt-slides/m-p/473424
INPUT
=====
WORK.HAVE total obs=3
ACC
Mary
Mike
Millie
PROCESS
=======
%utlfkil(d:/ppt/sly&acc..ppt);
data _null_;
set have;
call symputx('acc',acc);
rc=dosubl('
ods powerpoint file="d:/ppt/sly_&acc..ppt" nogtitle nogfootnote style=htmlblue;
goptions reset= global;
ods graphics / reset=all;
proc odstext;
p " &acc "/ style = [font_size = 16pt color=#2f4696 background=a00000000];
run;quit;
ods powerpoint close;
');
run;quit;
OUTPUT
======
Three powerpoint files with one slide in each
d:/ppt/sly_Mary.ppt
d:/ppt/sly_Mike.ppt
d:/ppt/sly_Millie.ppt
* _ _ _
_ __ ___ __ _| | _____ __| | __ _| |_ __ _
> '_ ` _ \ / _` | |/ / _ \ / _` |/ _` | __/ _` |
> > > > > > (_| | < __/ | (_| | (_| | || (_| |
> _| |_| |_|\__,_|_|\_\___| \__,_|\__,_|\__\__,_|
;
data have;
input Acc $;
cards4;
Mary
Mike
Millie
;;;;
run;quit;
* _ _ _
___ ___ | |_ _| |_(_) ___ _ __
/ __|/ _ \| | | | | __| |/ _ \| '_ \
\__ \ (_) | | |_| | |_| | (_) | | | |
> ___/\___/|_|\__,_|\__|_|\___/|_| |_|
;
see process
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic