BookmarkSubscribeRSS Feed
SAS_user
Calcite | Level 5
Hello,

I want to produce a raport.
Here's is code:

*****************************;
proc sort
data = sashelp.class
out = AAA;
by sex;
run;

proc report
data = AAA nowindows;
by sex;
columns sex age name height weight;
define sex/order noprint;
define age/group;
quit;
*****************************;

The problem is that i want one raport table, but i get two separated tables(pages). I want to get one table/page.
I'm using sas 9.1, so BYPAGENO option is not valid.
3 REPLIES 3
deleted_user
Not applicable
Doesn't removing the by option work.
SAS_user
Calcite | Level 5
Yes it works. But u don't get the point.
I want the line that indicates the sex before any of data is outputted.
I have already solved the problem, by computing temporary variable, and adding a line.

If it would be helpful for anybody here is code.

proc report
data = sashelp.class nowindows;
columns sex age name height weight;
define sex/order noprint;
define name/order;
define age/group;
define height/order;
define weight/order;
compute before sex;
text = "Sex = " ||sex;
line text $40.;
endcomp;
quit;
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Yes - you have addressed the pagination issue correctly, per the SAS DOC (link below). Your approach is a correct one.

Scott Barry
SBBWorks, Inc.

http://support.sas.com/resources/papers/ProcReportBasics.pdf

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!

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