<?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 PROC PRINT - width of variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314596#M68545</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to see how changing the width of a column in PROC print reflects in the output(window, HTML and PDF). I am using the SAS University Edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should not specifying width=2 should limit the column width as 2 ? Against the column width specified as 2 , the column name is written as "customer region" which is greater than column width specified as 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6038iC9685DE8259825F8/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas7.PNG" title="sas7.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output in Results window:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6039iD8931B54396D4CA0/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas8.PNG" title="sas8.PNG" /&gt;&lt;/P&gt;&lt;P&gt;HTML output downloded:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6040i43FF10EAE4A07295/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas9.PNG" title="sas9.PNG" /&gt;&lt;/P&gt;&lt;P&gt;PDF output downloaded:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6041i2DFB8F7AD0EF8A9A/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas10.PNG" title="sas10.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2016 12:46:45 GMT</pubDate>
    <dc:creator>mafiapainter</dc:creator>
    <dc:date>2016-11-27T12:46:45Z</dc:date>
    <item>
      <title>PROC PRINT - width of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314596#M68545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to see how changing the width of a column in PROC print reflects in the output(window, HTML and PDF). I am using the SAS University Edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should not specifying width=2 should limit the column width as 2 ? Against the column width specified as 2 , the column name is written as "customer region" which is greater than column width specified as 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6038iC9685DE8259825F8/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas7.PNG" title="sas7.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output in Results window:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6039iD8931B54396D4CA0/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas8.PNG" title="sas8.PNG" /&gt;&lt;/P&gt;&lt;P&gt;HTML output downloded:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6040i43FF10EAE4A07295/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas9.PNG" title="sas9.PNG" /&gt;&lt;/P&gt;&lt;P&gt;PDF output downloaded:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6041i2DFB8F7AD0EF8A9A/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas10.PNG" title="sas10.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 12:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314596#M68545</guid>
      <dc:creator>mafiapainter</dc:creator>
      <dc:date>2016-11-27T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT - width of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314604#M68548</link>
      <description>&lt;PRE&gt;
No. width=2 is only for LISTING ,not HTML destination.

...............
define region/group style={cellwidth=1 cm};


&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Nov 2016 13:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314604#M68548</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-27T13:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT - width of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314623#M68556</link>
      <description>&lt;P&gt;Appreciate your response and help on this. But I am getting the same result:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6042i719DDEF4D2C72134/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas11.PNG" title="sas11.PNG" /&gt;&lt;/P&gt;&lt;P&gt;updated code:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6043i4D8B9F7FA2E8766C/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sas12.PNG" title="sas12.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 17:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314623#M68556</guid>
      <dc:creator>mafiapainter</dc:creator>
      <dc:date>2016-11-27T17:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT - width of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314628#M68561</link>
      <description>HI, 1 CM is rather small. If you want to guarantee that 'customer' is on one line and 'region' is on the next line, then use the split character to control the column label:&lt;BR /&gt;define region / group 'Customer*Region'&lt;BR /&gt;           style(column)={cellwidth=2in};&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Sun, 27 Nov 2016 17:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314628#M68561</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-11-27T17:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT - width of variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314637#M68566</link>
      <description>&lt;P&gt;Pay attention, in all your outputs the customer region is leading zeros suppressed, there fore you got the region as one digit.&lt;/P&gt;
&lt;P&gt;If you meant by width=2 to get the region as two digits, you should define its format as z2.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 18:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-width-of-variable/m-p/314637#M68566</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-27T18:26:22Z</dc:date>
    </item>
  </channel>
</rss>

