<?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: Correct Usage of inputn in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542276#M149827</link>
    <description>&lt;P&gt;The informat YYYYMMN does not exist, YYMMN does.&lt;/P&gt;
&lt;P&gt;Maxim 1: Read the Documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p13mkc7m059u4kn1knl9nzpliaat.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p13mkc7m059u4kn1knl9nzpliaat.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 05:40:00 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-03-12T05:40:00Z</dc:date>
    <item>
      <title>Correct Usage of inputn</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542274#M149826</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to use inputn functions of a macro where I cannot get the right date to be called.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code Ive got so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dsname;
%local  s e ;
%let s=%sysfunc(inputn(201607,yyyymmn6.),date9.);
%let e=%sysfunc(inputn(201707,yyyymmn6.),date9.);
%put &amp;amp;s.;
%put &amp;amp;e.;&lt;BR /&gt;%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The result I get is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;27         GOPTIONS ACCESSIBLE;
28         %macro dsname;
29         
30         %local  s e ;
31         
32         %let s=%sysfunc(inputn(201607,yyyymmn6.),date9.);
33         
34         %let e=%sysfunc(inputn(201707,yyyymmn6.),date9.);
35         
36         %put &amp;amp;s.;
37         %put &amp;amp;e.;
38         
39         %mend;
40         
41         %dsname;
25DEC2511
03APR2512&lt;/PRE&gt;&lt;P&gt;Where the results Im expecting is 01JUL16 and 01JUL17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone provide assistance as to what Im doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 05:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542274#M149826</guid>
      <dc:creator>ChaNAB</dc:creator>
      <dc:date>2019-03-12T05:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Usage of inputn</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542276#M149827</link>
      <description>&lt;P&gt;The informat YYYYMMN does not exist, YYMMN does.&lt;/P&gt;
&lt;P&gt;Maxim 1: Read the Documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p13mkc7m059u4kn1knl9nzpliaat.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=p13mkc7m059u4kn1knl9nzpliaat.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 05:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542276#M149827</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-12T05:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Usage of inputn</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542446#M149885</link>
      <description>&lt;P&gt;Please note that 25DEC2511 is the date9 formatted value for 210607 as a simple integer.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 15:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-Usage-of-inputn/m-p/542446#M149885</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-12T15:30:21Z</dc:date>
    </item>
  </channel>
</rss>

