<?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 adjusting column width in proc means in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/adjusting-column-width-in-proc-means/m-p/679048#M205042</link>
    <description>&lt;P&gt;Hey all, I'm a new-ish user to SAS (Enterprise Guide is my environment and I import code from notepad). I'm cleaning up some data output of patient records from my hospital system (RedCap, for what it's worth)&amp;nbsp; and in my proc means, I have a fairly long width column that corresponds to a survey question. Some of them are long sentence fragments and as I'm cleaning data (missing, malformed, entered wrong, etc) and it would make my life a but easier if I could make the character limit on my Label column short enough so that the error codes and variable names are both visible without side scrolling. Do I need to add label and format statements to my code or is there an easier way to transcribe my data?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 03:58:11 GMT</pubDate>
    <dc:creator>jmpalumbNCSU</dc:creator>
    <dc:date>2020-08-25T03:58:11Z</dc:date>
    <item>
      <title>adjusting column width in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adjusting-column-width-in-proc-means/m-p/679048#M205042</link>
      <description>&lt;P&gt;Hey all, I'm a new-ish user to SAS (Enterprise Guide is my environment and I import code from notepad). I'm cleaning up some data output of patient records from my hospital system (RedCap, for what it's worth)&amp;nbsp; and in my proc means, I have a fairly long width column that corresponds to a survey question. Some of them are long sentence fragments and as I'm cleaning data (missing, malformed, entered wrong, etc) and it would make my life a but easier if I could make the character limit on my Label column short enough so that the error codes and variable names are both visible without side scrolling. Do I need to add label and format statements to my code or is there an easier way to transcribe my data?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 03:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adjusting-column-width-in-proc-means/m-p/679048#M205042</guid>
      <dc:creator>jmpalumbNCSU</dc:creator>
      <dc:date>2020-08-25T03:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: adjusting column width in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adjusting-column-width-in-proc-means/m-p/679099#M205057</link>
      <description>&lt;P&gt;You can temporarily change the default label for a single run of a procedure by using a label statement in the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose you have a variable named VarX with a label like "This variable has a moderately long description that I don't want to show the entire text". Then you could use:&lt;/P&gt;
&lt;PRE&gt;Proc means data=have;
     var Varx;
     label Varx ="Shorter label for VarX";
run; &lt;/PRE&gt;
&lt;P&gt;You might also try temporarily setting the System option to NOLABEL to suppress use of labels temporarily. Then only the variable names would be shown in the output.&lt;/P&gt;
&lt;PRE&gt;options NOLABEL;
Proc means data=have;
     var Varx;
run; 

options LABEL;&lt;/PRE&gt;
&lt;P&gt;But if you many somewhat obtuse variable names this may not be viable.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 07:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adjusting-column-width-in-proc-means/m-p/679099#M205057</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-25T07:54:06Z</dc:date>
    </item>
  </channel>
</rss>

