<?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: result job execution in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765995#M242688</link>
    <description>&lt;LI-CODE lang="sas"&gt;filename f_htm filesrvc parenturi="&amp;amp;SYS_JES_JOB_URI" name='_webout.htm';&lt;/LI-CODE&gt;
&lt;P&gt;I've never used device FILESRVC , but don't see that &lt;FONT face="courier new,courier"&gt;name=&lt;/FONT&gt; is a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a.htm" target="_self"&gt;valid&lt;/A&gt; option?&lt;/P&gt;
&lt;P&gt;Does this happen when sqlobs=0?&lt;/P&gt;</description>
    <pubDate>Sat, 04 Sep 2021 02:32:20 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-09-04T02:32:20Z</dc:date>
    <item>
      <title>result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765577#M242507</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="tw-data-text tw-text-large XcVN5d tw-ta"&gt;&lt;SPAN class="Y2IQFc"&gt;Hi,&lt;BR /&gt;the execution of the job gives me the written web_out in the report.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="tw-data-text tw-text-large XcVN5d tw-ta"&gt;&lt;SPAN class="Y2IQFc"&gt;As attached&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="tw-data-text tw-text-large XcVN5d tw-ta"&gt;&lt;SPAN class="Y2IQFc"&gt;How can I get rid of it?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Sep 2021 08:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765577#M242507</guid>
      <dc:creator>tavoneantonella</dc:creator>
      <dc:date>2021-09-02T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765780#M242583</link>
      <description>&lt;P&gt;Please do not provide MS office files, most people here will not/cannot download them due to risk or policy.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 00:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765780#M242583</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-03T00:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765810#M242600</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63266i9163736EEDEACAC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagine.jpg" alt="Immagine.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 08:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765810#M242600</guid>
      <dc:creator>tavoneantonella</dc:creator>
      <dc:date>2021-09-03T08:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765819#M242606</link>
      <description>&lt;P&gt;So what's wrong? The two text strings on the left?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How is that page generated, as in: What's the code?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 10:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765819#M242606</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-03T10:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765822#M242608</link>
      <description>&lt;P&gt;yes,&lt;SPAN&gt;The two text strings on the left.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code in attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ciclo;

%let tot_tavole=0;


Proc sql noprint;
		select  distinct cod_tavola_2, Max(NUM_SOTTO_TAVOLA)as max, cod_impresa ,label,descrizione_tavola,
                         cats('T_',cod_tavola_2,"_",NUM_SOTTO_TAVOLA,"_",cod_impresa,"_2_F" )as table
        
			into 
				 :cod_tav_1 - :cod_tav_999,
				 :NUM_SOTTO_TAVOLA_1  - :NUM_SOTTO_TAVOLA_999,
				 :cod_impresa_1  - :cod_impresa_999  ,
				 :label_1 -:label_999,
				 :descrizione_1 -: descrizione_999,
                 :table_1 -:table_999,
                 :denominazione_1 -:denominazione_999
        
		from Tavole_statistiche_new
		/* condizione perche la stessa impresa può avere più cod_tavola*/
		where cod_tavola_2= "&amp;amp;cod_tavola"
		group by cod_tavola_2, cod_impresa,label,descrizione_tavola,table
		;

quit;


%let tot_tavole=&amp;amp;sqlobs.;

/*%put il numero degli sheet : &amp;amp;tot_tavole;*/

/*se la tavola è presente nella tabella ne fa la trasposta altrimenti va alla fine del codice e scrive
la pagina html che non è presente*/

%if &amp;amp;tot_tavole&amp;gt; 0 %then %do ;

	%do i=1 %to &amp;amp;tot_tavole;
		%do j=1 %to &amp;amp;&amp;amp;NUM_SOTTO_TAVOLA_&amp;amp;i;
	
	
		%crea_tavola(cod_tavola=&amp;amp;&amp;amp;cod_tav_&amp;amp;i,NUM_SOTTO_TAVOLA=&amp;amp;j,cod_impresa=&amp;amp;&amp;amp;cod_impresa_&amp;amp;i);
		%end;
	
	%end;

   filename F_XLXP  FILESRVC  parenturi="&amp;amp;SYS_JES_JOB_URI" 
         name= "Tavola Statistica.xml" 
         contenttype='application/x-xml'
         contentdisp='attachment; filename= "Tavola Statistica.xml"';
    
	
	
	%do i=1 %to &amp;amp;tot_tavole;
		
		%do j=1 %to &amp;amp;&amp;amp;NUM_SOTTO_TAVOLA_&amp;amp;i;

			
		
		%rinominare_colonne(cod_tavola=&amp;amp;&amp;amp;cod_tav_&amp;amp;i,NUM_SOTTO_TAVOLA=&amp;amp;j,cod_impresa=&amp;amp;&amp;amp;cod_impresa_&amp;amp;i);
		
		

		
			/*%put numero sotto tavole nel ciclo :&amp;amp;&amp;amp;NUM_SOTTO_TAVOLA_&amp;amp;i;*/
			
			/*
			%export(cod_tavola=&amp;amp;&amp;amp;cod_tav_&amp;amp;i,cod_impresa=&amp;amp;&amp;amp;cod_impresa_&amp;amp;i,);
		  */
	       
	       
		%end;	
		
	    %export(cod_tavola=&amp;amp;cod_tavola,cod_impresa=&amp;amp;cod_impresa,descrizione=&amp;amp;descrizione);	
		
	%end;
	

/*Creazione link per scaricare excel

%let EXCEL_LINK=%bquote(&amp;lt;a href=""&amp;amp;_FILESRVC_F_XLXP_URI/content"" target='_SELF'&amp;gt;Excel&amp;lt;/a&amp;gt;);
%put &amp;amp;=EXCEL_LINK;
*/

/*creazione pagina web da cui scaricare la tavola 

filename f_htm FILESRVC parenturi="&amp;amp;SYS_JES_JOB_URI"
  name='_webout.htm';
  ods html5 file=f_htm  style=&amp;amp;_ODSSTYLE  
  text="&amp;lt;span&amp;gt;^{style systemtitle Download Tavola^{nbspace 3}&amp;amp;EXCEL_LINK &amp;lt;/span&amp;gt; ";
 */ 

%let EXCEL_LINK=%bquote(&amp;lt;center&amp;gt;&amp;lt;a href=""&amp;amp;_FILESRVC_F_XLXP_URI/content"" 
    style="background:linear-gradient(to bottom, #314c69 5%, #62768a 100%);
	background-color:#314c69;
	border-radius:14px;
	border:2px solid #23374d;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Helvetica;
	font-size:15px;
	font-weight:bold;
	padding:27px 76px;
	text-decoration:none;
	text-shadow:0px 1px 0px #23374d;
	"&amp;gt;Download Tavola &amp;amp;cod_tavola &amp;lt;/a&amp;gt;&amp;lt;/center&amp;gt;);

      
/*  Create the HTML output for display in the Web browser;*/

filename f_htm filesrvc parenturi="&amp;amp;SYS_JES_JOB_URI"
  name='_webout.htm';

 
 ods html5 file=f_htm style=&amp;amp;_ODSSTYLE text="
 
 &amp;lt;style type='text/css'&amp;gt;
    
 body {
  background: url('https://sasviyaweb-ivass.utenze.bankit.it//files/files/c47640ab-dc53-466d-913b-843defc45cbe/content')top no-repeat;
  background-size:auto;
  background-attachment: fixed;
  }
 
 .banner {
    color: #ffffff;
    font-size:15px;
    font-weight: bold;
    border:5px solid #23374d;
    
    padding: 70px;
    background-color: #23374d !important;
    background: url(https://sasviyaweb-ivass.utenze.bankit.it//files/files/0b511c5a-9e0c-4919-93c7-96810261dfcb/content)top no-repeat;
    background-size: 250px;
    height: 0px;
    font-family: lato,arial,helvetica,sans-serif;
}
&amp;lt;/style&amp;gt;

 &amp;lt;body&amp;gt;
 &amp;lt;div   align='center' class='banner'  &amp;gt;Estrattore Tavole Statistiche&amp;lt;/div&amp;gt;";
 
 ods html5  text=" &amp;lt;span&amp;gt;^{ style systemtitle  &amp;amp;EXCEL_LINK}&amp;lt;/span&amp;gt;";
 
 
 
  
 
%end;

  %else %do;
  

      
      ods html5 text="&amp;lt;style&amp;gt;
      
      body {background: url('https://sasviyaweb-ivass.utenze.bankit.it//files/files/c47640ab-dc53-466d-913b-843defc45cbe/content')top no-repeat;
                             background-size:auto;
                              background-attachment: fixed;
                              /* height: 180px;*/

                            } 
                            
                            .banner {
                             color: #ffffff;
    				   		 font-size:15px;
    						 font-weight: bold;
    						  border:5px solid #23374d;
    
						    padding: 70px;
						    background-color: #23374d !important;
						    background: url(https://sasviyaweb-ivass.utenze.bankit.it//files/files/0b511c5a-9e0c-4919-93c7-96810261dfcb/content)top no-repeat;
						    background-size: 250px;
						    height: 0px;
						    font-family: lato,arial,helvetica,sans-serif;
							} 
							
							.highlightme { background-color:#f8f8f8; 
							               color:#23374d;
							               font-size:15px;
							               font-weight:bold;}
					&amp;lt;/style&amp;gt;
					  &amp;lt;body&amp;gt;
						
		   				&amp;lt;br&amp;gt;
		   			    &amp;lt;br&amp;gt;
		   			         &amp;lt;div   align='center' class='banner'  &amp;gt;Estrattore Tavole Statistiche&amp;lt;/div&amp;gt;;
		   			         &amp;lt;br&amp;gt;
		   			         &amp;lt;br&amp;gt;
		   			          &amp;lt;span class='highlightme'&amp;gt;Per visualizzare la tavola &amp;amp;cod_tavola ritornare sul Report e cliccare sulla scritta Scarica Tavola presente nel report in alto a destra &amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;";
              
      	  
    
    
   %end;

ods html5 close;
	
%mend;
%ciclo;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Sep 2021 10:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765822#M242608</guid>
      <dc:creator>tavoneantonella</dc:creator>
      <dc:date>2021-09-03T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765995#M242688</link>
      <description>&lt;LI-CODE lang="sas"&gt;filename f_htm filesrvc parenturi="&amp;amp;SYS_JES_JOB_URI" name='_webout.htm';&lt;/LI-CODE&gt;
&lt;P&gt;I've never used device FILESRVC , but don't see that &lt;FONT face="courier new,courier"&gt;name=&lt;/FONT&gt; is a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a.htm" target="_self"&gt;valid&lt;/A&gt; option?&lt;/P&gt;
&lt;P&gt;Does this happen when sqlobs=0?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 02:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/765995#M242688</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-04T02:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766019#M242700</link>
      <description>when sqlobs=0 two text strings on the left there isn't&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Sep 2021 08:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766019#M242700</guid>
      <dc:creator>tavoneantonella</dc:creator>
      <dc:date>2021-09-04T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766092#M242743</link>
      <description>&lt;P&gt;The NAME=option is not in the documentation. Try removing that.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 06:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766092#M242743</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-05T06:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766187#M242794</link>
      <description>&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;if I delete &lt;SPAN&gt;NAME=option&amp;nbsp;&lt;/SPAN&gt; it doesn't work&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 09:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766187#M242794</guid>
      <dc:creator>tavoneantonella</dc:creator>
      <dc:date>2021-09-06T09:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: result job execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766276#M242842</link>
      <description>&lt;P&gt;I've run out of suggestions.&amp;nbsp;I never got a chance to use this filename device, so I just pointed out what seemed odd to me. You should contact SAS tech support if you don't find an answer here.&amp;nbsp;Buona fortuna Antonella! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 23:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/result-job-execution/m-p/766276#M242842</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-06T23:16:28Z</dc:date>
    </item>
  </channel>
</rss>

