<?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: Multiple Observations from Single Record in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516212#M6657</link>
    <description>&lt;P&gt;You need to address multiple delimiters to address the misread, in your case it is comma + whatever invisible except blank&amp;nbsp; (line feed, carriage return or tab?), this can't be illustrated by using in-stream data feed, as the normal behavior of 'input' statement changes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename FT15f001 temp;
Data RudolphXmasList;
dlm=','||'0D'x||'0A'x||'09'x;
  infile FT15F001 dlm=dlm;
input DeerName :$20. Gift :$20. @@;
parmcards;
Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes,
Vixen, red dress, Comet, astrology book, Cupid, bow and arrows,
Donner, lump of coal, Blitzen, snow shoes
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 03:19:04 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2018-11-27T03:19:04Z</dc:date>
    <item>
      <title>Multiple Observations from Single Record</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516185#M6647</link>
      <description>&lt;P&gt;Hello. Below is my code. I do not have errors. However, I am having trouble with my output. How do I make all the deer names in one column and the gift in the other column? Also, how do I not display commas in my output statement? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data RudolphXmasList;&lt;BR /&gt;input DeerName $ Gift $ @@;&lt;BR /&gt;output;&lt;BR /&gt;datalines;&lt;BR /&gt;Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes,&lt;BR /&gt;Vixen, red dress, Comet, astrology book, Cupid, bow and arrows,&lt;BR /&gt;Donner, lump of coal, Blitzen, snow shoes&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc print data = RudolphXmasList;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 23:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516185#M6647</guid>
      <dc:creator>smart</dc:creator>
      <dc:date>2018-11-26T23:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Observations from Single Record</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516188#M6648</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data RudolphXmasList;
infile cards dsd truncover ;
input DeerName : $15. Gift : $15. @;
do while (not missing(deername));
output;
input DeerName : $15. Gift : $15. @;
end;
datalines;
Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes,
Vixen, red dress, Comet, astrology book, Cupid, bow and arrows,
Donner, lump of coal, Blitzen, snow shoes
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244220"&gt;@smart&lt;/a&gt;&amp;nbsp;If the above doesn't help, wait for better robust answers .&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 00:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516188#M6648</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-27T00:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Observations from Single Record</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516189#M6649</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes,  /*if you remove these comma at the right end, your code will work*/
Vixen, red dress, Comet, astrology book, Cupid, bow and arrows, /*if you remove these comma at the right end, your idea will work with some adjustments*/
Donner, lump of coal, Blitzen, snow shoes
 

Data RudolphXmasList;
infile cards dsd  ;
input DeerName : $15. Gift : $15. @@;

datalines;
Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes
Vixen, red dress, Comet, astrology book, Cupid, bow and arrows 
Donner, lump of coal, Blitzen, snow shoes
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 00:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516189#M6649</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-27T00:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Observations from Single Record</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516212#M6657</link>
      <description>&lt;P&gt;You need to address multiple delimiters to address the misread, in your case it is comma + whatever invisible except blank&amp;nbsp; (line feed, carriage return or tab?), this can't be illustrated by using in-stream data feed, as the normal behavior of 'input' statement changes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename FT15f001 temp;
Data RudolphXmasList;
dlm=','||'0D'x||'0A'x||'09'x;
  infile FT15F001 dlm=dlm;
input DeerName :$20. Gift :$20. @@;
parmcards;
Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes,
Vixen, red dress, Comet, astrology book, Cupid, bow and arrows,
Donner, lump of coal, Blitzen, snow shoes
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 03:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516212#M6657</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2018-11-27T03:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Observations from Single Record</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516316#M6662</link>
      <description>&lt;P&gt;I'm not sure if this is simpler or not, but it should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data RudolphXmasList;&lt;/P&gt;
&lt;P&gt;infile cards dsd;&lt;/P&gt;
&lt;P&gt;length DeerName Gift $ 15;&lt;BR /&gt;input DeerName&amp;nbsp; Gift&amp;nbsp; @@ ;&lt;/P&gt;
&lt;P&gt;DeerName = left(DeerName);&lt;/P&gt;
&lt;P&gt;Gift = left(Gift);&lt;BR /&gt;output;&lt;BR /&gt;datalines;&lt;BR /&gt;Dasher, hay bale, Dancer, stocking cap, Prancer, candy canes,&lt;BR /&gt;Vixen, red dress, Comet, astrology book, Cupid, bow and arrows,&lt;BR /&gt;Donner, lump of coal, Blitzen, snow shoes&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;proc print data = RudolphXmasList;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 14:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516316#M6662</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-27T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Observations from Single Record</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516716#M6665</link>
      <description>&lt;P&gt;Thank you! This worked!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 15:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Multiple-Observations-from-Single-Record/m-p/516716#M6665</guid>
      <dc:creator>smart</dc:creator>
      <dc:date>2018-11-28T15:10:59Z</dc:date>
    </item>
  </channel>
</rss>

