BookmarkSubscribeRSS Feed
VarmaSekhar
Calcite | Level 5

Hello All

I have a dataset that I created from my insurance data. At the end, I need to create a pdf document that contains all of my data with highlighting top and bottom 10 rows (entire rows). Can someone help me how I can obtain this?

Thanks

Varma

2 REPLIES 2
Ksharp
Super User

You'd better post it at ODS and Report forum, Cynthia is good at it .

proc sql noprint;
 select count(*) into : n from sashelp.class;
quit;
ods listing close;
ods pdf file='c:\temp\x.pdf' style=sasweb;
proc report data=sashelp.class nowd;
 columns name sex age;
 define name/display;
 compute age;
  n+1;
  if n le 3 or n ge %eval(&n-3) then call define(_row_,'style','style={background=yellow}');
 endcomp;
run;
ods pdf close;
ods listing;

Xia Keshan

VarmaSekhar
Calcite | Level 5

Thank you so much Xia Keshan. It is exactly what I needed. In the future, I will make sure to post it in the corresponding forums.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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