BookmarkSubscribeRSS Feed
yonib
SAS Employee
Hi,
I published a SAS Report from SAS Enterprise Guide to SAS Web Report Studio.

My Problem is when i open the portal/wrs, the sas style is diffrent from the style in the EG.
I want to see get the AMODefault style.

If I'm using the url portlret instead of the publish option it works fine

any suggestions ?

Example of my report:

ods html
STYLE=AMODefault STYLESHEET=(URL="file:///C:\inetpub\wwwroot\BIClientStyles\AMODefault.css");
proc report data = m_m_2 ;
title1 'דוח התחשבנות חוזי ברמת חברה';
column Hevra Premiums Commissions 'Paid Claims'n 'Premium Reserve Retained'n 'Premium Reserve Released'n 'Interest On Deposit'n 'Tax On Interest'n Balance Outstanding;
define Hevra/format=$n_hevra. group;
define Premiums / sum format=comma10.;
define Commissions / sum format=comma10.;
define 'Paid Claims'n / sum format=comma10. 'Paid Claims';
define 'Premium Reserve Retained'n / sum format=comma10. 'Premium Reserve Retained';
define 'Premium Reserve Released'n / sum format=comma10. 'Premium Reserve Released';
define 'Interest On Deposit'n / sum format=comma10. 'Interest On Deposit';
define 'Tax On Interest'n / sum format=comma10. 'Tax On Interest';
define Balance / sum format=comma10.;
define Outstanding / sum format=comma10.;
title2 "&title";
compute before _page_;
text1="&date_report Mid Quarter $1=NIS &Mid_Quarter ";
line text1 $;
text2=" ";
line text2 $;
endcomp;

run;

ods html close;
1 REPLY 1
ChrisHemedinger
Community Manager
In your ODS statements, the stylesheet reference is a location on your "local" machine:

"file:///C:\inetpub\wwwroot\BIClientStyles\AMODefault.css"

And there is no "AMDDefault" ODS style built into SAS, so unless the report viewer can find the CSS file, your style won't be the version you want.

If you use SAS Report format (not HTML) and publish the report to the Report Repository (using EG), EG should fix up that style reference for you.

Otherwise, you might consider placing a copy of the style that you want on a web server, and then changing the stylesheet reference accordingly. Example:

ods html
STYLE=AMODefault STYLESHEET=(URL="http://myserver.mycompany.com/styles/AMODefault.css");

Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 694 views
  • 0 likes
  • 2 in conversation