BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
no_hassles
Calcite | Level 5

SAS Community,

 

I am creating a PROC REPORT table (with SAS ODS PDF) where the number of columns exceeds what I can fit across on one page. The balance of the columns of data flow on to the second page and I would like to create a stub column (a repeat of the first column) to maintain a reference point for the data on the second page.

 

I have tried duplicating the first column after the column in the column statement following the natural break in the report, from page 1 to page 2, but PROC REPORT reformats the layout and I do not obtain the effect I want.

 

Can someone assist me with repeating the first column on the first page to the second page of the report to represent the balance of columns of data on the second page of the report? 

 

Steve Dybas

1 ACCEPTED SOLUTION

Accepted Solutions
Tim_SAS
Barite | Level 11

Such a column is called an "ID column." An ID column (and all the columns to its left) appears on every page of the report.

 

To specify a column as an ID column, add the ID option to the DEFINE statement for the column.

 

DEFINE MYCOL / ID;

View solution in original post

4 REPLIES 4
Tim_SAS
Barite | Level 11

Such a column is called an "ID column." An ID column (and all the columns to its left) appears on every page of the report.

 

To specify a column as an ID column, add the ID option to the DEFINE statement for the column.

 

DEFINE MYCOL / ID;
no_hassles
Calcite | Level 5
I wished I had seen that define in the examples I was combing over. Thanks!
Ksharp
Super User

Or change

options papersize=(10in,20in);

to make PDF as big as enough to hold all these variables in a page.

no_hassles
Calcite | Level 5
Thanks for your response.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 984 views
  • 0 likes
  • 3 in conversation