<?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 do I export / create a .xml file pr. customer in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363428#M274889</link>
    <description>&lt;P&gt;Without having anything to work with this is just an example:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set subjects;
  by subject;
  if first.subject then call execute('data _null_; set have; file "subject'||strip(subject)||'.xml";');
  call execute('put "&amp;lt;subject&amp;gt;'||strip(subject)||'&amp;lt;subject&amp;gt;";');
  if last.subject then call execute('run;');
run;&lt;/PRE&gt;
&lt;P&gt;Alll the above does is create a file per subject and put the text with subject in each.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 13:41:46 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-06-01T13:41:46Z</dc:date>
    <item>
      <title>How do I export / create a .xml file pr. customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363408#M274887</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a new in SAS, and got a challage to make a script where output is add at one .xml for each customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if it's possibel for SAS to create / export&amp;nbsp;.xml file for each customer?&lt;/P&gt;&lt;P&gt;If yes, please add more than one expempel to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 13:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363408#M274887</guid>
      <dc:creator>henrik_liebach</dc:creator>
      <dc:date>2017-06-01T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I export / create a .xml file pr. customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363413#M274888</link>
      <description>&lt;P&gt;Please provide example data (analytic source data, and how the list of customers is stored in SAS) to play around (use data steps as described here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;), show how the data is prepared for each customer, and give an example for the .xml file format in question.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 13:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363413#M274888</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-01T13:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I export / create a .xml file pr. customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363428#M274889</link>
      <description>&lt;P&gt;Without having anything to work with this is just an example:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set subjects;
  by subject;
  if first.subject then call execute('data _null_; set have; file "subject'||strip(subject)||'.xml";');
  call execute('put "&amp;lt;subject&amp;gt;'||strip(subject)||'&amp;lt;subject&amp;gt;";');
  if last.subject then call execute('run;');
run;&lt;/PRE&gt;
&lt;P&gt;Alll the above does is create a file per subject and put the text with subject in each.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 13:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363428#M274889</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-01T13:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I export / create a .xml file pr. customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363774#M274890</link>
      <description>&lt;P&gt;Thanks for input &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 12:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363774#M274890</guid>
      <dc:creator>henrik_liebach</dc:creator>
      <dc:date>2017-06-02T12:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I export / create a .xml file pr. customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363847#M274891</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x xmlv2 '/folders/myfolders/class.xml' ;
proc copy in=sashelp out=x noclone;
 select class;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-export-create-a-xml-file-pr-customer/m-p/363847#M274891</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-02T15:03:54Z</dc:date>
    </item>
  </channel>
</rss>

