<?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: Parsing XML Files in Z/OS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742523#M232286</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I just checked and we have SAS 9.3.&amp;nbsp; Will this be a dealbreaker when it comes to use SAS to parse the XML files?&lt;BR /&gt;</description>
    <pubDate>Wed, 19 May 2021 22:39:06 GMT</pubDate>
    <dc:creator>ismahero2</dc:creator>
    <dc:date>2021-05-19T22:39:06Z</dc:date>
    <item>
      <title>Parsing XML Files in Z/OS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742516#M232281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used the&amp;nbsp; xmlv2 engine in SAS to parse some XML files.&amp;nbsp; However, now I am receiving more and bigger files and I want to parse them on the IBM Z/OS mainframe to take advantage of the processing power.&amp;nbsp; However, I haven't found any documentation on how to parse XML files using the xmlv2 engine in the Z/OS environment.&amp;nbsp; Normally I would create a map of the XML file and then use that map along with the xmlv2 engine to generate a SAS dataset from the XML file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code in SAS Studio or EG would look like this:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename XMLFILES (&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "file1"&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "file2"&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; );&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; filename XMLMAP&amp;nbsp; 'address/nameofmap.map';&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; libname&amp;nbsp; XMLFILES&amp;nbsp; xmlv2 xmlmap=XMLMAP;&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; libname PERMOUT&amp;nbsp; 'address/permanent';&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; Proc Datasets LIB=XMLFILES;&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; COPY OUTLIB=PERMOUT;&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; RUN; QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will like to do something similar, if possible, but in the Z\OS environment.&amp;nbsp;&amp;nbsp; Have anyone done this?&amp;nbsp; Any documentation or examples on how to do this on the IBM Mainframe?&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 21:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742516#M232281</guid>
      <dc:creator>ismahero2</dc:creator>
      <dc:date>2021-05-19T21:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML Files in Z/OS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742520#M232283</link>
      <description>&lt;P&gt;According to this &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/engxmlwhatsnew94.htm" target="_blank" rel="noopener"&gt;doc&lt;/A&gt;&amp;nbsp;the XMLV2 engine is Production on z/OS in SAS 9.4. What is your mainframe SAS version? As long as it is at least 9.4 the engine should work the same as on other operating systems.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 22:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742520#M232283</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-19T22:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML Files in Z/OS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742523#M232286</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I just checked and we have SAS 9.3.&amp;nbsp; Will this be a dealbreaker when it comes to use SAS to parse the XML files?&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2021 22:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742523#M232286</guid>
      <dc:creator>ismahero2</dc:creator>
      <dc:date>2021-05-19T22:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing XML Files in Z/OS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742524#M232287</link>
      <description>&lt;P&gt;Apparently it is pre-production in SAS 9.3, so you could try it at your own risk. It is unlikely to work as reliably in 9.3. I personally wouldn't use it for any business-critical processes.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 23:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-XML-Files-in-Z-OS/m-p/742524#M232287</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-19T23:03:30Z</dc:date>
    </item>
  </channel>
</rss>

