<?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: Help with a Tab Delimeted File using Put in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388322#M93119</link>
    <description>&lt;P&gt;Isn't Tab, '09'x?&lt;/P&gt;
&lt;P&gt;2C is a comma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/6182356/what-is-2c-in-a-url" target="_blank"&gt;https://stackoverflow.com/questions/6182356/what-is-2c-in-a-url&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 21:20:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-08-15T21:20:10Z</dc:date>
    <item>
      <title>Help with a Tab Delimeted File using Put</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388317#M93117</link>
      <description>&lt;P&gt;Help!! &amp;nbsp;I need to create a Tab Delimeted File with several blank columns and a final column that is the concatenation of 6 vars I am having 2 issues:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. even though I have coded a Tab , the output also has a Comma Delimeter&lt;/P&gt;&lt;P&gt;2. I need to get rid of the blank space after the variable and before the text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code and I am attaching the output and a small sasfile i am testing with:&lt;/P&gt;&lt;PRE&gt; 
data _null_;
  set lago;
  tabdlm='2C'x;
  file out1 lrecl=32767;
  put
   '123456'tabdlm
   sku tabdlm
   'D31720' tabdlm
   description tabdlm 
   tabdlm 
   tabdlm 
   tabdlm 
   tabdlm 
   tabdlm 
   tabdlm           
   tabdlm           
   tabdlm           
   tabdlm           
   tabdlm           
   'croas=' croas 
   '\units=' units 
   '\demand=' ___K_s_
   '\woos=' wk_OOS 
   '\categ=' categ 
   '\yoi=' yrs_inv
 ;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 21:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388317#M93117</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2017-08-15T21:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Tab Delimeted File using Put</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388322#M93119</link>
      <description>&lt;P&gt;Isn't Tab, '09'x?&lt;/P&gt;
&lt;P&gt;2C is a comma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/6182356/what-is-2c-in-a-url" target="_blank"&gt;https://stackoverflow.com/questions/6182356/what-is-2c-in-a-url&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 21:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388322#M93119</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-15T21:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Tab Delimeted File using Put</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388325#M93120</link>
      <description>&lt;P&gt;Taking your questions in order ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You didn't ask for a tab.&amp;nbsp; You asked for a comma.&amp;nbsp; 2C is the hex code for a comma.&amp;nbsp; Off the top of my head, 09 is the hex code for a tab, but you'll have to check that.&amp;nbsp; If that's correct, use&amp;nbsp;&amp;nbsp; tabdlm='09'x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the PUT statement encounters a variable name without a format, it leaves a single blank after the variable's value.&amp;nbsp; You have to tell SAS to back up, and write over that single space:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put '123456'&amp;nbsp; tabdlm +(-1)&amp;nbsp; sku +(-1) tabdlm +(-1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For constant text, such as "123456" there is no extra blank so don't add +(-1) there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For safety's sake, leave a space after closing quotes.&amp;nbsp; A "t" immediately following a closed quote has the potential to cause problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should do it.&amp;nbsp; Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 21:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388325#M93120</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-08-15T21:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Tab Delimeted File using Put</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388337#M93126</link>
      <description>&lt;P&gt;Well I have egg on my face over that one! &amp;nbsp; yes i had the comma not the tab -ugh... &amp;nbsp; Thank you for seeing the obvious because for the life of me I couldn't &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 22:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-a-Tab-Delimeted-File-using-Put/m-p/388337#M93126</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2017-08-15T22:25:20Z</dc:date>
    </item>
  </channel>
</rss>

