<?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 Base SAS - Suppress this note: A PROC is currently executing. All subsequently submitted statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Base-SAS-Suppress-this-note-A-PROC-is-currently-executing-All/m-p/482544#M125019</link>
    <description>&lt;P&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue with the code below. No matter what I do I am always served with the Note from my title. SAS will not proceed until I click ok and clear the note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;A PROC is currently executing. All subsequently submitted statements will not begin executing until its completion.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to this question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/How-to-suppress-this-pop-up-note/td-p/303459" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/How-to-suppress-this-pop-up-note/td-p/303459&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have options xsync; because I plan on using this in a loop where I create a file, password protect it, destroy the XML&amp;nbsp;dynamically. I don't want SAS to hit the delete XML x command before it's completed the conversion. (This may be my problem).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/****************************/
/*DUMMY SAS DATA FOR EXAMPLE*/
/****************************/

data FINAL_DATA;
		set sashelp.cars;
		Keep Make Model Type;
		IF Make = 'BMW';
run;

proc sort data=FINAL_DATA;
	by Type;
run;

/*************/
/*CREATE FILE*/
/*************/

%macro CreateFile;
		ods tagsets.excelxp file="C:\my_folder\XML_FILE.xml" style=listing;

		proc print data=FINAL_DATA noobs;
			by Type;
		run;

		ods tagsets.excelxp close;

%mend CreateFile; 


/**************************************/
/*CONVERT TO XLSX AND PASSWORD PROTECT*/
/**************************************/

%macro ProtectFile;
		%let FinalFile = C:\my_folder\OUTPUT.xlsx; 
		%let password=test;      
		%let XMLfile = C:\my_folder\XML_FILE.xml;                              
		%let VBscript  = C:\another_folder\convert.vbs; 
		                                                                                                                                        
		data _null_;                                                                                                                            
		   file "&amp;amp;vbscript" lrecl=200;                                                                                                            
		   put 'Dim xlApp, xlWkb, SourceFile, TargetFile';                                                                                         
		   put 'Set xlApp = CreateObject("excel.application")';                                                                                    
		   put 'SourceFile="' "&amp;amp;XMLfile" '"';                                                                                                      
		   put 'Set xlWkb = xlApp.Workbooks.Open(SourceFile)';                                                                                     
		   put 'TargetFile="' "&amp;amp;FinalFile" '"';                                                                                                    
		                                                                                                                                        
		   put 'xlApp.DisplayAlerts=false';                                                                                                        
		   put "xlWkb.SaveAs TargetFile, 51,""&amp;amp;password""";                                                                                          
		   put 'xlApp.DisplayAlerts=true';                                                                                                         
		   put 'xlWkb.close';                                                                                                                      
		run;                                                                                                                                    
		                                                                                                                                        
		options noxwait xsync;                                                                                                                
		                                                                                                                                        
		x "cscript ""&amp;amp;vbscript""";   

		x "del C:\my_folder\XML_FILE.xml";
%mend ProtectFile;

%CreateFile;

%ProtectFile;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 17:04:04 GMT</pubDate>
    <dc:creator>dashj</dc:creator>
    <dc:date>2018-07-30T17:04:04Z</dc:date>
    <item>
      <title>Base SAS - Suppress this note: A PROC is currently executing. All subsequently submitted statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-SAS-Suppress-this-note-A-PROC-is-currently-executing-All/m-p/482544#M125019</link>
      <description>&lt;P&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue with the code below. No matter what I do I am always served with the Note from my title. SAS will not proceed until I click ok and clear the note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;A PROC is currently executing. All subsequently submitted statements will not begin executing until its completion.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to this question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/How-to-suppress-this-pop-up-note/td-p/303459" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/How-to-suppress-this-pop-up-note/td-p/303459&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have options xsync; because I plan on using this in a loop where I create a file, password protect it, destroy the XML&amp;nbsp;dynamically. I don't want SAS to hit the delete XML x command before it's completed the conversion. (This may be my problem).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/****************************/
/*DUMMY SAS DATA FOR EXAMPLE*/
/****************************/

data FINAL_DATA;
		set sashelp.cars;
		Keep Make Model Type;
		IF Make = 'BMW';
run;

proc sort data=FINAL_DATA;
	by Type;
run;

/*************/
/*CREATE FILE*/
/*************/

%macro CreateFile;
		ods tagsets.excelxp file="C:\my_folder\XML_FILE.xml" style=listing;

		proc print data=FINAL_DATA noobs;
			by Type;
		run;

		ods tagsets.excelxp close;

%mend CreateFile; 


/**************************************/
/*CONVERT TO XLSX AND PASSWORD PROTECT*/
/**************************************/

%macro ProtectFile;
		%let FinalFile = C:\my_folder\OUTPUT.xlsx; 
		%let password=test;      
		%let XMLfile = C:\my_folder\XML_FILE.xml;                              
		%let VBscript  = C:\another_folder\convert.vbs; 
		                                                                                                                                        
		data _null_;                                                                                                                            
		   file "&amp;amp;vbscript" lrecl=200;                                                                                                            
		   put 'Dim xlApp, xlWkb, SourceFile, TargetFile';                                                                                         
		   put 'Set xlApp = CreateObject("excel.application")';                                                                                    
		   put 'SourceFile="' "&amp;amp;XMLfile" '"';                                                                                                      
		   put 'Set xlWkb = xlApp.Workbooks.Open(SourceFile)';                                                                                     
		   put 'TargetFile="' "&amp;amp;FinalFile" '"';                                                                                                    
		                                                                                                                                        
		   put 'xlApp.DisplayAlerts=false';                                                                                                        
		   put "xlWkb.SaveAs TargetFile, 51,""&amp;amp;password""";                                                                                          
		   put 'xlApp.DisplayAlerts=true';                                                                                                         
		   put 'xlWkb.close';                                                                                                                      
		run;                                                                                                                                    
		                                                                                                                                        
		options noxwait xsync;                                                                                                                
		                                                                                                                                        
		x "cscript ""&amp;amp;vbscript""";   

		x "del C:\my_folder\XML_FILE.xml";
%mend ProtectFile;

%CreateFile;

%ProtectFile;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 17:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-SAS-Suppress-this-note-A-PROC-is-currently-executing-All/m-p/482544#M125019</guid>
      <dc:creator>dashj</dc:creator>
      <dc:date>2018-07-30T17:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS - Suppress this note: A PROC is currently executing. All subsequently submitted stateme</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-SAS-Suppress-this-note-A-PROC-is-currently-executing-All/m-p/482578#M125025</link>
      <description>&lt;P&gt;1) Turn on options mprint before executing the code.&lt;/P&gt;
&lt;P&gt;2) Paste the log with the generated code and messages into a codebox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it is there could be multiple places you message is originating and we can't tell where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you place all of the commands in a single command line they should execute sequentially&amp;nbsp;without SAS intervention. Write all of the statements to CMD or BAT or appropriate and then have the X command execute that command file.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 19:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-SAS-Suppress-this-note-A-PROC-is-currently-executing-All/m-p/482578#M125025</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-30T19:15:20Z</dc:date>
    </item>
  </channel>
</rss>

