<?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 ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-PUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC/m-p/835589#M330338</link>
    <description>&lt;P&gt;Below is my script&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let rpt_date="30Nov2021"d;
%let rpt_date2=%sysfunc(put(&amp;amp;rpt_date.,yymmddn8.));
%put rpt_date2 is &amp;amp;rpt_date2.;

data b;
seattle=put(&amp;amp;rpt_date.,yymmddn8.)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to achieve is to convert the function in Dataset b it into a macro variable (rpt_date2) that shows character value in YYYYMMDD. However, I am getting the following error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What could possible be wrong when converting the function that works in a datastep into a macro variable?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 12:44:45 GMT</pubDate>
    <dc:creator>StickyRoll</dc:creator>
    <dc:date>2022-09-28T12:44:45Z</dc:date>
    <item>
      <title>ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-PUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC/m-p/835589#M330338</link>
      <description>&lt;P&gt;Below is my script&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let rpt_date="30Nov2021"d;
%let rpt_date2=%sysfunc(put(&amp;amp;rpt_date.,yymmddn8.));
%put rpt_date2 is &amp;amp;rpt_date2.;

data b;
seattle=put(&amp;amp;rpt_date.,yymmddn8.)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to achieve is to convert the function in Dataset b it into a macro variable (rpt_date2) that shows character value in YYYYMMDD. However, I am getting the following error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What could possible be wrong when converting the function that works in a datastep into a macro variable?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 12:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-PUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC/m-p/835589#M330338</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2022-09-28T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The PUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-PUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC/m-p/835590#M330339</link>
      <description>&lt;P&gt;You must use the datatype specific version of the PUT function PUTC/PUTN with %SYSFUNC.&amp;nbsp; See documentation for others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;34         %let rpt_date="30Nov2021"d;
35         %let rpt_date2=%sysfunc(putn(&amp;amp;rpt_date.,yymmddn8.));
36         %put NOTE: &amp;amp;=rpt_date2;
NOTE: RPT_DATE2=20211130&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2022 12:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-PUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC/m-p/835590#M330339</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2022-09-28T12:58:47Z</dc:date>
    </item>
  </channel>
</rss>

