<?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 Link to a stored process and call parameters dynamically from proc report in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/353905#M5356</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code which invokes a Stored Process and call parameters dynamically from Proc Report. However, when I use parameters the Stored Process is not found. Without Parameters the Stored Process is found, but&amp;nbsp;it makes no sence without parameters. That leaves me to this question:&lt;/P&gt;&lt;P&gt;How do I pass parameters during&amp;nbsp;an invoking of a Stored Process&amp;nbsp;form inside a Proc Report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Morten Fredrik Amundsen&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	%STPBEGIN;
		ODS escapechar='^';
		Title1 "^{style [font_size=14pt] ^{style [font_weight=Bold] ^{style [color=green] Overordnet Vareleveranse}}}";
		Proc report data=Sashelp.Grunnlag_Overordnet nowd
				style (header)=[background=aliceblue];
			/*style (header) = [background=aliceblue]
			style (column) = [font_size=1.5];*/
			define dato_dt /display;
			define Varemottaker /display;
			define id /display;
			compute Varemottaker;
				NewVar = Catx('_',dato_dt,varemottaker,id,"&amp;amp;Valg.");
				/*urlstring='https://www.google.no/?q='!!strip(dato_dt,varemottaker,id);*/
				/*urlstring='https://www.google.no/?q='!!strip(NewVar);*/
				urlstring='https://fdpsas001test.landkreditt.local/SASStoredProcess/do?_program=%2FLandkreditt+
				Bank+Informasjonsplattform%2FRapportering%2FAdministrasjon%2FStored+Process
				%2FUnder+arbeid%2FVareleveranse_StP_Overordnet_Print_Kunde/?q='!!strip(NewVar);
				call define ('varemottaker','URL',urlstring);
			endcomp;
 
		Run;
		%STPEND;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 12:20:38 GMT</pubDate>
    <dc:creator>AMUMOR_SAS</dc:creator>
    <dc:date>2017-04-27T12:20:38Z</dc:date>
    <item>
      <title>Link to a stored process and call parameters dynamically from proc report</title>
      <link>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/353905#M5356</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code which invokes a Stored Process and call parameters dynamically from Proc Report. However, when I use parameters the Stored Process is not found. Without Parameters the Stored Process is found, but&amp;nbsp;it makes no sence without parameters. That leaves me to this question:&lt;/P&gt;&lt;P&gt;How do I pass parameters during&amp;nbsp;an invoking of a Stored Process&amp;nbsp;form inside a Proc Report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Morten Fredrik Amundsen&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	%STPBEGIN;
		ODS escapechar='^';
		Title1 "^{style [font_size=14pt] ^{style [font_weight=Bold] ^{style [color=green] Overordnet Vareleveranse}}}";
		Proc report data=Sashelp.Grunnlag_Overordnet nowd
				style (header)=[background=aliceblue];
			/*style (header) = [background=aliceblue]
			style (column) = [font_size=1.5];*/
			define dato_dt /display;
			define Varemottaker /display;
			define id /display;
			compute Varemottaker;
				NewVar = Catx('_',dato_dt,varemottaker,id,"&amp;amp;Valg.");
				/*urlstring='https://www.google.no/?q='!!strip(dato_dt,varemottaker,id);*/
				/*urlstring='https://www.google.no/?q='!!strip(NewVar);*/
				urlstring='https://fdpsas001test.landkreditt.local/SASStoredProcess/do?_program=%2FLandkreditt+
				Bank+Informasjonsplattform%2FRapportering%2FAdministrasjon%2FStored+Process
				%2FUnder+arbeid%2FVareleveranse_StP_Overordnet_Print_Kunde/?q='!!strip(NewVar);
				call define ('varemottaker','URL',urlstring);
			endcomp;
 
		Run;
		%STPEND;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/353905#M5356</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-04-27T12:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Link to a stored process and call parameters dynamically from proc report</title>
      <link>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/355205#M5357</link>
      <description>&lt;P&gt;Hi!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will have to create a Prompt and configure it in to your code property and also have to call that macros in your sas code with &amp;amp; in where clause or any other where you required to be produce on coditional basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exp:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create prompt :&lt;/P&gt;&lt;P&gt;Prompt Name :Gender,&lt;/P&gt;&lt;P&gt;Its value will be "Male" , "Female"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I will write code for stored process and use this prompt in the code to get the resolt on coditional basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc print data=ABC;&lt;/P&gt;&lt;P&gt;where gender="&amp;amp;gender";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;!!!Instad of proc print you can use proc report in your case !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now on this store process proerty you will have to add this prompt(Gender) so as an when you will call this stored process it will prompt you for the Gender value and once you will enter it will process accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you requred more information for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 11:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/355205#M5357</guid>
      <dc:creator>Jatin_Jim</dc:creator>
      <dc:date>2017-05-02T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Link to a stored process and call parameters dynamically from proc report</title>
      <link>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/355208#M5358</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I found the solution my self during the weekend, se the code below. But I still have'nt found a solution for creating a "new window".&lt;/P&gt;&lt;P&gt;My be you can tell me where to include &lt;FONT color="#ff0000"&gt;Target='_blank'&lt;/FONT&gt;?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;		Proc report data=work.Grunnlag_Overordnet nowd
				style (header)=[background=aliceblue];
/*			style (header) = [background=aliceblue]
			style (column) = [font_size=1.5];*/
			define dato_dt /display;
			define Varemottaker /display;
/*			define id /display;*/
			define Leveranseaar /display;

			compute Varemottaker;

				/*urlstring='https://www.google.no/?q='!!strip(dato_dt,varemottaker,id);*/
				urlstring = 'http://fdpsas001test.landkreditt.local/SASStoredProcess/do?_action=form%2Cproperties%2Cexecute%2Cnobanner%2Cnewwindow&amp;amp;_program=%2FLandkreditt+Bank+Informasjonsplattform%2FRapportering%2FAdministrasjon%2FStored+Process%2FUnder+arbeid%2FVareleveranse_StP_Print_Kansv&amp;amp;Dato='!!strip(dato_dt)!!'+&amp;amp;Levaar='!!"&amp;amp;Aar_Ifj."!!'+&amp;amp;Mottaker='!!strip(varemottaker)!!'+&amp;amp;valg=HTML';
				call define ('varemottaker','URL',urlstring);
			endcomp;

		Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Morten Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 11:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Link-to-a-stored-process-and-call-parameters-dynamically-from/m-p/355208#M5358</guid>
      <dc:creator>AMUMOR_SAS</dc:creator>
      <dc:date>2017-05-02T11:53:18Z</dc:date>
    </item>
  </channel>
</rss>

