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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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