<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display SAS column name vertically with constant height and width in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839237#M331841</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/357256"&gt;@abraham1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am getting error while running the below code in log file.&lt;/P&gt;
&lt;P&gt;Unrecognized option: ROTATE_HEADERS&lt;BR /&gt;Unrecognized option: HEIGHT&lt;/P&gt;
&lt;P&gt;I want to change the column header from horizontal to vertical format. Also all the columns should contain constant height of 10 and width of 7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Height of 10 what units? MM, CM, Feet, furlongs?&lt;/P&gt;
&lt;P&gt;Your requirement may have issues with the amount of text you attempt to place in a given height/width combination.&lt;/P&gt;
&lt;P&gt;You may want define more of what you expect for "vertical format" headers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might not be aware of the Proc Print option Heading= that has &lt;STRONG&gt;one&lt;/STRONG&gt; form of vertical headings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example run (regardless of destination)&lt;/P&gt;
&lt;PRE&gt;proc print data=test heading=vertical ; run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 16:47:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-10-18T16:47:14Z</dc:date>
    <item>
      <title>Display SAS column name vertically with constant height and width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839145#M331796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am getting error while running the below code in log file.&lt;/P&gt;
&lt;P&gt;Unrecognized option: ROTATE_HEADERS&lt;BR /&gt;Unrecognized option: HEIGHT&lt;/P&gt;
&lt;P&gt;I want to change the column header from horizontal to vertical format. Also all the columns should contain constant height of 10 and width of 7.&lt;/P&gt;
&lt;P&gt;Can you please help&lt;/P&gt;
&lt;PRE&gt;data test;
  input pid age gender race event2 $;
  label
    pid = 'Patient ID'
    age = 'Patient age'
    gender='Sex'
    race = 'Race'
    event2='Event 2'
  ;
cards;
101 21 1 1 fever
102 21 2 1 fever
103 31 1 1 fever
104 43 2 1 fever
;
ods tagsets.excelxp file='D:/outputs/test.xls'   style=normal
      options( rotate_headers="45"
               height="60");
proc print data=test ; run;
ods tagsets.excelxp close;&lt;/PRE&gt;
&lt;P&gt;me&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 09:30:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839145#M331796</guid>
      <dc:creator>abraham1</dc:creator>
      <dc:date>2022-10-18T09:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display SAS column name vertically with constant height and width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839172#M331813</link>
      <description>&lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html&lt;/A&gt;</description>
      <pubDate>Tue, 18 Oct 2022 12:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839172#M331813</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-18T12:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display SAS column name vertically with constant height and width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839237#M331841</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/357256"&gt;@abraham1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am getting error while running the below code in log file.&lt;/P&gt;
&lt;P&gt;Unrecognized option: ROTATE_HEADERS&lt;BR /&gt;Unrecognized option: HEIGHT&lt;/P&gt;
&lt;P&gt;I want to change the column header from horizontal to vertical format. Also all the columns should contain constant height of 10 and width of 7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Height of 10 what units? MM, CM, Feet, furlongs?&lt;/P&gt;
&lt;P&gt;Your requirement may have issues with the amount of text you attempt to place in a given height/width combination.&lt;/P&gt;
&lt;P&gt;You may want define more of what you expect for "vertical format" headers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might not be aware of the Proc Print option Heading= that has &lt;STRONG&gt;one&lt;/STRONG&gt; form of vertical headings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example run (regardless of destination)&lt;/P&gt;
&lt;PRE&gt;proc print data=test heading=vertical ; run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839237#M331841</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-18T16:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Display SAS column name vertically with constant height and width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839301#M331858</link>
      <description>I have just added sample data for reporting. I need to export the output to excel file with ods tagset excelxp option with column header to be displayed in vertical format.</description>
      <pubDate>Wed, 19 Oct 2022 01:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839301#M331858</guid>
      <dc:creator>abraham1</dc:creator>
      <dc:date>2022-10-19T01:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display SAS column name vertically with constant height and width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839305#M331861</link>
      <description>&lt;P&gt;Why would you want to use EXCELXP tagset instead of using the more recent EXCEL ods destination?&lt;/P&gt;
&lt;P&gt;And if you are going to use that method why are you naming the file with .xls extension instead of .xml?&amp;nbsp; It is going to be an XML file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect you want to add a style to the VAR statement of your PROC PRINT to tell EXCEL to rotate the headers.&lt;/P&gt;
&lt;P&gt;Here is a line from an old report of mine from years ago when EXCELXP was actually kind of current technology.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  var &amp;amp;vlist
   /style={tagattr="format:###,###,###"}
    style(header)={tagattr='rotate:90 format:text'}
  ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2022 04:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839305#M331861</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-19T04:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Display SAS column name vertically with constant height and width</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839346#M331888</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input pid age gender race event2 $;
  label
    pid = 'Patient ID'
    age = 'Patient age'
    gender='Sex'
    race = 'Race'
    event2='Event 2'
  ;
cards;
101 21 1 1 fever
102 21 2 1 fever
103 31 1 1 fever
104 43 2 1 fever
;
ods tagsets.excelxp file='c:\temp\test.xls'   style=normal 
options( Row_Heights='200,20,20,20,20,20,20' Default_Column_Width='10')
;
proc report data=test nowd style(header)={tagattr='rotate:90 ' }; 
run;
ods tagsets.excelxp close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1666179309623.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76299i6507314260B864AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1666179309623.png" alt="Ksharp_0-1666179309623.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-SAS-column-name-vertically-with-constant-height-and/m-p/839346#M331888</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-19T11:34:44Z</dc:date>
    </item>
  </channel>
</rss>

