<?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 create data set by type raw data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720719#M223280</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is the correct way to create this data set.&lt;/P&gt;
&lt;P&gt;Sometimes there are long spaces between items and I dont want&amp;nbsp; to change it manually.&lt;/P&gt;
&lt;P&gt;I know that for each variable there should be only one item (or one word only)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Data Longtbl;
input ID field $  labelField $  category $ ;
cards;
1 x1      Team a
1 x2 smoker y
1 x3  status	1
2 x1 Team b
2 x2 smoker	n
2 x3 status	2
3 x1 Team c
3 x2 smoker	n
3 x3 status	2
4 x1 Team a
4 x2 smoker	n
4 x3 status	3
5 x1 Team b
5 x2 smoker	y
5 x3 status	1
6 x1 Team a
6 x2 smoker	y
6 x3 status	1
7 x1 Team c
7 x2 smoker	y
7 x3 status	2
8 x1 Team a
8 x2 smoker	n
8 x3 status	2
9 x1 Team a
9 x2 smoker	y
9 x3 status	3
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 21 Feb 2021 10:14:52 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2021-02-21T10:14:52Z</dc:date>
    <item>
      <title>create data set by type raw data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720719#M223280</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is the correct way to create this data set.&lt;/P&gt;
&lt;P&gt;Sometimes there are long spaces between items and I dont want&amp;nbsp; to change it manually.&lt;/P&gt;
&lt;P&gt;I know that for each variable there should be only one item (or one word only)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Data Longtbl;
input ID field $  labelField $  category $ ;
cards;
1 x1      Team a
1 x2 smoker y
1 x3  status	1
2 x1 Team b
2 x2 smoker	n
2 x3 status	2
3 x1 Team c
3 x2 smoker	n
3 x3 status	2
4 x1 Team a
4 x2 smoker	n
4 x3 status	3
5 x1 Team b
5 x2 smoker	y
5 x3 status	1
6 x1 Team a
6 x2 smoker	y
6 x3 status	1
7 x1 Team c
7 x2 smoker	y
7 x3 status	2
8 x1 Team a
8 x2 smoker	n
8 x3 status	2
9 x1 Team a
9 x2 smoker	y
9 x3 status	3
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Feb 2021 10:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720719#M223280</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-02-21T10:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: create data set by type raw data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720723#M223283</link>
      <description>&lt;P&gt;The delimiter in your data is sometimes space '20'x and sometimes tab '09'x or both.&lt;/P&gt;
&lt;P&gt;To read the the data ceorrectly I have added an INFILE statement with appropriate options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Longtbl;
infile cards dlm='2009'x truncover;
input ID field $  labelField $  category $ ;
cards;
1 x1      Team a
1 x2 smoker y
1 x3  status	1
2 x1 Team b
2 x2 smoker	n
2 x3 status	2
3 x1 Team c
3 x2 smoker	n
3 x3 status	2
4 x1 Team a
4 x2 smoker	n
4 x3 status	3
5 x1 Team b
5 x2 smoker	y
5 x3 status	1
6 x1 Team a
6 x2 smoker	y
6 x3 status	1
7 x1 Team c
7 x2 smoker	y
7 x3 status	2
8 x1 Team a
8 x2 smoker	n
8 x3 status	2
9 x1 Team a
9 x2 smoker	y
9 x3 status	3
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Feb 2021 11:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720723#M223283</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-02-21T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: create data set by type raw data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720724#M223284</link>
      <description>You can check delimiters using notepad++ or msword and brows with view-all symbols.</description>
      <pubDate>Sun, 21 Feb 2021 11:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set-by-type-raw-data/m-p/720724#M223284</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-02-21T11:18:29Z</dc:date>
    </item>
  </channel>
</rss>

