BookmarkSubscribeRSS Feed
SivaKV
Fluorite | Level 6

Hi, 

I am using Proc report procedure in SAS Studio. I am facing a challenge. Hoping one of you could help me on below.

 

I am using ODS PDF to print data in PDF along with PROC REPORT procedure in SAS Studio. Right now, i am printing data as below in a single page. Its like i need to create a subtotal for each col1 value. I need to show two records at the end of each col1 value. One is sum of the individual records for each state and second is half value of some of the states. It means one record with just sum of individual records and another one is calculating the record based on some state performance.  

 

Right now, i am achieving this by printing two proc reports procedures. one for detail data and another for subtotals.When i print the second value data for col1, headers are coming again in the middle of the page, which i dont want. 

 

I don't want to show headers in the middle of the page, always headers should show at the beginning of the page only.. Could you please help me is there any way to achieve this.

 

col1                  col2            col3             col4
----------------------------------------------------------
Country1       State1           23               34
                     State2            34              12
------------------------------------------------------
               subtotal1                57              46

              subtotal2                29               23

col1             col2                col3           col4
-----------------------------------------------------
Country2    State1            23              34
                  State2             34             12
                                        77               88
                                       11                66
----------------------------------------------------
                 subtotal1      185               200

                subtotal2        93               100

1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi: PROC REPORT has a NOHEADER option on the PROC REPORT statement. If you mean you want to suppress the column headers on the second PROC REPORT step, that should be possible to do.
Cynthia

SAS Innovate 2025: Register Today!

 

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 631 views
  • 0 likes
  • 2 in conversation