<?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 Creating a Text file in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-Text-file/m-p/34627#M5004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a text delimited file with '|' delimiter from a sas dataset. I also want a header at the start about the company name with Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then next lines just the dataset values from sas dataset with no column headings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and finally after the end a trailer record with summary of fields.Please correct the code from below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿data xyz;&lt;/P&gt;&lt;P&gt;set...;&lt;/P&gt;&lt;P&gt;length ....; file /// dlm = '|" recfm = f lrecl = 101;&lt;/P&gt;&lt;P&gt;put &lt;/P&gt;&lt;P&gt;@001&amp;nbsp;&amp;nbsp; Header &amp;amp;1.&lt;/P&gt;&lt;P&gt;@002 .....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not header than do;&lt;/P&gt;&lt;P&gt;﻿@001 detail rec $1.&lt;/P&gt;&lt;P&gt;@002 var1&lt;/P&gt;&lt;P&gt;@003 var 2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@100 '0D0A'x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if end then do ;&lt;/P&gt;&lt;P&gt;put @001 footer &lt;/P&gt;&lt;P&gt;@002 summary&lt;/P&gt;&lt;P&gt;end;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help for correction. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2012 20:54:48 GMT</pubDate>
    <dc:creator>aroras4</dc:creator>
    <dc:date>2012-03-16T20:54:48Z</dc:date>
    <item>
      <title>Creating a Text file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-Text-file/m-p/34627#M5004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a text delimited file with '|' delimiter from a sas dataset. I also want a header at the start about the company name with Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then next lines just the dataset values from sas dataset with no column headings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and finally after the end a trailer record with summary of fields.Please correct the code from below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿data xyz;&lt;/P&gt;&lt;P&gt;set...;&lt;/P&gt;&lt;P&gt;length ....; file /// dlm = '|" recfm = f lrecl = 101;&lt;/P&gt;&lt;P&gt;put &lt;/P&gt;&lt;P&gt;@001&amp;nbsp;&amp;nbsp; Header &amp;amp;1.&lt;/P&gt;&lt;P&gt;@002 .....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not header than do;&lt;/P&gt;&lt;P&gt;﻿@001 detail rec $1.&lt;/P&gt;&lt;P&gt;@002 var1&lt;/P&gt;&lt;P&gt;@003 var 2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@100 '0D0A'x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if end then do ;&lt;/P&gt;&lt;P&gt;put @001 footer &lt;/P&gt;&lt;P&gt;@002 summary&lt;/P&gt;&lt;P&gt;end;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help for correction. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 20:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-Text-file/m-p/34627#M5004</guid>
      <dc:creator>aroras4</dc:creator>
      <dc:date>2012-03-16T20:54:48Z</dc:date>
    </item>
    <item>
      <title>Creating a Text file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-Text-file/m-p/34628#M5005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;set ... end=last;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if _n_=1 then &lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;header code&amp;gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;data area&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if last then&lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;trailer code&amp;gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2012 01:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-Text-file/m-p/34628#M5005</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-17T01:57:26Z</dc:date>
    </item>
  </channel>
</rss>

