<?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 How do I use a Variable Label in JSON key (PROC JSON - EXPORT statemen) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Variable-Label-in-JSON-key-PROC-JSON-EXPORT/m-p/587834#M167915</link>
    <description>&lt;P&gt;SAS 9.4 - PROC JSON - Export Statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to replace the variable name with a label when JSON file is produced. In our case we need some keys in the Json starting with&lt;/P&gt;&lt;P&gt;the "@" sign.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renaming the variable is not an option due to need a special character&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WRITE OPEN OBJECT;&lt;BR /&gt;EXPORT model_detail;&lt;BR /&gt;WRITE CLOSE;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 13:04:43 GMT</pubDate>
    <dc:creator>ikeplus</dc:creator>
    <dc:date>2019-09-11T13:04:43Z</dc:date>
    <item>
      <title>How do I use a Variable Label in JSON key (PROC JSON - EXPORT statemen)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Variable-Label-in-JSON-key-PROC-JSON-EXPORT/m-p/587834#M167915</link>
      <description>&lt;P&gt;SAS 9.4 - PROC JSON - Export Statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to replace the variable name with a label when JSON file is produced. In our case we need some keys in the Json starting with&lt;/P&gt;&lt;P&gt;the "@" sign.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renaming the variable is not an option due to need a special character&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WRITE OPEN OBJECT;&lt;BR /&gt;EXPORT model_detail;&lt;BR /&gt;WRITE CLOSE;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 13:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Variable-Label-in-JSON-key-PROC-JSON-EXPORT/m-p/587834#M167915</guid>
      <dc:creator>ikeplus</dc:creator>
      <dc:date>2019-09-11T13:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a Variable Label in JSON key (PROC JSON - EXPORT statemen)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Variable-Label-in-JSON-key-PROC-JSON-EXPORT/m-p/587845#M167918</link>
      <description>&lt;P&gt;I got the solution renaming the variable and use a special character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;			EXPORT model_detail (rename=(Make = '@make'n));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Sep 2019 13:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Variable-Label-in-JSON-key-PROC-JSON-EXPORT/m-p/587845#M167918</guid>
      <dc:creator>ikeplus</dc:creator>
      <dc:date>2019-09-11T13:23:12Z</dc:date>
    </item>
  </channel>
</rss>

