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
SAS Super FREQ
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]

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 722 views
  • 0 likes
  • 3 in conversation