<?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: change project.XML from SAS EG within SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/457038#M115849</link>
    <description>&lt;P&gt;Another thing...although I was able to succesfully manipulate the project.xml file the results DO NOT show in the code that was in my EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the EGP was a non-embedded program (one that was saved to a network location). I made a change to a libname path, but although it was changed in the project.xml file the results did not show in the programs within the EGP project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything I forgot ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 20:04:37 GMT</pubDate>
    <dc:creator>Billybob73</dc:creator>
    <dc:date>2018-04-24T20:04:37Z</dc:date>
    <item>
      <title>change project.XML from SAS EG within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456789#M115748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you will know when unzipping an EGP file you get a project.xml file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change this project.xml file in Windows explorer and then zip it again to an EGP file the EGP file opens perfectly in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However...........when I read project.xml file in SAS, do the same change in SAS, then write a dataset with the change as project.xml file to the network, rezip again to &amp;nbsp;EGP, SAS Enterprise Guide &amp;nbsp;won't open the file! (message : There was an error reading the project file , the format is invalid or not correct).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I use to read :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data programds1;&lt;BR /&gt;infile "g:\mylocation\project.xml" ;&lt;BR /&gt;length progtext $32000;&lt;BR /&gt;input;&lt;BR /&gt;progtext = _infile_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I use to write :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;file "g:\mylocation\project.xml";&lt;BR /&gt;&amp;nbsp;set work.programds1;&lt;BR /&gt;&amp;nbsp;put (progtext) (+(-1));&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS EG 6.1 64bits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456789#M115748</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-24T07:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: change project.XML from SAS EG within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456797#M115753</link>
      <description>&lt;P&gt;Use an advanced editor (notepad++, hex mode) to check the difference(s) between the manually edited XML file and the one edited with SAS.&lt;/P&gt;
&lt;P&gt;Once we know the change induced by SAS, we can search for ways around it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 08:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456797#M115753</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-24T08:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: change project.XML from SAS EG within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456808#M115762</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data programds1;
	infile "g:\mylocation\project.xml" encoding="utf-16";
	length progtext $32000;
	input;
	progtext = _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	file "g:\mylocation\project.xml" encoding="utf-16";
	set work.programds1;
	put (progtext) (+(-1));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Shen&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 08:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456808#M115762</guid>
      <dc:creator>ShenQicheng</dc:creator>
      <dc:date>2018-04-24T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: change project.XML from SAS EG within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456821#M115769</link>
      <description>&lt;P&gt;Shen / Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is it ! By default it encodes to ANSI. with this option to utf 16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does this not work when I tried this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; filename zip pipe "zip&amp;nbsp; %superq(zipmap)\&amp;amp;zipfile %superq(zipmap)\*";&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile zip encoding="utf-16";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 11:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/456821#M115769</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-24T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: change project.XML from SAS EG within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/457038#M115849</link>
      <description>&lt;P&gt;Another thing...although I was able to succesfully manipulate the project.xml file the results DO NOT show in the code that was in my EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the EGP was a non-embedded program (one that was saved to a network location). I made a change to a libname path, but although it was changed in the project.xml file the results did not show in the programs within the EGP project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything I forgot ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 20:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/457038#M115849</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-24T20:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: change project.XML from SAS EG within SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/457126#M115869</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172904"&gt;@Billybob73&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Shen / Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is it ! By default it encodes to ANSI. with this option to utf 16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why does this not work when I tried this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; filename zip pipe "zip&amp;nbsp; %superq(zipmap)\&amp;amp;zipfile %superq(zipmap)\*";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; data _null_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile zip encoding="utf-16";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is the purpose of this code? The usage of the unnamed pipe is not correct, I think.&lt;/P&gt;
&lt;P&gt;If you want to read files in a zip file within SAS code, you can try&amp;nbsp;&lt;A title="FILENAME Statement, ZIP Access Method" href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;locale=us" target="_blank"&gt;FILENAME ZIP access method&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several blogs writen by&amp;nbsp;&lt;A title="Posts by Chris Hemedinger" href="https://blogs.sas.com/content/author/chrishemedinger/" rel="author" target="_blank"&gt;Chris Hemedinger&lt;/A&gt;&amp;nbsp;show how to use FILENAME ZIP access method.&lt;/P&gt;
&lt;P&gt;Here are some URLs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2014/01/29/using-filename-zip/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2014/01/29/using-filename-zip/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shen&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 00:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-project-XML-from-SAS-EG-within-SAS/m-p/457126#M115869</guid>
      <dc:creator>ShenQicheng</dc:creator>
      <dc:date>2018-04-25T00:02:54Z</dc:date>
    </item>
  </channel>
</rss>

