<?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: Proc report text file column position in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/841036#M332540</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;nocenter and spacing solved the issue. Thank you for the help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing file = "&amp;amp;sas_drv.:/SASFILES/Daily.txt";
ods escapechar='^';

options nodate nonumber nocenter orientation=landscape ps=max;
proc report data=throughput_final nowd split='~' noheader headskip ls=142;
   column order_date order_code product_code qty delivery_method;
   define order_date/display "Date" spacing=7; 
   define 'order_code'n/display "Order_code" left spacing=2;
   define product_code/display "Product Code" left spacing=2;
   define qty/analysis "Qty" spacing=2;
   define delivery_method/display "Delivery Method" spacing=2;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Oct 2022 21:34:26 GMT</pubDate>
    <dc:creator>vnreddy</dc:creator>
    <dc:date>2022-10-26T21:34:26Z</dc:date>
    <item>
      <title>Proc report text file column position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/840928#M332492</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could someone help me with the position of the .txt columns output&lt;/P&gt;
&lt;P&gt;This is how my current .txt output file is produced:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnreddy_0-1666796029803.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76656iC6AD4C8DD053719D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnreddy_0-1666796029803.png" alt="vnreddy_0-1666796029803.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see order date starting&amp;nbsp;@7 and ending at &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153152"&gt;@17&lt;/a&gt; position, but i want it be moved one position right: i.e., order date starting at 8 and ending at 18.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used below code, could someone help me with it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing file = "&amp;amp;sas_drv.:/SASFILES/Daily.txt";
ods escapechar='^';

options nodate nonumber  orientation=landscape ps=max;
proc report data=throughput_final nowd split='~' noheader headskip ls=142;
   column order_date order_code product_code qty delivery_method;
   define order_date/display "Date" spacing=2; 
   define 'order_code'n/display "Order_code" left spacing=2;
   define product_code/display "Product Code" left spacing=2;
   define qty/analysis "Qty" spacing=2;
   define delivery_method/display "Delivery Method" spacing=2;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;
&lt;P&gt;vnreddy&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/840928#M332492</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2022-10-26T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report text file column position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/840982#M332504</link>
      <description>&lt;P&gt;There is nothing in that code that is saying to start the first column at the 7th character on the line.&lt;/P&gt;
&lt;P&gt;Probably you are seeing the output in the 7th column because you are using the CENTER option and it happens to be that 6 spaces is then number that centers that report on the line for the given value of LINESIZE option you have set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could play with the LINESIZE option of the width of the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But why not just turn off the centering?&amp;nbsp; Either change the system option or add the NOCENTER option to the PROC REPORT statement.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 17:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/840982#M332504</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-26T17:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report text file column position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/840983#M332505</link>
      <description>Would a data step make more sense here than proc report? Easier to control positions and seems like you want a fixed layout file as well. As long as it's just printing information that seems an easier method IMO.</description>
      <pubDate>Wed, 26 Oct 2022 18:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/840983#M332505</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-26T18:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report text file column position</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/841036#M332540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;nocenter and spacing solved the issue. Thank you for the help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing file = "&amp;amp;sas_drv.:/SASFILES/Daily.txt";
ods escapechar='^';

options nodate nonumber nocenter orientation=landscape ps=max;
proc report data=throughput_final nowd split='~' noheader headskip ls=142;
   column order_date order_code product_code qty delivery_method;
   define order_date/display "Date" spacing=7; 
   define 'order_code'n/display "Order_code" left spacing=2;
   define product_code/display "Product Code" left spacing=2;
   define qty/analysis "Qty" spacing=2;
   define delivery_method/display "Delivery Method" spacing=2;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2022 21:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-report-text-file-column-position/m-p/841036#M332540</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2022-10-26T21:34:26Z</dc:date>
    </item>
  </channel>
</rss>

