<?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 setting stored process parameters.NULL in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56745#M3049</link>
    <description>Hi:&lt;BR /&gt;
  Sometimes when your code contains &amp;lt; and &amp;gt; symbols, the forum posting gets messed up in one way or another.&lt;BR /&gt;
  If you have very lengthy code, you may just want to contact Tech Support for help. They can look at ALL your code and your various Platform settings for the Portal and help you find a solution to your problem.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 23 Oct 2008 18:04:59 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-10-23T18:04:59Z</dc:date>
    <item>
      <title>Error setting stored process parameters.NULL</title>
      <link>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56743#M3047</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
   I created one stored process which will dynamically generate the HTML  page to fullfill dynamic parameter requirement.When I executed the stored process thru SAS Information Delivery portal , it has given me desired results. &lt;BR /&gt;
&lt;BR /&gt;
   Later on when I tried to create an application using same stored process , it is giving below mentioned error message when I tried to use the application thru SAS Information Delivery portal.&lt;BR /&gt;
&lt;BR /&gt;
Error Message : &lt;BR /&gt;
&lt;BR /&gt;
Stored Process Error&lt;BR /&gt;
Error setting stored process parameters.&lt;BR /&gt;
null&lt;BR /&gt;
&lt;BR /&gt;
I was wondering why it is giving such error for application and URL display portlets case and executing successfully when I just tried to execute the stored process thru SAS portal.&lt;BR /&gt;
&lt;BR /&gt;
Any help will be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Amol Deshmukh &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The actual code for the stored process would be like this :&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/**************************************************&lt;BR /&gt;
     Name:  drill_parms_stp_onclick.sas    &lt;BR /&gt;
     Purpose: Provide an example of drilling down&lt;BR /&gt;
              within an HTML file.&lt;BR /&gt;
              The second selection values are dependant on &lt;BR /&gt;
              the first selection value.&lt;BR /&gt;
&lt;BR /&gt;
 **************************************************/&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data class2;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  if _n_ &amp;lt; 7 then race=1;&lt;BR /&gt;
  else if _n_ &amp;lt; 14 then race=2;&lt;BR /&gt;
  else race=3;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro main;&lt;BR /&gt;
&lt;BR /&gt;
  %global reqtype request age race ;&lt;BR /&gt;
&lt;BR /&gt;
%macro first;&lt;BR /&gt;
&lt;BR /&gt;
 /* This is the first request. List age groups */&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc summary data=work.class2;&lt;BR /&gt;
  class age;&lt;BR /&gt;
  output out=means1;&lt;BR /&gt;
 run;&lt;BR /&gt;
 data _null_;&lt;BR /&gt;
    &lt;BR /&gt;
  set means1 end=alldone;&lt;BR /&gt;
&lt;BR /&gt;
  file _webout;&lt;BR /&gt;
&lt;BR /&gt;
  if _n_ = 1 then do;&lt;BR /&gt;
&lt;BR /&gt;
     thissrv = symget('_url');&lt;BR /&gt;
     thispgm = symget('_program');&lt;BR /&gt;
    &lt;BR /&gt;
     put '&lt;BR /&gt;';&lt;BR /&gt;
     put '&lt;H1&gt;Selection Example&lt;/H1&gt;';&lt;BR /&gt;
     put '&lt;H3&gt;Second Selection is dependant on First&lt;/H3&gt;';&lt;BR /&gt;
&lt;BR /&gt;
     put '&lt;FORM action="'  thissrv +(-1) '" method="Post"&gt;';&lt;BR /&gt;
&lt;BR /&gt;
     put '&lt;INPUT type="hidden" value="null" name="reqtype" /&gt;';&lt;BR /&gt;
&lt;BR /&gt;
     put '&lt;INPUT type="hidden" name="_program" value="'&amp;lt;br&amp;gt;
          thispgm +(-1) '" /&gt;';&lt;BR /&gt;
&lt;BR /&gt;
     put '&lt;BR /&gt;';&lt;BR /&gt;
     put '&lt;B&gt;Select Age: &lt;/B&gt;';&lt;BR /&gt;
     put '&lt;SELECT name="age" onchange="reqtype.value=' "&gt;';&lt;BR /&gt;
&lt;BR /&gt;
     %if "&amp;amp;age" ne "" %then %do;&lt;BR /&gt;
      put '&lt;OPTION value="' "&gt;' "&amp;amp;age";  &lt;BR /&gt;
     %end;&lt;BR /&gt;
&lt;BR /&gt;
     put '&lt;/OPTION&gt;&lt;OPTION value=" "&gt; ';  &lt;BR /&gt;
     &lt;BR /&gt;
  end;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
  if age ne . then do;&lt;BR /&gt;
       put '&lt;/OPTION&gt;&lt;OPTION value="' age '"&gt;' age; &lt;BR /&gt;
  end;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  if alldone then do;&lt;BR /&gt;
    put '&lt;/OPTION&gt;&lt;/SELECT&gt;';&lt;BR /&gt;
    put '&lt;BR /&gt;&lt;BR /&gt;';&lt;BR /&gt;
  end;&lt;BR /&gt;
&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 proc summary data=work.class2;&lt;BR /&gt;
&lt;BR /&gt;
   %if "&amp;amp;age" ne "" and "&amp;amp;age" ne " " %then %do;&lt;BR /&gt;
      where age=&amp;amp;age;&lt;BR /&gt;
   %end;&lt;BR /&gt;
&lt;BR /&gt;
      class race;&lt;BR /&gt;
      output out=means2;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;BR /&gt;
 data _null_;&lt;BR /&gt;
    &lt;BR /&gt;
  set  means2 end=alldone;&lt;BR /&gt;
&lt;BR /&gt;
  file _webout;&lt;BR /&gt;
&lt;BR /&gt;
  if _n_ = 1 then do;&lt;BR /&gt;
     put '&lt;BR /&gt;';&lt;BR /&gt;
     put '&lt;B&gt;Select Race: &lt;/B&gt;';&lt;BR /&gt;
     put '&lt;SELECT name="Race"&gt;';  &lt;BR /&gt;
  end;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
  if race ne . then do;&lt;BR /&gt;
       put '&lt;OPTION value="' race '"&gt;' race; &lt;BR /&gt;
  end;&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
  if alldone then do;&lt;BR /&gt;
    put '&lt;/OPTION&gt;&lt;/SELECT&gt;';&lt;BR /&gt;
    put '&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;';&lt;BR /&gt;
    put '&lt;INPUT type="checkbox" name="_debug" value="131" /&gt;Show SAS Log';&lt;BR /&gt;
&lt;BR /&gt;
    put '&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;';&lt;BR /&gt;
    put '&lt;INPUT type="submit" value="Submit Request" /&gt;
         ' onclick="reqtype.value=' "'report'" '"&amp;gt;';&lt;BR /&gt;
&lt;BR /&gt;
    put '&lt;/FORM&gt;';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  end;&lt;BR /&gt;
 run; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%mend first;&lt;BR /&gt;
&lt;BR /&gt;
%macro report;&lt;BR /&gt;
&lt;BR /&gt;
 /* User requested a report */&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 %let where_clause=%str(1=1);&lt;BR /&gt;
&lt;BR /&gt;
 %if "&amp;amp;race" ne "" %then %do;&lt;BR /&gt;
     %let where_clause = &amp;amp;where_clause and %str(race = &amp;amp;race);&lt;BR /&gt;
 %end;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 %if "&amp;amp;age" ne "" and "&amp;amp;age" ne " " %then %do;&lt;BR /&gt;
     %let where_clause = &amp;amp;where_clause and %str(age = &amp;amp;age);&lt;BR /&gt;
 %end;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
 ods html body=_webout;&lt;BR /&gt;
&lt;BR /&gt;
 Title "Students who are race &amp;amp;race and age &amp;amp;age ";&lt;BR /&gt;
%stpbegin;&lt;BR /&gt;
 proc print data = work.class2 noobs;&lt;BR /&gt;
&lt;BR /&gt;
   where &amp;amp;where_clause;&lt;BR /&gt;
   &lt;BR /&gt;
   var name age sex race;&lt;BR /&gt;
 run;&lt;BR /&gt;
%stpend;&lt;BR /&gt;
 ods html close;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 data temp;&lt;BR /&gt;
   set work.class2;&lt;BR /&gt;
   where &amp;amp;where_clause;&lt;BR /&gt;
&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
 data _null_;&lt;BR /&gt;
  &lt;BR /&gt;
  if obscount=0 then do;&lt;BR /&gt;
     file _webout;&lt;BR /&gt;
     put "&lt;H3&gt;No entries were found for this selection&lt;/H3&gt;";&lt;BR /&gt;
     put "&lt;H3&gt;race =&amp;amp;race and age = &amp;amp;age  &lt;/H3&gt;";&lt;BR /&gt;
     &lt;BR /&gt;
  end;&lt;BR /&gt;
 &lt;BR /&gt;
  set temp nobs=obscount;&lt;BR /&gt;
&lt;BR /&gt;
 run;&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
%mend report;&lt;BR /&gt;
&lt;BR /&gt;
%if "&amp;amp;reqtype" = "report" %then %do;&lt;BR /&gt;
       /* Produce a report   */&lt;BR /&gt;
    %report;&lt;BR /&gt;
%end;&lt;BR /&gt;
%else %do;&lt;BR /&gt;
        /* Produce summary */&lt;BR /&gt;
    %first;&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%mend main;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%main;</description>
      <pubDate>Thu, 23 Oct 2008 17:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56743#M3047</guid>
      <dc:creator>dav_amol</dc:creator>
      <dc:date>2008-10-23T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting stored process parameters.NULL</title>
      <link>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56744#M3048</link>
      <description>some how the code is getting truncated , if we want to see the detail sample code just let me know

Message was edited by: dav_amol</description>
      <pubDate>Thu, 23 Oct 2008 17:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56744#M3048</guid>
      <dc:creator>dav_amol</dc:creator>
      <dc:date>2008-10-23T17:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error setting stored process parameters.NULL</title>
      <link>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56745#M3049</link>
      <description>Hi:&lt;BR /&gt;
  Sometimes when your code contains &amp;lt; and &amp;gt; symbols, the forum posting gets messed up in one way or another.&lt;BR /&gt;
  If you have very lengthy code, you may just want to contact Tech Support for help. They can look at ALL your code and your various Platform settings for the Portal and help you find a solution to your problem.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 23 Oct 2008 18:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Error-setting-stored-process-parameters-NULL/m-p/56745#M3049</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-10-23T18:04:59Z</dc:date>
    </item>
  </channel>
</rss>

