<?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: missing values at the start column in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703491#M26029</link>
    <description>Thank you it is working now.</description>
    <pubDate>Thu, 03 Dec 2020 19:44:42 GMT</pubDate>
    <dc:creator>archita</dc:creator>
    <dc:date>2020-12-03T19:44:42Z</dc:date>
    <item>
      <title>missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703443#M26012</link>
      <description>&lt;P&gt;I have a csv data which i am importing in sas , the first column of which has ',' only, what should i use to read in as the values are transcending to next column, i have used dsd,dlm,missover.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 17:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703443#M26012</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T17:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703453#M26013</link>
      <description>&lt;P&gt;Please copy/paste the first few lines of the csv file into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg"&gt;&lt;img src="https://communities.sas.com/skins/images/8D8B612AA6AB1DC7E9A0812281D56E02/responsive_peak/images/image_not_found.png" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And post the code you tried into a window opened with the "little running man" button right next to the one indicated.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703453#M26013</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-03T18:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703463#M26014</link>
      <description>ID NAME STATE WEIGHT AGE&lt;BR /&gt;"," SAM WA 67 12&lt;BR /&gt;"," TOM TX 90 15&lt;BR /&gt;"," GINNY MI 89 16</description>
      <pubDate>Thu, 03 Dec 2020 18:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703463#M26014</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703464#M26015</link>
      <description>&lt;P&gt;ID NAME STATE WEIGHT AGE&lt;BR /&gt;, SAM WA 67 12&lt;BR /&gt;, TOM TX 90 15&lt;BR /&gt;, GINNY MI 89 16&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703464#M26015</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T18:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703468#M26017</link>
      <description>&lt;P&gt;See this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile datalines firstobs=2 dlm=" " dsd truncover;
input id $ name $ state $ weight age;
drop id;
/* or this */
if id = "," then id = " ";
datalines;
ID NAME STATE WEIGHT AGE
, SAM WA 67 12
, TOM TX 90 15
, GINNY MI 89 16
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Replace the DATALINES keyword in the INFILE statement with your path to the file, and replace the DATALINES block with a RUN statement.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703468#M26017</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-03T18:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703472#M26019</link>
      <description>&lt;P&gt;I am not getting the desired output&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703472#M26019</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703474#M26021</link>
      <description>&lt;P&gt;Id,NAME,STATe,WEIGHT,AGE&lt;BR /&gt;,WA,67,12&lt;BR /&gt;,TOM,TX,90,15&lt;BR /&gt;,GINNY,MI,89,16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is how the data looks ,i want to read in this into sas.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703474#M26021</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703484#M26024</link>
      <description>&lt;P&gt;Open your file with a &lt;U&gt;text editor&lt;/U&gt;, and &lt;U&gt;copy/paste&lt;/U&gt; the content into a code box, as described earlier. Only when I can be half-way sure I see what you really have, will I work on further code.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703484#M26024</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-03T19:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703485#M26025</link>
      <description>&lt;P&gt;please find the attached file.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703485#M26025</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703487#M26027</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile '/folders/myfolders/test1.txt' firstobs=2 dlm="," dsd truncover;
input id $ name $ state $ weight age;
run;

proc print data=want;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;Beob.	id	name	state	weight	age
1	 	WA	67	12	.
2	 	TOM	TX	90	15
3	 	GINNY	MI	89	16
&lt;/PRE&gt;
&lt;P&gt;The first data line misses a name.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703487#M26027</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-03T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703490#M26028</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130051"&gt;@archita&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;ID NAME STATE WEIGHT AGE&lt;BR /&gt;"," SAM WA 67 12&lt;BR /&gt;"," TOM TX 90 15&lt;BR /&gt;"," GINNY MI 89 16&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why did you post this? It does not look anything at all like the file your attached before.&lt;/P&gt;
&lt;P&gt;Here is what those lines look like. Notice how I used the Insert Code button on the forum editor to allow me to paste in the text and have it displayed without being interpretted as paragraphs.&lt;/P&gt;
&lt;PRE&gt;Id,NAME,STATe,WEIGHT,AGE
,WA,67,12
,TOM,TX,90,15
,GINNY,MI,89,16&lt;/PRE&gt;
&lt;P&gt;If you don't want to keep the ID variable in your SAS dataset you can use a DROP statement in your data step that reads the text file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile 'myfile.txt' dsd firstobs=2 truncover;
  input Id $ NAME $ STATe $ WEIGHT AGE;
  drop id;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703490#M26028</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-03T19:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703491#M26029</link>
      <description>Thank you it is working now.</description>
      <pubDate>Thu, 03 Dec 2020 19:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703491#M26029</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: missing values at the start column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703492#M26030</link>
      <description>thank you it is working .</description>
      <pubDate>Thu, 03 Dec 2020 19:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/missing-values-at-the-start-column/m-p/703492#M26030</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2020-12-03T19:46:26Z</dc:date>
    </item>
  </channel>
</rss>

