BookmarkSubscribeRSS Feed
david_holt
Calcite | Level 5

I am using Enterprise Guide 7.1 with SAS 9.4 M3 on LINUX. I am trying to dynamically build a set of three slides for each system in the data to be reported on. The logic goes like this...

 

options nocenter papersize(14in 6.35in);

 

Proc Format;

<Custom style info based on POWERPOINT styles>

run;  /*This part works*/

 

PROC SQL NOPRINT;

Select count(unique Name) into :cnt from <table>;

select disctint name into :nams separated by '.' from <table>;

quit;

 

ODS HTML CLOSE;

ODS POWERPOINT FILE=<MY FILE INFO> STYLE=<MY STYLE DEFINED ABOVE>;

 

%for (i=1 %to &cnt;&i++) %do;

nme=%QScan(&nams,&i,%str(.));

 

ods layout gridded;

ods region;

%slide1(nme);

 

ods powerpoint style=<mystyle>;

ods region;

%slide2(nme);

 

ods powerpoint style=<mystyle>; 

ods region;

%slide3(nme);

 

ODS LAYOUT END;

 

ODS POWERPOINT STYLE=<MYSTYLE>;

 

%END; /*LOOP*/

 

ODS _ALL_ CLOSE;

 

The individual slides are created with the correct style but the content is all jumbled up on slide 2 through the end. The content is not being placed on the designated slide and it's not where I want it. Any Idea's?

2 REPLIES 2
Tim_SAS
Barite | Level 11
I think you should ask Tech Support for help with this problem. They'll probably need to see your entire program to be able to make suggestions.
david_holt
Calcite | Level 5

Thanks! And I am checking with SAS Tech support now. I am investigating the use of the DCL ODSOUT OBJ(); method of placing objects on the slide as per their suggestion.

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 1153 views
  • 0 likes
  • 2 in conversation