<?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: Need to add footnotes\trailers in text document in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378891#M24657</link>
    <description>&lt;P&gt;No. &amp;nbsp;Proc export will only create a valid delimited file, your not creating a valida delimited file so you need to do it yourself. &amp;nbsp;Also, you might want to clarify what you want out:&lt;/P&gt;
&lt;P&gt;DBMS=TAB - this indicates a tab delimited text file however&lt;/P&gt;
&lt;P&gt;DELIMTER='|' - this indicates a pipe delimited text file.&lt;/P&gt;
&lt;P&gt;Also avoid coding in mixed case, it makes code hard to read and use code blocks - its the {i} above the post to avoid formatting issues.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2017 07:50:44 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-07-25T07:50:44Z</dc:date>
    <item>
      <title>Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378609#M24633</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Need to add a &amp;nbsp;some text ( 'Note statements') at the end of my text file.&lt;/P&gt;&lt;P&gt;eg :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MBCE|WBSRV||||1305|19-07-2017|C|C|By /5346/JEESHMA B R|0||0|6250||6250|0|0|0|6250|190717FB139051&lt;BR /&gt;MBCE|WBSRV||||1305|19-07-2017|C|C|By /5013/AJAY VINOD|0||0|81250||81250|0|0|0|81250|190717FB141101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:'ALL DATA NOT REFLECTED IN REPORT'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add this note statement.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 08:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378609#M24633</guid>
      <dc:creator>nr1</dc:creator>
      <dc:date>2017-07-24T08:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378615#M24635</link>
      <description>&lt;P&gt;Why, this is not inline with delimited text files? &amp;nbsp;First row contains headers (can be omitted), each following row is a row of data delimited by a given character - this breaks that and adds additional problems for the importer. &amp;nbsp;If you need to confirm something then this should be included in the manifest/import agreement/validation summary etc. not as part of the datafile. &amp;nbsp;This file would not pass my acceptance testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, you will ignore all that and carry on anyway, so in your datastep which you write the data out (you do use datastep yes?) put:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set have end=last;
  file "xyz.txt" dlm="|";
  ...
  if last then put "....";
run;&lt;/PRE&gt;
&lt;P&gt;Again though, I would fail it as the datatype is not valid in any sense.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378615#M24635</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-24T09:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378618#M24636</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes i do have a data set which contains all the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data _null_;
  set have end=last;
  file "xyz.txt" dlm="|";
  ...
  if last then put "....";
run;&lt;BR /&gt;Now i have executed this  code by giving my datset and in put statement the required lines.But only the last&lt;BR /&gt;&lt;BR /&gt;line got excuted.data went missing and only the last line (in put statement)got printed.&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378618#M24636</guid>
      <dc:creator>nr1</dc:creator>
      <dc:date>2017-07-24T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378623#M24637</link>
      <description>&lt;P&gt;This is just a shell code for example, you need to populate it with the data you have:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set have end=last;
  file "xyz.txt" dlm="|";
  put var1 var2...;
  if last then put "....";
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378623#M24637</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-24T09:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378706#M24651</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/92601"&gt;@nr1&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I Need to add a &amp;nbsp;some text ( 'Note statements') at the end of my text file.&lt;/P&gt;
&lt;P&gt;eg :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MBCE|WBSRV||||1305|19-07-2017|C|C|By /5346/JEESHMA B R|0||0|6250||6250|0|0|0|6250|190717FB139051&lt;BR /&gt;MBCE|WBSRV||||1305|19-07-2017|C|C|By /5013/AJAY VINOD|0||0|81250||81250|0|0|0|81250|190717FB141101&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:'ALL DATA NOT REFLECTED IN REPORT'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to add this note statement.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A question: Is this text file to be read by another computer program as input data? If so does that program know how to read a blank line followed by your note and NOT treat it as data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 14:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378706#M24651</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-24T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378732#M24653</link>
      <description>&lt;P&gt;Sounds like really &lt;STRONG&gt;dumb&lt;/STRONG&gt; idea.&lt;/P&gt;
&lt;P&gt;But if you really want to do it then just add it when you create the file.&lt;/P&gt;
&lt;P&gt;Or you can just add it later in a sperate step. Let's assume your file is named 'myfile.txt'.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'myfile.txt' mod ;
  put / "Note:'ALL DATA NOT REFLECTED IN REPORT'" ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2017 15:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378732#M24653</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-24T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378890#M24656</link>
      <description>&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using proc export statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg:PROC EXPORT DATA=a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OUTFILE= "location.txt"&lt;BR /&gt;DBMS=TAB replace;&lt;BR /&gt;putnames=no;&lt;BR /&gt;DELIMITER='|' ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this will give the data in txt format but need to add a footnote to this text file.any options for this&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378890#M24656</guid>
      <dc:creator>nr1</dc:creator>
      <dc:date>2017-07-25T07:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add footnotes\trailers in text document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378891#M24657</link>
      <description>&lt;P&gt;No. &amp;nbsp;Proc export will only create a valid delimited file, your not creating a valida delimited file so you need to do it yourself. &amp;nbsp;Also, you might want to clarify what you want out:&lt;/P&gt;
&lt;P&gt;DBMS=TAB - this indicates a tab delimited text file however&lt;/P&gt;
&lt;P&gt;DELIMTER='|' - this indicates a pipe delimited text file.&lt;/P&gt;
&lt;P&gt;Also avoid coding in mixed case, it makes code hard to read and use code blocks - its the {i} above the post to avoid formatting issues.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 07:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-to-add-footnotes-trailers-in-text-document/m-p/378891#M24657</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-25T07:50:44Z</dc:date>
    </item>
  </channel>
</rss>

