BookmarkSubscribeRSS Feed
JohnChen_TW
Quartz | Level 8

Hi everyone,

It's John again for PROC REPORT horizontal line in the header.

I'm using 9.3.

Does anyone have a suggestion on how to get rid of the horizontal lines in the red box as below?

Here is the output:

example2.png

 

Here is my code:

DATA have; LENGTH A1-A7 $1; RUN;

PROC REPORT DATA=have NOWD;
TITLE "EXAMPLE";
COLUMN (A1 ('Area 1' ("Group 1" ('Sub-G1' A2) ('Sub-G2' A3)) ("Group 2" ('Sub-G1' A4) ('Sub-G2' A5)) ("Group 3" ('Sub-G1' A6) ('Sub-G2' A7))));
DEFINE A1 /Style=[cellwidth=30mm] "Variable";
DEFINE A2 /Style=[cellwidth=20mm] "count";
DEFINE A3 /Style=[cellwidth=20mm] "count";
DEFINE A4 /Style=[cellwidth=20mm] "count";
DEFINE A5 /Style=[cellwidth=20mm] "count";
DEFINE A6 /Style=[cellwidth=20mm] "count";
DEFINE A7 /Style=[cellwidth=20mm] "count";
RUN;

 

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Not an answer to your question, but proc tabulate would create the output you want.

Ksharp
Super User
An alternative is using PROC TABULATE


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