BookmarkSubscribeRSS Feed
Aanchal
Calcite | Level 5

I need EG styled html reports through ods html.The reults should have a set of html links on top(toc) for all the reports that are embedded in the html document below.

Please suggest
Attached is the desired report template

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  How did you create that output using EG? I am not sure what you mean by "EG styled" you could mean something as simple as using STYLE=EGDEFAULT? The word "style" generally refers to the STYLE= option for specifying colors and fonts. Generally, the word "style" does not refer to a table of contents, such as you show. The way to generate an HTML table of contents is through the use of a CONTENTS= option, but without seeing your code (or the code generated by your project), it is impossible to do more than guess how you originally got the contents created in this fashion. But since you have the code that generated this output in EG, have you tried running the code with ODS HTML?

  Seeing the output is useful, but understanding how you created the output (did you run a whole project? did you use the report layout builder? did you run several projects? did you write code? did you code CONTENTS= in your program? Did you run custom code?)

  Usually, when you code CONTENTS=, you can generate a Table of Contents using HTML Frame tags. If you run the attached code, you will see the default behavior. I'm not sure how you generated the output that you attached, but it does not look like the default behavior. So, understanding your submitted code will be the only way to help you.

  If you cannot post your code (because it is too lengthy or because it is inside a stored process or inside a macro call), then you can work with Tech Support for more detailed help. To open a track with Tech Support, fill out the form at this link:

http://support.sas.com/ctx/supportform/createForm

cynthia


** After you run the job, ;

** open the rep_fr.html file in a browser;

  

ods _all_ close;

ods html path='c:\temp' (url=none)

         file='rep_body.html'

         contents='rep_toc.html'

         frame='rep_fr.html' style=egdefault;

title;

proc print data=sashelp.class(obs=3);

run;

  

proc print data=sashelp.shoes(obs=3);

run;

 

proc print data=sashelp.cars(obs=3);

run;

ods _all_ close;

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