<?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: How to write a SAS Dataset To a Text File without any delimiter using file statements in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166615#M43161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;what does ( +(-1) :); indicates?&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;It means we will backward a position to output. i.e. delimiter will not be appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;In similar way can we apply delimiters&amp;nbsp; instead of normal put statement like &lt;/SPAN&gt;&lt;STRONG style="line-height: 1.5em; font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;put "|" id "|" female "|" race "&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;?&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Yes. you can.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; set sashelp.class;&lt;/P&gt;&lt;P&gt; file 'c:\temp\x.txt' dlm='|';&lt;/P&gt;&lt;P&gt; put (_all_) (:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Also how to display the observation in line by line (rows) rather than outputting all the observations in single line?&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;Curious. Mine is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;in line by line &lt;/SPAN&gt;, not&amp;nbsp; in a single line . Are you creating this file in UNIX and browse it in WINDOWS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 13:57:12 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-11-12T13:57:12Z</dc:date>
    <item>
      <title>How to write a SAS Dataset To a Text File without any delimiter using file statements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166611#M43157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to write a SAS Dataset To a Text File without any delimiter using file statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 19:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166611#M43157</guid>
      <dc:creator>ldeepikach</dc:creator>
      <dc:date>2014-11-11T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a SAS Dataset To a Text File without any delimiter using file statements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166612#M43158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a fixed width file, where you expect every variable to have the same length in every observation?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Or will you need to pad the variable in certain cases?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/faq/write_fixedformat.htm" title="http://www.ats.ucla.edu/stat/sas/faq/write_fixedformat.htm"&gt;SAS FAQ: How do I write out a fixed-format file in SAS?&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 19:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166612#M43158</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-11T19:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a SAS Dataset To a Text File without any delimiter using file statements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166613#M43159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if it was what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;
data _null_;
 set sashelp.class;
 file 'c:\temp\x.txt' ;
 put (_all_) ( +(-1) :);
run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166613#M43159</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-12T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a SAS Dataset To a Text File without any delimiter using file statements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166614#M43160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does ( +(-1) :); indicates? In similar way can we apply delimiters&amp;nbsp; instead of normal put statement like &lt;STRONG&gt;put "|" id "|" female "|" race "&lt;/STRONG&gt;?&amp;nbsp; Also how to display the observation in line by line (rows) rather than outputting all the observations in single line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166614#M43160</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-11-12T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a SAS Dataset To a Text File without any delimiter using file statements</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166615#M43161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;what does ( +(-1) :); indicates?&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;It means we will backward a position to output. i.e. delimiter will not be appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;In similar way can we apply delimiters&amp;nbsp; instead of normal put statement like &lt;/SPAN&gt;&lt;STRONG style="line-height: 1.5em; font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;put "|" id "|" female "|" race "&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;?&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Yes. you can.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; set sashelp.class;&lt;/P&gt;&lt;P&gt; file 'c:\temp\x.txt' dlm='|';&lt;/P&gt;&lt;P&gt; put (_all_) (:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Also how to display the observation in line by line (rows) rather than outputting all the observations in single line?&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;Curious. Mine is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;in line by line &lt;/SPAN&gt;, not&amp;nbsp; in a single line . Are you creating this file in UNIX and browse it in WINDOWS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-write-a-SAS-Dataset-To-a-Text-File-without-any-delimiter/m-p/166615#M43161</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-12T13:57:12Z</dc:date>
    </item>
  </channel>
</rss>

