<?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 SAS Certified Specialist Prep Guide Base Programming Data Setup in EG? in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946460#M1803</link>
    <description>&lt;P&gt;Hey!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm working with what I believe to be the most recent version of the Prep Guide for the Base exam and using SAS Enterprise Guide. I downloaded the zip file to create the data from the link provided in the book and followed the directions to set up the data. When I try to create the datasets using the cre8data file, although it appears to be actually creating all of the sas datasets, excel files, etc, I'm still getting an error when I run the program. I would ignore it, but I don't know if it'll be an issue later.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Heres the code:&lt;/P&gt;
&lt;PRE&gt;%let path=O:\Test\SAS Exam\base-guide-practice-data\cert;
/********************************************************************
 Do not modify the code below this line 
********************************************************************/
%macro setdelim;
   %global delim;
   %if %index(&amp;amp;path,%str(/)) %then %let delim=%str(/);
   %else %let delim=%str(\);
%mend;
%setdelim

%macro makedata;
%include "&amp;amp;path&amp;amp;delim.cre8permdata.sas";
%include "&amp;amp;path&amp;amp;delim.cre8workdata.sas";
%include "&amp;amp;path&amp;amp;delim.cre8flatfiles.sas";
%put;
%put NOTE- *******************************************************;
%put NOTE- Your SAS Certification Prep Guide data files are ready.;
%put NOTE- *******************************************************;
%mend;
%makedata;

&lt;/PRE&gt;
&lt;P&gt;Here are the errors I'm seeing:&lt;/P&gt;
&lt;P&gt;ERROR: Macro function %INDEX has too many arguments.&lt;BR /&gt;ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.&lt;BR /&gt;ERROR: The macro SETDELIM will stop executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to avoid editing the code and am assuming it's an issue on my end... any ideas?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2024 00:24:00 GMT</pubDate>
    <dc:creator>AVUH777</dc:creator>
    <dc:date>2024-10-07T00:24:00Z</dc:date>
    <item>
      <title>SAS Certified Specialist Prep Guide Base Programming Data Setup in EG?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946460#M1803</link>
      <description>&lt;P&gt;Hey!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm working with what I believe to be the most recent version of the Prep Guide for the Base exam and using SAS Enterprise Guide. I downloaded the zip file to create the data from the link provided in the book and followed the directions to set up the data. When I try to create the datasets using the cre8data file, although it appears to be actually creating all of the sas datasets, excel files, etc, I'm still getting an error when I run the program. I would ignore it, but I don't know if it'll be an issue later.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Heres the code:&lt;/P&gt;
&lt;PRE&gt;%let path=O:\Test\SAS Exam\base-guide-practice-data\cert;
/********************************************************************
 Do not modify the code below this line 
********************************************************************/
%macro setdelim;
   %global delim;
   %if %index(&amp;amp;path,%str(/)) %then %let delim=%str(/);
   %else %let delim=%str(\);
%mend;
%setdelim

%macro makedata;
%include "&amp;amp;path&amp;amp;delim.cre8permdata.sas";
%include "&amp;amp;path&amp;amp;delim.cre8workdata.sas";
%include "&amp;amp;path&amp;amp;delim.cre8flatfiles.sas";
%put;
%put NOTE- *******************************************************;
%put NOTE- Your SAS Certification Prep Guide data files are ready.;
%put NOTE- *******************************************************;
%mend;
%makedata;

&lt;/PRE&gt;
&lt;P&gt;Here are the errors I'm seeing:&lt;/P&gt;
&lt;P&gt;ERROR: Macro function %INDEX has too many arguments.&lt;BR /&gt;ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.&lt;BR /&gt;ERROR: The macro SETDELIM will stop executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to avoid editing the code and am assuming it's an issue on my end... any ideas?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 00:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946460#M1803</guid>
      <dc:creator>AVUH777</dc:creator>
      <dc:date>2024-10-07T00:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certified Specialist Prep Guide Base Programming Data Setup in EG?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946543#M1804</link>
      <description>&lt;P&gt;First thing, when asking about Errors or anything that appears in the log such as warning or other diagnostic message include the Code submitted along with the error message. Sometimes what people actually submit is not what they show in their editor.&lt;/P&gt;
&lt;P&gt;In this case your code should include everything from the %let Path =.&lt;/P&gt;
&lt;P&gt;Second, copy the text from the log and then on the forum open a text box using the &amp;lt;/&amp;gt; icon that appears above the message window. Paste all the copied text. The log sometimes includes diagnostic characters but the main main message window on this forum &lt;STRONG&gt;will&lt;/STRONG&gt; reformat pasted text so that the diagnostics may not appear in the correct position making them less useful. Also the text box separates the code/log under discussion from the actual discussion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran your code code for example my log looks like:&lt;/P&gt;
&lt;PRE&gt;540  %let path=O:\Test\SAS Exam\base-guide-practice-data\cert;
541  /********************************************************************
542   Do not modify the code below this line
543  ********************************************************************/
544  %macro setdelim;
545     %global delim;
546     %if %index(&amp;amp;path,%str(/)) %then %let delim=%str(/);
547     %else %let delim=%str(\);
548  %mend;
NOTE: The macro SETDELIM completed compilation without errors.
      18 instructions 316 bytes.
549
550  %setdelim

&lt;/PRE&gt;
&lt;P&gt;So can't duplicate your error.&lt;/P&gt;
&lt;P&gt;The type of thing that is most likely to cause a "too many parameters" is the presence of a comma somewhere.&lt;/P&gt;
&lt;P&gt;For instance if there is a comma in the Path variable I can replicate the error:&lt;/P&gt;
&lt;PRE&gt;551  %let path=O:\Test\SAS Exam\base-guide,practice-data\cert;
552  /********************************************************************
553   Do not modify the code below this line
554  ********************************************************************/
555  %macro setdelim;
556     %global delim;
557     %if %index(&amp;amp;path,%str(/)) %then %let delim=%str(/);
558     %else %let delim=%str(\);
559  %mend;
NOTE: The macro SETDELIM completed compilation without errors.
      18 instructions 316 bytes.
560
561  %setdelim
ERROR: Macro function %INDEX has too many arguments.
ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.
ERROR: The macro SETDELIM will stop executing.

&lt;/PRE&gt;
&lt;P&gt;See the comma between "guide" and "practice"?&lt;/P&gt;
&lt;P&gt;Which is why I suggested including the Log with the %let path= part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you copy text from something you may want to try retyping it as some sources will have either non-printable characters that cause problems or will have "fancy" versions of the same character such as "curly" or "smart" quote symbols that are treated differently in programs than the basic ' or " from the keyboard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, while not always a problem causer the more special characters you include in file paths, such as that dash, the more likely you are to get some odd errors. Working with macros % and &amp;amp; especially will cause problems. A dash in some place may well be interpreted as an instruction to subtract.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I would be tempted to recreate the folder with underscore characters as underscores are less likely to cause problems in general.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 14:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946543#M1804</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-07T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certified Specialist Prep Guide Base Programming Data Setup in EG?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946549#M1805</link>
      <description>&lt;P&gt;Ah, thanks for that! I did end up discovering the issue. The path I used contained a comma. I usually use this path when I'm using SAS so I didn't think it'd be a problem, but I guess with the way the macro reads it, it became one lol. Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 15:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Data-Setup/m-p/946549#M1805</guid>
      <dc:creator>AVUH777</dc:creator>
      <dc:date>2024-10-07T15:33:21Z</dc:date>
    </item>
  </channel>
</rss>

