<?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: Read XML URL from SAS EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456462#M115621</link>
    <description>&lt;P&gt;I'd treat the XML as text (which it is) and use a data step with infile and file to manipulate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next thing I'd do is to remove that program from the egp's and store it on the server to %include it from there. Then you need only one simple edit next time around.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 11:16:07 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-04-23T11:16:07Z</dc:date>
    <item>
      <title>Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456458#M115620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have over a 1000 EGP files and i want to change a minor thing in 1 particular program that is part of the EGP project. Every single one of them needs to be changed, so a 1000 changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took the following steps so far :&lt;/P&gt;&lt;P&gt;1. Convert EGP to ZIP&lt;/P&gt;&lt;P&gt;2. Unzip the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After action number 2. i have a project.XML file which I was hoping to import into SAS and then do the conversion and then output it again to XML, rezip it and then rename it to EGP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However reading in this XML file gives an error message :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; local &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"g:\mylocation"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;LIBNAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; xmlfile &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;xmlv2&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="1"&gt;'g:\mylocation\project.xml'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;XMLTYPE&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;=GENERIC;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; local.project;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; xmlfile.project;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: PCDATA content found outside column/table boundary. content is false.&lt;/P&gt;&lt;P&gt;ERROR: XML data is not in a format supported natively by the XML libname engine. Files of this type may require an XMLMap to be&lt;/P&gt;&lt;P&gt;input properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 questions :&lt;/P&gt;&lt;P&gt;1. Is my method right ?&lt;/P&gt;&lt;P&gt;2. Why can't i read the XML file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help !!&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 10:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456458#M115620</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-23T10:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456462#M115621</link>
      <description>&lt;P&gt;I'd treat the XML as text (which it is) and use a data step with infile and file to manipulate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next thing I'd do is to remove that program from the egp's and store it on the server to %include it from there. Then you need only one simple edit next time around.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 11:16:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456462#M115621</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-23T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456500#M115632</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;This sounds like a great idea, however when&lt;/P&gt;&lt;P&gt;- I&amp;nbsp;treat is as txt&lt;/P&gt;&lt;P&gt;- then change something in the txt&lt;/P&gt;&lt;P&gt;- then rename it back to XML&lt;/P&gt;&lt;P&gt;- then zip the XML file&lt;/P&gt;&lt;P&gt;- then rename the zip file to an egp file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the EGP project won't open......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG says : 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;Now when i unpacked the EGP file, there was also a "result.txt" file. Should I also involve this one again ?&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>Mon, 23 Apr 2018 13:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456500#M115632</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-23T13:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456512#M115638</link>
      <description>&lt;P&gt;It's not because I forgot to re-include the result.txt file in the EGP, so I notice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something is wrong about this code. After renaming the XML extension to TXT i perform the following.&lt;/P&gt;&lt;P&gt;Apperently re-exporting this as TXT file and the renaming it to XML causes the XML file to be corrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to proceed now....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; changeprog (mysourcefolder, mysourceprog, olditem1, newitem1, olditem2, newitem2, mydestfile, mydestfolder);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data programds1;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;infile &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;mysourcefolder.\&amp;amp;mysourceprog."&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; dlm = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;';'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;length progtext $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;30000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input progtext;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data programds2;&lt;/P&gt;&lt;P&gt;set programds1;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;progtext = tranwrd(progtext,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;olditem1."&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;newitem1."&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;progtext = tranwrd(progtext,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;olditem2."&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"&amp;amp;newitem2."&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; newdir = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;(dcreate(&amp;amp;datum ,&amp;amp;mydestfolder.\));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; filename= "&amp;amp;mydestfolder.\&amp;amp;datum.\&amp;amp;mydestfile..txt"; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;file &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;filename.&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set work.programds2;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;put (progtext) (+(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456512#M115638</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-23T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456521#M115642</link>
      <description>&lt;P&gt;Disclaimer: I have no clue about the "real" structure of a .egp file. I know I can unzip it and get its contents, if a problem arises. I've never built one "manually".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One guess would be that you need to alter another piece of information in the whole archive for it to work.&lt;/P&gt;
&lt;P&gt;Or you need to use one special compression method only so that EG recognizes the file correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since we keep no production programs in EG projects, but have all code in .sas files in the versioning system, similar problems don't arise here. I only unzip projects if they were corrupted during storing and we need to retrieve as much as we can for the end-user.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456521#M115642</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-23T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456533#M115647</link>
      <description>&lt;P&gt;The solution lies in how to read a txt file keeping every single line in a dataset record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance if I have this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/SubmitableElement&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CodeTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;IncludeWrapper&amp;gt;True&amp;lt;/IncludeWrapper&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Embedded&amp;gt;False&amp;lt;/Embedded&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DNA&amp;gt;&amp;amp;lt;DNA&amp;amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;amp;lt;Type&amp;amp;gt;LocalFile&amp;amp;lt;/Type&amp;amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;amp;lt;Name&amp;amp;gt;testprog13_met_EURTLD.sas&amp;amp;lt;/Name&amp;amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;amp;lt;Version&amp;amp;gt;0&amp;amp;lt;/Version&amp;amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;amp;lt;Assembly /&amp;amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;amp;lt;Factory /&amp;amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to make sure that read them into a dataset containing 10 records ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I'm not reading correctly. This line :&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is converted to&lt;/P&gt;&lt;P&gt;&amp;lt;?xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can't figure out why..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456533#M115647</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-23T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456535#M115649</link>
      <description>&lt;P&gt;The simplest way to catch the whole input line is this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile "have.xml";
length line $100;
input;
line = _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Adjust length and a lrecl= infile option if needed.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456535#M115649</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-23T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456544#M115651</link>
      <description>&lt;P&gt;Use SAS XML mapper to create a mapper file for your XML. It is clear from the log your XML file is not in standard XML format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename xml_lib "/path/filename.xml";
filename MAP "/mapfile_path/YOUR_MAPER.map";

libname xml_lib xmlv2 xmlmap=MAP;   /*Creates the XML library*/

option replace;

proc copy in=xml_lib out=work memtype=data;   /*Copies all XML tables to work*/
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now use SQL join or Data step Merge to create your final table from the downloaded tables in PROC COPY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or You can Create a Single mapper using replace functionality to create your data set without any additional join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same mapper can be then used to create your output XML file after manipulation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documents:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2008/099-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/099-2008.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=engxml&amp;amp;docsetTarget=p0194ofvsm9jw0n16bo5atjn33f3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=engxml&amp;amp;docsetTarget=p0194ofvsm9jw0n16bo5atjn33f3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if it helped.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456544#M115651</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-04-23T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456591#M115662</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;Thanks for this ! This code is reading into the sas dataset with the blanks included, which is good !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if I changed some code in the resulting SAS dataset and then re-export it as a txt file.&lt;/P&gt;&lt;P&gt;How would i get the blanks again in the TXT file ? I presume this is what is blocking the opening of the XML file.&lt;/P&gt;&lt;P&gt;I'm getting everything left aligned.........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No luck with this :&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;file &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;filename.&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;set work.programds2;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;put (progtext) (+(-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;run;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456591#M115662</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-04-23T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456793#M115750</link>
      <description>&lt;P&gt;I'd tackle this problem in two steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, make a manual change to the XML and see if the manual change (done with the Windows Editor) is accepted by EG after re-zipping.&lt;/P&gt;
&lt;P&gt;Only when you know how to do it manually and that it works, you can start to automate things. The manual method also lets you test what needs to be preserved (like trailing blanks or similar).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, look for a tool that accomplishes the automated change. On UNIX I'd try to unzip, run awk on the XML in question, and then re-zip. UNIX tools are always good for scripting and automating. SAS might not be the right tool in the end.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-XML-URL-from-SAS-EG/m-p/456793#M115750</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-24T07:38:07Z</dc:date>
    </item>
  </channel>
</rss>

