<?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 column with delimiter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582046#M165491</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;In the following examples&amp;nbsp; there are&amp;nbsp; columns (char) with&amp;nbsp;&lt;CODE class=" language-sas"&gt;&amp;nbsp;delimiter.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;Why the data sets are not created well?&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example1;
infile datalines dlm="|" dsd;
input var1 $ ;
datalines;
ABC|2015|XYZ
ABC||XYZ
;
run;

data example2;
input var1 $ ;
datalines;
ABC,2015,XYZ
ABC,XYZ
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 14:23:51 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2019-08-19T14:23:51Z</dc:date>
    <item>
      <title>column with delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582046#M165491</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;In the following examples&amp;nbsp; there are&amp;nbsp; columns (char) with&amp;nbsp;&lt;CODE class=" language-sas"&gt;&amp;nbsp;delimiter.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;Why the data sets are not created well?&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example1;
infile datalines dlm="|" dsd;
input var1 $ ;
datalines;
ABC|2015|XYZ
ABC||XYZ
;
run;

data example2;
input var1 $ ;
datalines;
ABC,2015,XYZ
ABC,XYZ
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 14:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582046#M165491</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-19T14:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: column with delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582048#M165493</link>
      <description>&lt;P&gt;What did you expect from this code? What is your desired result?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 06:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582048#M165493</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-19T06:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: column with delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582049#M165494</link>
      <description>&lt;P&gt;If the char used a delimiter between variable can appear in char variables as content, then that content has to be enclosed in quotes. If it is not quoted, return the file to the one who created it, explaining that such garbage could be processed, but requires more time to write the code and requires additional to verify the result.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 06:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582049#M165494</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-08-19T06:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: column with delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582050#M165495</link>
      <description>&lt;P&gt;Look at the values in the data set that was created.&lt;/P&gt;
&lt;P&gt;Do you see that the values are not matched to values that I entered&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 06:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582050#M165495</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-19T06:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: column with delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582067#M165504</link>
      <description>&lt;P&gt;You have 3 variables per row, then change your code to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example1;
informat var1-var3 $5.;
infile datalines dlm="|" dsd;
input var1 var2 var3 ;
datalines;
ABC|2015|XYZ
ABC||XYZ
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582067#M165504</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-08-19T08:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: column with delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582114#M165514</link>
      <description>&lt;P&gt;What output do you want?&lt;/P&gt;
&lt;P&gt;Your current programs are just reading the first value from the data lines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 14:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/column-with-delimiter/m-p/582114#M165514</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-19T14:26:01Z</dc:date>
    </item>
  </channel>
</rss>

