<?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 fix length exported data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-fix-length-exported-data/m-p/20802#M3282</link>
    <description>By using @ you can specify fixed positions in your output (as well as input when reading files). And you will probably not need a delimiter if your file has fixed width fields.&lt;BR /&gt;
&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
set a;&lt;BR /&gt;
file '.....';&lt;BR /&gt;
put @1 var1 @10 var2 @39 var3 @40 var4 @45 var5 ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Mon, 20 Apr 2009 07:32:24 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2009-04-20T07:32:24Z</dc:date>
    <item>
      <title>how to fix length exported data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-fix-length-exported-data/m-p/20801#M3281</link>
      <description>I have sas data set to export to text but i want to fix lenght it ex.&lt;BR /&gt;
&lt;BR /&gt;
var1 var2  var3 var4  var5&lt;BR /&gt;
A,     B ,   C,  100, 15000&lt;BR /&gt;
&lt;BR /&gt;
I would like to fix lenght var1 = 1, var2 = 2 , var3 = 1 var4 = 9 var5 = 9&lt;BR /&gt;
how i do ?&lt;BR /&gt;
&lt;BR /&gt;
command &lt;BR /&gt;
&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
set a;&lt;BR /&gt;
   file '.....' dlm = ';' ;&lt;BR /&gt;
   put var1 var2 var3 var4 var5 ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
output doesn't fix length &lt;BR /&gt;
A;B;C;100;15000&lt;BR /&gt;
i want fix length&lt;BR /&gt;
A;B ;C;000000100;000150000 or&lt;BR /&gt;
A;B ;C;           100;     150000 &lt;BR /&gt;
&lt;BR /&gt;
thanks in advance</description>
      <pubDate>Mon, 20 Apr 2009 05:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-fix-length-exported-data/m-p/20801#M3281</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-20T05:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to fix length exported data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-fix-length-exported-data/m-p/20802#M3282</link>
      <description>By using @ you can specify fixed positions in your output (as well as input when reading files). And you will probably not need a delimiter if your file has fixed width fields.&lt;BR /&gt;
&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
set a;&lt;BR /&gt;
file '.....';&lt;BR /&gt;
put @1 var1 @10 var2 @39 var3 @40 var4 @45 var5 ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 20 Apr 2009 07:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-fix-length-exported-data/m-p/20802#M3282</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-04-20T07:32:24Z</dc:date>
    </item>
  </channel>
</rss>

