<?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 when running macro to generate TIME_DIM data in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648378#M8279</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, in SAS Credit Scoring, there is TIME_DIM table under DIM library. From my understanding, there is a macro script that will load new month and year into this table when we execute. I want to load new years into this table and i managed to find the macro for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%bnkfdin;
%bankfdn_create_time_dim(yr_start=2004, yr_end=2016, mapto=);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;When I run this in SAS Enterprise Guide, I get this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Apparent symbolic reference FM_GRAIN not resolved.
ERROR: A character operand was not found in the %EVAL function or %IF condition where xxxxxxxxx
The condition was :
&amp;amp;FM_GRAIN ne 1 and &amp;amp;MapTo ne %sysfunc(dequote(&amp;amp;WEEK_START_FLG)) and &amp;amp;MapTo ne %sysfunc(dequote(&amp;amp;WEEK_END_FLG)) &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I have been trying to understand and browse through administrator guide for Credit Scoring, I still dont find any clue at all. In admin guide, I found this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Set the correct value of the FM_GRAIN parameter in the
Custpara.Parameter table. Only numeric values are supported for this
parameter. Here are the values:
n 1 is Month (default value)
24 Chapter 2 / Installing SAS Credit Scoring
n 3 is Day&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have no idea what is custpara.parameter. Why is this SAS CS Admin Guide has such instruction that is so vague?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anyone that can help me with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 17 May 2020 10:06:45 GMT</pubDate>
    <dc:creator>WorkingMan</dc:creator>
    <dc:date>2020-05-17T10:06:45Z</dc:date>
    <item>
      <title>Error when running macro to generate TIME_DIM data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648378#M8279</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, in SAS Credit Scoring, there is TIME_DIM table under DIM library. From my understanding, there is a macro script that will load new month and year into this table when we execute. I want to load new years into this table and i managed to find the macro for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%bnkfdin;
%bankfdn_create_time_dim(yr_start=2004, yr_end=2016, mapto=);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;When I run this in SAS Enterprise Guide, I get this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Apparent symbolic reference FM_GRAIN not resolved.
ERROR: A character operand was not found in the %EVAL function or %IF condition where xxxxxxxxx
The condition was :
&amp;amp;FM_GRAIN ne 1 and &amp;amp;MapTo ne %sysfunc(dequote(&amp;amp;WEEK_START_FLG)) and &amp;amp;MapTo ne %sysfunc(dequote(&amp;amp;WEEK_END_FLG)) &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I have been trying to understand and browse through administrator guide for Credit Scoring, I still dont find any clue at all. In admin guide, I found this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Set the correct value of the FM_GRAIN parameter in the
Custpara.Parameter table. Only numeric values are supported for this
parameter. Here are the values:
n 1 is Month (default value)
24 Chapter 2 / Installing SAS Credit Scoring
n 3 is Day&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have no idea what is custpara.parameter. Why is this SAS CS Admin Guide has such instruction that is so vague?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anyone that can help me with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 10:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648378#M8279</guid>
      <dc:creator>WorkingMan</dc:creator>
      <dc:date>2020-05-17T10:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running macro to generate TIME_DIM data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648380#M8280</link>
      <description>&lt;P&gt;You can't just show us the error message. That isn't sufficient. We need to see the ENTIRE log for this macro, code, NOTES, WARNINGS, ERRORs. Please copy the log as text (not as a screen capture) and then click on the &amp;lt;/&amp;gt; here and paste the entire log into the window that appears.&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 10:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648380#M8280</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-17T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running macro to generate TIME_DIM data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648390#M8281</link>
      <description>Hi, I would wish to copy out the full log but the server that host this SAS environment disabled any form of copy/paste. I typed those error messages out myself. If possible, I can provide screenshot.</description>
      <pubDate>Sun, 17 May 2020 12:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Error-when-running-macro-to-generate-TIME-DIM-data/m-p/648390#M8281</guid>
      <dc:creator>WorkingMan</dc:creator>
      <dc:date>2020-05-17T12:14:48Z</dc:date>
    </item>
  </channel>
</rss>

