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

Hi All,

I came across a requirement where orientation of the columns in the excel report should be -90 degrees.I was wondering if there is an option in proc report (I am using ODS and MSOFFICE2k tagset) for that.Below screenshot might help you in understanding what I am referring to.

Thanks in advance.vertical.bmp

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  I believe that the MSOFFICE2K_X tagset (NOT MSOFFICE2K) offers you a sub-option to rotate the column headers. It is not something that happens within PROC REPORT...you specify rotated headers in a sub-option like this:

  ods tagsets.msoffice2k_x file="c:\temp\rotate.xls" style=normal

      options( rotate_headers="45"

               height="60"  );

  For information about using TAGSETS.MSOFFICE2K_X and to download the newest tagset template, visit this web site. The information shows how to ask for rotated headers.

http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html#intro

http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html#rotate

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  I believe that the MSOFFICE2K_X tagset (NOT MSOFFICE2K) offers you a sub-option to rotate the column headers. It is not something that happens within PROC REPORT...you specify rotated headers in a sub-option like this:

  ods tagsets.msoffice2k_x file="c:\temp\rotate.xls" style=normal

      options( rotate_headers="45"

               height="60"  );

  For information about using TAGSETS.MSOFFICE2K_X and to download the newest tagset template, visit this web site. The information shows how to ask for rotated headers.

http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html#intro

http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html#rotate

cynthia

jshaik
Calcite | Level 5

Thanks a lot Cynthia.It worked.

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!

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