<?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: ERROR: Invalid parameter was specified in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522163#M141719</link>
    <description>&lt;P&gt;Please use the code window - its the {i} above post area, to make your code more readable.&amp;nbsp; What is the 'nul' for in the email filename statement?&amp;nbsp; You must put a valid email there, thats the point of email?&lt;/P&gt;
&lt;PRE&gt;filename mail email 'someone@somewhere.com' subject="no data to be send";

data _null_;
  file mail;
  name="abc@gmail.com";
  put '!EM_TO!' name;
run;&lt;/PRE&gt;
&lt;P&gt;Note where the subject goes, and that an email is given - the name in your datastep is just a string value!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 11:42:54 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-12-18T11:42:54Z</dc:date>
    <item>
      <title>ERROR: Invalid parameter was specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522130#M141709</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Written a below code and getting ERROR:&lt;/SPAN&gt;&lt;SPAN&gt; "An invalid parameter was specified&lt;/SPAN&gt;.&lt;SPAN&gt; Could you please help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%let &lt;A href="mailto:to=rinusjoseph@gmail.com" target="_blank"&gt;to=rinusjoseph@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename mail email 'Nul';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;file mail;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subject=test mail;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tolist=tranwrd(trim('('||quote(&amp;amp;to) ||')').';','"");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;msg=&amp;amp;msg;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sign=&amp;amp;sign;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;put '!EM_to!' tolist;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:An invalid parameter was specified.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 08:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522130#M141709</guid>
      <dc:creator>rinsabraham</dc:creator>
      <dc:date>2018-12-18T08:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Invalid parameter was specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522131#M141710</link>
      <description>&lt;P&gt;The %let is never ended with the necessary semicolon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have unbalanced quotes in your code, look at the coloring supplied by the Enhanced Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You define three variables in the data _null_ (subject, msg and sign) which you never use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When setting subject, you have a syntax error because of missing quotes. The same will probably be true for msg and sign.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fix one issue after another, so you get the data step right before dabbling with emails.&lt;/P&gt;
&lt;P&gt;Keep in mind that subject= should be part of the filename email statement.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 08:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522131#M141710</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-18T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Invalid parameter was specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522132#M141711</link>
      <description>&lt;P&gt;ok Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done the modification to my code please refer the below code still getting same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename mail email 'Nul';&lt;BR /&gt;data _null_;&lt;BR /&gt;file mail;&lt;BR /&gt;subject="no data to be send";&lt;BR /&gt;name="&lt;A href="mailto:abc@gmail.com" target="_blank"&gt;abc@gmail.com&lt;/A&gt;";&lt;BR /&gt;&amp;nbsp; put '!EM_TO!' name;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 09:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522132#M141711</guid>
      <dc:creator>rinsabraham</dc:creator>
      <dc:date>2018-12-18T09:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Invalid parameter was specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522163#M141719</link>
      <description>&lt;P&gt;Please use the code window - its the {i} above post area, to make your code more readable.&amp;nbsp; What is the 'nul' for in the email filename statement?&amp;nbsp; You must put a valid email there, thats the point of email?&lt;/P&gt;
&lt;PRE&gt;filename mail email 'someone@somewhere.com' subject="no data to be send";

data _null_;
  file mail;
  name="abc@gmail.com";
  put '!EM_TO!' name;
run;&lt;/PRE&gt;
&lt;P&gt;Note where the subject goes, and that an email is given - the name in your datastep is just a string value!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 11:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522163#M141719</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-18T11:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Invalid parameter was specified</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522422#M141825</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 04:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Invalid-parameter-was-specified/m-p/522422#M141825</guid>
      <dc:creator>rinsabraham</dc:creator>
      <dc:date>2018-12-19T04:34:04Z</dc:date>
    </item>
  </channel>
</rss>

