BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi
I want to generate HTML report, where should be:
+ New Accounts (quantity)
+ Deleted Accounts (quantity)

And when somebody click expand button it shows records.
Is it possible? Please show an example.

Also, it can be link, that shows the corresponding table.

Thanks.
3 REPLIES 3
David_SAS
SAS Employee
This questions is perhaps best answered by Technical Support. You can submit it online at http://support.sas.com/ctx/supportform/index.jsp .

-- David Kelley, SAS
deleted_user
Not applicable
I did this.
SAS Support answer:
"There is no straight out of the box way of doing this with proc report. You could use put statements to put html codes to the output, and thereby control the design more of less yourself."
Cynthia_sas
Diamond | Level 26
Adding the JavaScript can either be done with a DATA Step -- writing your own HTML page or put the JavaScript inside a Style template....this means the JavaScript would work no matter what procedure you were using. These Tech Support notes might be useful to you:
http://www2.sas.com/proceedings/sugi26/p187-26.pdf
http://support.sas.com/rnd/base/topics/templateFAQ/jscript.html
http://support.sas.com/faq/033/FAQ03308.html
http://support.sas.com/faq/040/FAQ04037.html
http://support.sas.com/faq/040/FAQ04030.html

cynthia

ps...just an afterthought...several of the items above talk about modifying the FRAME= or adding JavaScript to that file using a template. This code will show you how to build a set of LINKED HTML files that will display in a browser window when you open the FRAME.HTML file -- so that when you click on a link in the left-hand frame, you will load the appropriate table (in this example -- for a particular REGION) in the right-hand frame.
[pre]
ods html path='c:\temp'(url=none)
file='bygrp1.html'
contents='toc.html'
frame='frame.html'
newfile=bygroup;

proc report data=sashelp.shoes nowd;
by Region;
column Region Subsidiary Sales;
define Region /group;
define Subsidiary /order;
define Sales/ sum;
break after Region / summarize;
run;

ods html close;
[/pre]

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1024 views
  • 0 likes
  • 3 in conversation