<?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: How to display in a window the name of the file which have been created in a loop in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505966#M32310</link>
    <description>&lt;P&gt;You can use the SYSECHO statement to add a custom message to the Task Status window in EG.&amp;nbsp; Will that help?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="statuswindow.png" style="width: 414px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24182iBB5D7B6DAFC3C9B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="statuswindow.png" alt="statuswindow.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterprise-guide/" target="_self"&gt;See how-to guidance here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 15:04:06 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-10-19T15:04:06Z</dc:date>
    <item>
      <title>How to display in a window the name of the file which have been created in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505922#M32307</link>
      <description>&lt;P&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;I am using inside a loop, xml2 engine to create XML file with Name such as File_1.xml, File_2.xml and so on. As we have a lot of files to create the program may run for&amp;nbsp;few hours.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;Is there a way to have an open window telling us&amp;nbsp;which&amp;nbsp;the current index of the loop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;ex:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;STRONG&gt;&lt;I&gt;split2&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; NbSubDiv=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysevalf&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;Gnobs./&amp;amp;NbObsPerDst.,ceil);&lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Number of observation per split file*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; j=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;NbSubDiv.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;libname newfile xmlv2 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;PathName3B./&amp;amp;FileName2C._&amp;amp;j..xml"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tagset=tagsets.sasxnmis;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Data &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;newfile.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;amp;FileName2B._&amp;amp;j;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;set &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;mywork.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;FileName1B.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (firstobs=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%eval&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(((&amp;amp;j-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)*&amp;amp;NbObsPerDst)+&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) obs=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%eval&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;j*&amp;amp;NbObsPerDst));;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/*Open a screen telling the fIle &lt;FONT color="#800080" face="Courier New"&gt;&amp;amp;FileName2C._&amp;amp;j..xml has been created*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New"&gt;Is there a way to do that?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname newfile clear;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; split2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;split2&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505922#M32307</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-10-19T14:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display in a window the name of the file which have been created in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505966#M32310</link>
      <description>&lt;P&gt;You can use the SYSECHO statement to add a custom message to the Task Status window in EG.&amp;nbsp; Will that help?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="statuswindow.png" style="width: 414px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24182iBB5D7B6DAFC3C9B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="statuswindow.png" alt="statuswindow.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterprise-guide/" target="_self"&gt;See how-to guidance here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505966#M32310</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-10-19T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to display in a window the name of the file which have been created in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505983#M32312</link>
      <description>&lt;P&gt;Nice!&amp;nbsp; I never though that will could do that.&lt;/P&gt;&lt;P&gt;Will it works if our SAS program is executed on a Unix Server?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505983#M32312</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-10-19T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to display in a window the name of the file which have been created in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505985#M32313</link>
      <description>&lt;P&gt;It works as long as your program is running within SAS Enterprise Guide, even if the server is remote.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, if you have a SAS Grid Computing environment and have SAS code that is delegated to other nodes (besides the main SAS workspace), the SYSECHO notice might not make it all the way back to EG.&amp;nbsp; You'll have to test it out.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/505985#M32313</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-10-19T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to display in a window the name of the file which have been created in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/506120#M32315</link>
      <description>&lt;P&gt;it works very on window.&lt;/P&gt;&lt;P&gt;However if I transfer my program on a Unix server and I use a KSH file to start the program, there is no window open to show which step the program has done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I add some command to the KSH file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 18:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-in-a-window-the-name-of-the-file-which-have-been/m-p/506120#M32315</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-10-19T18:51:40Z</dc:date>
    </item>
  </channel>
</rss>

