<?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 Weird sign appears after exporting a SAS dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316062#M69015</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export my SAS Dataset into text file.&lt;/P&gt;&lt;P&gt;i Tried 3 ways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I tried the export menu option by clicking the file and the resulting text file showed some weird sign as under&amp;nbsp;&lt;/P&gt;&lt;P&gt;clamno lineno freqcode ICN&lt;BR /&gt;0101011521587 001 8 " 1502141198141"&lt;BR /&gt;0101011521587 002 8 " 1502141198141"&lt;BR /&gt;0101011521587 003 8 " 1502141198141"&lt;BR /&gt;0101011521587 004 8 " 1502141198141"&lt;BR /&gt;0101011521587 005 8 " 1502141198141"&lt;BR /&gt;0101011521587 006 8 " 1502141198141"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't need the ( " ) marks around&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;" 1502141198141"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) i wrote a proc export command as under&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data= import&lt;BR /&gt;outfile='C:\Users\athapa\Desktop\cc.txt'&lt;BR /&gt;dbms= tab replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The output is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clamno lineno freqcode ICN&lt;BR /&gt;0101011521587 "001 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "002 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "003 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "004 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "005 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "006 " 8 " 1502141198141"&lt;/P&gt;&lt;P&gt;Again the weird quotations around numbers&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I tried the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;file "C:\Users\athapa\Desktop\ICN\aaa.txt" delimiter= tab ;&lt;BR /&gt;Set import;&lt;BR /&gt;if _n_ = 1 then do;&lt;BR /&gt;put "clamno" tab&lt;BR /&gt;"lineno" tab&lt;BR /&gt;"claimfrq" tab&lt;BR /&gt;"icn"&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;Put (_all_)(+0);&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The output this time looks ok but has a lot of spacing, which i do not need. i only need 1 single space between variables.&lt;/P&gt;&lt;P&gt;clamno lineno claimfrq icn&lt;BR /&gt;0101011521587 001 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 002 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 003 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 004 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 005 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 006 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 007 8 &amp;nbsp;1502141198141&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the datase HAVE with only 10 obs. The actual data has 6111 obs. Since i could not post my sas dataset here. I have attached a text file&amp;nbsp;of the Have&amp;nbsp;sas dataset.&lt;/P&gt;&lt;P&gt;So first we have import this HAVE text file and then export it as text file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please help me to understand where i am going wrong.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2016 19:37:26 GMT</pubDate>
    <dc:creator>athapa1183</dc:creator>
    <dc:date>2016-12-01T19:37:26Z</dc:date>
    <item>
      <title>Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316062#M69015</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export my SAS Dataset into text file.&lt;/P&gt;&lt;P&gt;i Tried 3 ways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I tried the export menu option by clicking the file and the resulting text file showed some weird sign as under&amp;nbsp;&lt;/P&gt;&lt;P&gt;clamno lineno freqcode ICN&lt;BR /&gt;0101011521587 001 8 " 1502141198141"&lt;BR /&gt;0101011521587 002 8 " 1502141198141"&lt;BR /&gt;0101011521587 003 8 " 1502141198141"&lt;BR /&gt;0101011521587 004 8 " 1502141198141"&lt;BR /&gt;0101011521587 005 8 " 1502141198141"&lt;BR /&gt;0101011521587 006 8 " 1502141198141"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't need the ( " ) marks around&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;" 1502141198141"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) i wrote a proc export command as under&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data= import&lt;BR /&gt;outfile='C:\Users\athapa\Desktop\cc.txt'&lt;BR /&gt;dbms= tab replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The output is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clamno lineno freqcode ICN&lt;BR /&gt;0101011521587 "001 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "002 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "003 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "004 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "005 " 8 " 1502141198141"&lt;BR /&gt;0101011521587 "006 " 8 " 1502141198141"&lt;/P&gt;&lt;P&gt;Again the weird quotations around numbers&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I tried the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;file "C:\Users\athapa\Desktop\ICN\aaa.txt" delimiter= tab ;&lt;BR /&gt;Set import;&lt;BR /&gt;if _n_ = 1 then do;&lt;BR /&gt;put "clamno" tab&lt;BR /&gt;"lineno" tab&lt;BR /&gt;"claimfrq" tab&lt;BR /&gt;"icn"&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;Put (_all_)(+0);&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The output this time looks ok but has a lot of spacing, which i do not need. i only need 1 single space between variables.&lt;/P&gt;&lt;P&gt;clamno lineno claimfrq icn&lt;BR /&gt;0101011521587 001 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 002 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 003 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 004 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 005 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 006 8 &amp;nbsp;1502141198141&lt;BR /&gt;0101011521587 007 8 &amp;nbsp;1502141198141&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the datase HAVE with only 10 obs. The actual data has 6111 obs. Since i could not post my sas dataset here. I have attached a text file&amp;nbsp;of the Have&amp;nbsp;sas dataset.&lt;/P&gt;&lt;P&gt;So first we have import this HAVE text file and then export it as text file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please help me to understand where i am going wrong.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 19:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316062#M69015</guid>
      <dc:creator>athapa1183</dc:creator>
      <dc:date>2016-12-01T19:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316076#M69021</link>
      <description>&lt;P&gt;All your 4 variables are numeric. The ouput is outcome of formats related to them.&lt;/P&gt;
&lt;P&gt;You should decide how long should be each variable on output and do yo want leading zeroes.&lt;/P&gt;
&lt;P&gt;The first ant the 4th variables should use, probably, &lt;STRONG&gt;format &amp;nbsp;z13.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;while the 2nd and 3rd to be of one dizgit (?!) - then format should be z1. (z + number of digits inclde leading zeroes)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you using delimeter tab ? that may make the impression of many blanks between variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code should be:&lt;/P&gt;
&lt;P&gt;data _null_ ;&lt;BR /&gt;file "C:\Users\athapa\Desktop\ICN\aaa.txt" delimiter= ' ' ;&lt;BR /&gt;Set import;&lt;BR /&gt;if _n_ = 1 then do;&lt;BR /&gt;put "clamno" tab&lt;BR /&gt;"lineno" tab&lt;BR /&gt;"claimfrq" tab&lt;BR /&gt;"icn"&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;Put &amp;nbsp;calmno Z13. &amp;nbsp;' ' lineno Z4. ' ' claimfrq &amp;nbsp;Z2. ' ' &amp;nbsp;icn z13. ; &amp;nbsp; /* adapt length if need */&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 20:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316076#M69021</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-01T20:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316100#M69028</link>
      <description>Try file statement option DSD with DLM=" "&lt;BR /&gt;and adapt your PUT statement to&lt;BR /&gt;PUT (_all_)(:) ;</description>
      <pubDate>Thu, 01 Dec 2016 22:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316100#M69028</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2016-12-01T22:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316101#M69029</link>
      <description>Pesky formatting&lt;BR /&gt;PUT (_all_)( : ) ;</description>
      <pubDate>Thu, 01 Dec 2016 22:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316101#M69029</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2016-12-01T22:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316161#M69051</link>
      <description>&lt;P&gt;Do a proc contents on your dataset. This will reveal data types and assigned formats for your variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To post your SAS data in a readable and usable form here, use the hints from &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step created might even give you enough hints about the nature of your data.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 08:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316161#M69051</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-02T08:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316253#M69083</link>
      <description>&lt;P&gt;sorry for late reply.&lt;/P&gt;&lt;P&gt;sample of exported text file aaa&lt;/P&gt;&lt;P&gt;clamnolineno freqcodeICN&lt;BR /&gt;0101011521587 001 8 1502141198141&lt;BR /&gt;0101011521587 002 8 1502141198141&lt;BR /&gt;0101011521587 003 8 1502141198141&lt;BR /&gt;0101011521587 004 8 1502141198141&lt;BR /&gt;0101011521587 005 8 1502141198141&lt;BR /&gt;0101011521587 006 8 1502141198141&lt;BR /&gt;0101011521587 007 8 1502141198141&lt;/P&gt;&lt;P&gt;even though it looks fine here .In my text file i still can see many spaces between&amp;nbsp;&lt;SPAN&gt;8 &amp;amp; 1502141198141.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the problem still remains why there are so many spaces.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All the variables are character variables because i imorted them that way as under&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data import;&lt;BR /&gt;infile "C:\Users\athapa\Desktop\ICN\QI_30_Medicare_01Dec2016.txt" truncover firstobs = 2 ;&lt;BR /&gt;input clamno $ 1-13 lineno $ 15-18 @19 freqcode $1. ICN $ 20-40;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316253#M69083</guid>
      <dc:creator>athapa1183</dc:creator>
      <dc:date>2016-12-02T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316256#M69085</link>
      <description>&lt;P&gt;Sorry for late reply.&lt;/P&gt;&lt;P&gt;The variables are all character (They need to be character variables )as i imported them as under&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data import;&lt;BR /&gt;infile "C:\Users\athapa\Desktop\ICN\QI_30_Medicare_01Dec2016.txt" truncover firstobs = 2 ;&lt;BR /&gt;input clamno $ 1-13 lineno $ 15-18 @19 freqcode $1. ICN $ 20-40;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't want them to be numeric so i cannot use Z. format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using tab as i am assuming there is a space between all 4 variables as shown by code above&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sample of exported text file aaa&lt;/P&gt;&lt;P&gt;clamnolineno freqcodeICN&lt;BR /&gt;0101011521587 001 8 1502141198141&lt;BR /&gt;0101011521587 002 8 1502141198141&lt;BR /&gt;0101011521587 003 8 1502141198141&lt;BR /&gt;0101011521587 004 8 1502141198141&lt;BR /&gt;0101011521587 005 8 1502141198141&lt;BR /&gt;0101011521587 006 8 1502141198141&lt;BR /&gt;0101011521587 007 8 1502141198141&lt;/P&gt;&lt;P&gt;even though it looks fine here .In my text file i still can see many spaces between&amp;nbsp;&lt;SPAN&gt;8 &amp;amp; 1502141198141.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the problem still remains why there are so many spaces.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code is still doesn't help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316256#M69085</guid>
      <dc:creator>athapa1183</dc:creator>
      <dc:date>2016-12-02T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316265#M69086</link>
      <description>##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##&lt;BR /&gt;The long space is the result of tabing in your text brouser/editor.&lt;BR /&gt;Replace the tab with any charscter,  including blank,  and check again</description>
      <pubDate>Fri, 02 Dec 2016 14:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316265#M69086</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-02T14:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316354#M69111</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i did this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data _null_ ;&lt;BR /&gt;file "C:\Users\athapa\Desktop\ICN\aaa.txt" delimiter= '' ;&lt;BR /&gt;Set avis.have;&lt;BR /&gt;if _n_ = 1 then do;&lt;BR /&gt;put "clamno" ''&lt;BR /&gt;"lineno" ''&lt;BR /&gt;"claimfrq" ''&lt;BR /&gt;"icn"&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;Put (_all_)(+0);&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;still same results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316354#M69111</guid>
      <dc:creator>athapa1183</dc:creator>
      <dc:date>2016-12-02T19:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316378#M69119</link>
      <description>&lt;P&gt;If it is not the tab that makes the long space, probably the &lt;U&gt;spaces are part of the columns.&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;One more try, add a length statemane before the infile in order to truncate the value ti desired length:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data import;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;length clamno $13 lineno $1 freqcode $1 icn $13;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;infile "C:\Users\athapa\Desktop\ICN\QI_30_Medicare_01Dec2&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;016.txt" truncover firstobs = 2 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;input&lt;/STRONG&gt; clamno $ 1-13 lineno $ 15-18 @19 freqcode $1. ICN $ 20-40;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Alternatively&lt;/U&gt; you may change the INPUT statemnet:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;input&amp;nbsp;&lt;/STRONG&gt;@1 clamno $13. @15. lineno &amp;nbsp;$1. @19 $1. &amp;nbsp;@27 icn $13. ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is &lt;STRONG&gt;lineno&lt;/STRONG&gt; just one digit? can it be longer? &amp;nbsp;if yes - adapt its length to the maximum available digits ($n. instead $1.)&lt;/P&gt;
&lt;P&gt;I &lt;STRONG&gt;freqcode&lt;/STRONG&gt; just one digit ? - if need adapt length to maximum digits.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 20:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316378#M69119</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-02T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Weird sign appears after exporting a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316751#M69267</link>
      <description>&lt;P&gt;Looks fine and works.&lt;/P&gt;&lt;P&gt;Sry I didn't have SAS at home so replying now.&lt;/P&gt;&lt;P&gt;Thank you So much Shmuel.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 16:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Weird-sign-appears-after-exporting-a-SAS-dataset/m-p/316751#M69267</guid>
      <dc:creator>athapa1183</dc:creator>
      <dc:date>2016-12-05T16:06:58Z</dc:date>
    </item>
  </channel>
</rss>

