<?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: Basic Concept in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Basic-Concept/m-p/689934#M209798</link>
    <description>&lt;P&gt;You are using &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;formatted INPUT&lt;/A&gt;, but you have columns that are separated by a delimiter (blank). For this, you need &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;list INPUT&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;To use list input with informats, you need to use the colon modifier on the informats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data readin;
input id date :ddmmyy8. flag $;
format date ddmmyy8.;
cards;
1  30/12/16  Y
1  30-08-17  N
1  31-08-18  N
2  30-06-16  Y
2  31-12-18  N
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Oct 2020 11:35:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-10-08T11:35:10Z</dc:date>
    <item>
      <title>Basic Concept</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-Concept/m-p/689932#M209796</link>
      <description>&lt;P&gt;I have the following the DATASET, I have put 2 spaces between the values of ID &amp;amp; Date and Date &amp;amp; Flag. I am not getting the desired result but the year (i.e. 16 is getting assigned to the FLAG variable) WHEREAS if I am putting only 1 space between ID &amp;amp; Date and Date &amp;amp; Flag then my answer is as desire. Please explain why this is happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data readin ;&lt;BR /&gt;input id date ddmmyy8. flag $ ;&lt;BR /&gt;format date ddmmyy8. ;&lt;BR /&gt;cards;&lt;BR /&gt;1&amp;nbsp; 30/12/16&amp;nbsp; Y&lt;BR /&gt;1&amp;nbsp; 30-08-17&amp;nbsp; N&lt;BR /&gt;1&amp;nbsp; 31-08-18&amp;nbsp; N&lt;BR /&gt;2&amp;nbsp; 30-06-16&amp;nbsp; Y&lt;BR /&gt;2&amp;nbsp; 31-12-18&amp;nbsp; N&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-Concept/m-p/689932#M209796</guid>
      <dc:creator>Sanchit_goyal</dc:creator>
      <dc:date>2020-10-08T11:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Concept</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Basic-Concept/m-p/689934#M209798</link>
      <description>&lt;P&gt;You are using &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;formatted INPUT&lt;/A&gt;, but you have columns that are separated by a delimiter (blank). For this, you need &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;list INPUT&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;To use list input with informats, you need to use the colon modifier on the informats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data readin;
input id date :ddmmyy8. flag $;
format date ddmmyy8.;
cards;
1  30/12/16  Y
1  30-08-17  N
1  31-08-18  N
2  30-06-16  Y
2  31-12-18  N
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Basic-Concept/m-p/689934#M209798</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-08T11:35:10Z</dc:date>
    </item>
  </channel>
</rss>

