<?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: Sas proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/850948#M336292</link>
    <description>&lt;P&gt;Are you generating plain old text output?&amp;nbsp; If so then make the width value longer so it does not have to chop words in half.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you generating ODS output ("fancy" output)?&amp;nbsp; If so then use STYLE= option to set the column width.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example with both:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class split='*';
  col name sex age;
  define name/display;;
  define sex/display ;
  define age/display width=20 format=5. style=[width=1 in]
    'Indian society*Boys and girls*age details as per certificate'
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                      Indian socity
            S        Boys and girls
            e    age details as per
  Name      x           certificate
  Alfred    M                    14
  Alice     F                    13
  Barbara   F                    13
  Carol     F                    14
  Henry     M                    14
  James     M                    12
  Jane      F                    12
  Janet     F                    15
  Jeffrey   M                    13
  John      M                    12
  Joyce     F                    11
  Judy      F                    14
  Louise    F                    12
  Mary      F                    15
  Philip    M                    16
  Robert    M                    12
  Ronald    M                    15
  Thomas    M                    11
  William   M                    15
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1671803572706.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78840iD1C983162A6934D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1671803572706.png" alt="Tom_0-1671803572706.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 13:53:00 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-12-23T13:53:00Z</dc:date>
    <item>
      <title>Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/850946#M336291</link>
      <description>Hi Team,&lt;BR /&gt;I developed a proc report code generate the report through ODS ,but   am facing column width issue  for few variable which are have larger label name (I used split option but no use). Could you please help how to reduce the column width with out changing the label name. &lt;BR /&gt;&lt;BR /&gt;Proc report data=sashelp.class split='*';&lt;BR /&gt;Col name sex age;&lt;BR /&gt;Define name/display;;&lt;BR /&gt;Define sex/display ;&lt;BR /&gt;Define age/display width=5 format=5. 'Indian socity*Boys and girls*age details as per certificate*;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Dec 2022 13:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/850946#M336291</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2022-12-23T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/850948#M336292</link>
      <description>&lt;P&gt;Are you generating plain old text output?&amp;nbsp; If so then make the width value longer so it does not have to chop words in half.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you generating ODS output ("fancy" output)?&amp;nbsp; If so then use STYLE= option to set the column width.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example with both:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class split='*';
  col name sex age;
  define name/display;;
  define sex/display ;
  define age/display width=20 format=5. style=[width=1 in]
    'Indian society*Boys and girls*age details as per certificate'
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                      Indian socity
            S        Boys and girls
            e    age details as per
  Name      x           certificate
  Alfred    M                    14
  Alice     F                    13
  Barbara   F                    13
  Carol     F                    14
  Henry     M                    14
  James     M                    12
  Jane      F                    12
  Janet     F                    15
  Jeffrey   M                    13
  John      M                    12
  Joyce     F                    11
  Judy      F                    14
  Louise    F                    12
  Mary      F                    15
  Philip    M                    16
  Robert    M                    12
  Ronald    M                    15
  Thomas    M                    11
  William   M                    15
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1671803572706.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78840iD1C983162A6934D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1671803572706.png" alt="Tom_0-1671803572706.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 13:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/850948#M336292</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-23T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851030#M336331</link>
      <description>&lt;P&gt;How wide do you want it to be? I added code to make it 1.5 inches.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc report data=sashelp.class split='*';
Col name sex age;
Define name/display;;
Define sex/display ;
Define age/display style(column)=[cellwidth=1.5in] format=5. 'Indian socity*Boys and girls*age details as per certificate*;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2022 17:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851030#M336331</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-12-24T17:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851183#M336403</link>
      <description>Thank for your response. When I applied the login as you suggested it's working fine. But when I applied into my code it's not showing as expected. &lt;BR /&gt;&lt;BR /&gt;I have attached sample code below which i used in my report . could please check once ?&lt;BR /&gt;&lt;BR /&gt;proc report data=sashelp.cars nowd nocenter split="*" spacing=0 ;  column Drivetrain msrp;&lt;BR /&gt;define Drivetrain / display;&lt;BR /&gt;define MSRP / display right style (column)= [cellwidth=1.5 in] "Local Indian Security Value*inc. Accrued Interest" format=comma22.2 style={tagattr='format: #,##0.00'};&lt;BR /&gt; run;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Dec 2022 07:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851183#M336403</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2022-12-27T07:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851218#M336418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't have any issue when running your code on my computer.&lt;/P&gt;
&lt;P&gt;Is there any message in the log? Can you share a picture of the result you get?&lt;/P&gt;
&lt;P&gt;Have you tried to split the statement into several lines? It could be that the width of your screen editor is too short.&lt;/P&gt;
&lt;P&gt;Make sure ls=max too.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 11:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851218#M336418</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-12-27T11:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851220#M336420</link>
      <description>Hi mate,&lt;BR /&gt;There is no issue when you run code and it's generate the output,but when you create XLS files through ODS in that output file column width showing as large..i want reduce column width in output report</description>
      <pubDate>Tue, 27 Dec 2022 11:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851220#M336420</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2022-12-27T11:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851221#M336421</link>
      <description>Hi Tom,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response,&lt;BR /&gt;&lt;BR /&gt;I tried with above logic to my code. But it's not reducing the width in output column. Here i am creating the XLS file through ODS in that output file Column width showing large size .i want to reduce that column width &lt;BR /&gt;&lt;BR /&gt;I have mentioned same code in below.could you please check once?&lt;BR /&gt;&lt;BR /&gt;proc report data=sashelp.cars nowd nocenter split="*" spacing=0 ; column Drivetrain msrp;&lt;BR /&gt;define Drivetrain / display;&lt;BR /&gt;define MSRP / display right   style=[width=1 in] "Local Indian Security Value*inc. Accrued Interest" format=comma22.2 style={tagattr='format: #,##0.00'};&lt;BR /&gt;run;</description>
      <pubDate>Tue, 27 Dec 2022 11:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851221#M336421</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2022-12-27T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851230#M336425</link>
      <description>&lt;P&gt;Use a single style= option in your define statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods excel file="&amp;amp;xxproject/reporting/test.xlsx";* options(flow='table');
proc report data=sashelp.cars nowd split="*"; 
column Drivetrain msrp;
define Drivetrain / display;
define MSRP / display "Local Indian Security Value*inc. Accrued Interest" 
                      style (column)=[cellwidth=.5in 
                                      textalign=right 
                                      tagattr='format: #,##0.00'] 
                      format=comma10.2;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Dec 2022 12:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851230#M336425</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-12-27T12:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sas proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851892#M336741</link>
      <description>Thank you so much it's working.</description>
      <pubDate>Tue, 03 Jan 2023 07:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-proc-report/m-p/851892#M336741</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2023-01-03T07:16:05Z</dc:date>
    </item>
  </channel>
</rss>

