<?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 question about proc report with flow option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897832#M354854</link>
    <description>&lt;P&gt;Hi, I'm practicing the following program on the book of learning sas through examples on SAS Studio. But the result is not as demonstrated on the book, there's no line wrapping, no expected column widths... I dont know why? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program 15.7: Demonstrating the FLOW Option with PROC REPORT&lt;BR /&gt;title "Demonstrating the FLOW Option";&lt;BR /&gt;proc report data=Learn.Medical headline&lt;BR /&gt;split=' ' ls=74;&lt;BR /&gt;column Patno VisitDate DX HR Weight Comment;&lt;BR /&gt;define Patno / "Patient Number" width=7;&lt;BR /&gt;define VisitDate / "Visit Date" width=9 format=date9.;&lt;BR /&gt;define DX / "DX Code" width=4 right;&lt;BR /&gt;define HR / "Heart Rate" width=6;&lt;BR /&gt;define Weight / width=6;&lt;BR /&gt;define Comment / width=30 flow;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2023 15:38:00 GMT</pubDate>
    <dc:creator>wxzhai</dc:creator>
    <dc:date>2023-10-09T15:38:00Z</dc:date>
    <item>
      <title>question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897832#M354854</link>
      <description>&lt;P&gt;Hi, I'm practicing the following program on the book of learning sas through examples on SAS Studio. But the result is not as demonstrated on the book, there's no line wrapping, no expected column widths... I dont know why? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program 15.7: Demonstrating the FLOW Option with PROC REPORT&lt;BR /&gt;title "Demonstrating the FLOW Option";&lt;BR /&gt;proc report data=Learn.Medical headline&lt;BR /&gt;split=' ' ls=74;&lt;BR /&gt;column Patno VisitDate DX HR Weight Comment;&lt;BR /&gt;define Patno / "Patient Number" width=7;&lt;BR /&gt;define VisitDate / "Visit Date" width=9 format=date9.;&lt;BR /&gt;define DX / "DX Code" width=4 right;&lt;BR /&gt;define HR / "Heart Rate" width=6;&lt;BR /&gt;define Weight / width=6;&lt;BR /&gt;define Comment / width=30 flow;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 15:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897832#M354854</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-10-09T15:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897868#M354874</link>
      <description>&lt;P&gt;Flow and width options only apply to the LISTING output destination.&lt;/P&gt;
&lt;P&gt;For example from the on line help:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procStatement"&gt;
&lt;DIV class="xis-procStatementSyntax"&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-optionalArgGroup"&gt;
&lt;DIV id="p0013akoqgpbtpn1jv7ffh4axinz" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;FLOW&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimple"&gt;wraps the value of a character variable in its column. The FLOW option honors the split character. If the text contains no split character, then PROC REPORT tries to split text at a blank.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;Restriction&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;This option affects only the LISTING output. It has no affect on other ODS output.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unless you have an ODS LISTING, or have changed the output to listing you will not see the Flow behavior in HTML, RTF, PDF, EXCEL or any other ODS destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because Proc Report has been around a long time it has many options involved for sending output essentially direct to line printers or text files that emulate line priter behavior, which is ODS LISTING. If you do not include an option to send the output to LISTING you will not see any change in output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/406318"&gt;@wxzhai&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I'm practicing the following program on the book of learning sas through examples on SAS Studio. But the result is not as demonstrated on the book, there's no line wrapping, no expected column widths... I dont know why? Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Program 15.7: Demonstrating the FLOW Option with PROC REPORT&lt;BR /&gt;title "Demonstrating the FLOW Option";&lt;BR /&gt;proc report data=Learn.Medical headline&lt;BR /&gt;split=' ' ls=74;&lt;BR /&gt;column Patno VisitDate DX HR Weight Comment;&lt;BR /&gt;define Patno / "Patient Number" width=7;&lt;BR /&gt;define VisitDate / "Visit Date" width=9 format=date9.;&lt;BR /&gt;define DX / "DX Code" width=4 right;&lt;BR /&gt;define HR / "Heart Rate" width=6;&lt;BR /&gt;define Weight / width=6;&lt;BR /&gt;define Comment / width=30 flow;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 20:17:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897868#M354874</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-09T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897965#M354916</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Do you mean something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;title "Demonstrating the FLOW Option";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc report data=Learn.Medical headline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split=' ' ls=74;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;column Patno VisitDate DX HR Weight Comment;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;define Patno / "Patient Number" width=7;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;define VisitDate / "Visit Date" width=9 format=date9.;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;define DX / "DX Code" width=4 right;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;define HR / "Heart Rate" width=6;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;define Weight / width=6;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;define Comment / width=30 flow;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 14:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897965#M354916</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-10-10T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897970#M354917</link>
      <description>&lt;P&gt;Yes but you will have to look to the listing output window, not the typical "results" window.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 14:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897970#M354917</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-10T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897975#M354921</link>
      <description>&lt;P&gt;But I can't see the listing window you said. The following is what my SAS studio shows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wxzhai_0-1696950991403.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88745i0C445771D4162670/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wxzhai_0-1696950991403.png" alt="wxzhai_0-1696950991403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 15:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897975#M354921</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-10-10T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897977#M354922</link>
      <description>&lt;P&gt;For some unknown reason SAS does not have any feature in SAS/Studio to display normal output files.&amp;nbsp; Only the LOG and ODS outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write the output to a file and then open it yourself.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing file="~/listing.txt";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could add a step to dump the file to the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile "~/listing.txt";
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2023 15:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897977#M354922</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-10-10T15:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: question about proc report with flow option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897982#M354927</link>
      <description>&lt;P&gt;Thank you so much! It worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 16:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-about-proc-report-with-flow-option/m-p/897982#M354927</guid>
      <dc:creator>wxzhai</dc:creator>
      <dc:date>2023-10-10T16:16:21Z</dc:date>
    </item>
  </channel>
</rss>

