<?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: Json in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781684#M249114</link>
    <description>&lt;P&gt;Please use the search-function, this has been asked and answered to many times to repeat it again.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 10:12:14 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-11-22T10:12:14Z</dc:date>
    <item>
      <title>Parse Json to SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781674#M249109</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;Does anyone help me out on how to parse a json file and convert it to sas table.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 12:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781674#M249109</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-22T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781684#M249114</link>
      <description>&lt;P&gt;Please use the search-function, this has been asked and answered to many times to repeat it again.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781684#M249114</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-11-22T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781696#M249121</link>
      <description>I apologise I've seen those posts but all are based using json engine but in my sas eg it is not working got errors like JSON ENGINE CANNOT BE FOUND. So, are there any methods to parse a json file and Create a sas table. Thankyou.</description>
      <pubDate>Mon, 22 Nov 2021 12:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781696#M249121</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-22T12:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781700#M249122</link>
      <description>If you don't have JSON engine due to sas version then DATA STEP come to rescue .</description>
      <pubDate>Mon, 22 Nov 2021 12:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781700#M249122</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-22T12:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781709#M249129</link>
      <description>Could you please give me an example so that I can able to do mine. Thankyou</description>
      <pubDate>Mon, 22 Nov 2021 13:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781709#M249129</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-22T13:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781712#M249132</link>
      <description>Actually so far I tried to add a json data into sas table without the delimiters but afterwards couldn't able to fetch the required fields from it and put it into another table. Can anyone help me in that. Thankyou.</description>
      <pubDate>Mon, 22 Nov 2021 13:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781712#M249132</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-22T13:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781747#M249152</link>
      <description>&lt;P&gt;It makes a big difference what exactly you are trying to do.&lt;/P&gt;
&lt;P&gt;Please show examples of the data you have and what you need to create from it.&lt;/P&gt;
&lt;P&gt;How is the JSON text stored now?&lt;/P&gt;
&lt;P&gt;What is the structure of the JSON?&lt;/P&gt;
&lt;P&gt;What part of the information in the JSON do you need to extract?&amp;nbsp; How do you want that stored in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus if the JSON engine is not working for you then it sounds like you might be using a very old version of SAS.&amp;nbsp; Check what version of SAS you are running. For example by checking the value of the automatic macro variable SYSVLONG.&amp;nbsp; Do you have access to a more recent version of SAS? Something released by SAS in the last year or two?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 16:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781747#M249152</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-22T16:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781820#M249182</link>
      <description>Thanks for responding, I've a nested json data which has multiple records. Yes, I can show you some examples but this isn't accepting the data as it it is showing as spam when I upload a piece of data. I've a json text file and I used data step to add that long record into a single column of a sas table. From that I would like to fetch some data and put it into a final sas table. I've no clue why json engine isn't working on my sas eg though it was 8.3 version 64 bit but I just checked the custom version information by running PROC PRODUCT_STATUS;RUN;. I got 9.4 maintenance 3.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2021 00:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781820#M249182</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T00:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781829#M249184</link>
      <description>&lt;P&gt;The version of Enterprise Guide makes no difference as that is just a front end to help you create and submit SAS code to an actual copy of SAS running somewhere else.&amp;nbsp;SAS 9.4m3 is only 6 years old and 5 years out of date.&amp;nbsp; &amp;nbsp;Since SAS is a subscription license you are paying for the new version but not getting the benefits of using it.&amp;nbsp;Probably would be worth your time to figure out how to get access to a new version. Check with your support team.&amp;nbsp; Send them this link so they can see how far behind you are.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSON is just text, so no need to upload anything. Just copy a few examples and paste them into the window that pops up when you click on the Insert Code icon (looks like &amp;lt; / &amp;gt; ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is it that you plan to do with the JSON?&amp;nbsp; Does the JSON text already have the key variables you will need to link the values stored in it back to the values you already have in SAS datasets?&amp;nbsp; Or will you need to remember the key fields from your SAS dataset in addition the JSON text you stuffed into a character variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 01:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781829#M249184</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-23T01:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781833#M249185</link>
      <description>We literally don't have much time to get the access for newer version as the deadline will end today. I used the data step code to get the json text to a single column. Below is the code I used :&lt;BR /&gt;data WORK.JSONDATA_TO_TABLE(where=(KEY_P IS NOT MISSING));&lt;BR /&gt;infile sresp dsd lrecl=30000000 dlm='[{}}';&lt;BR /&gt;input json : $2000.@@;&lt;BR /&gt;do i=1 to countw(json,',');&lt;BR /&gt;KEY_P=scan(json,i,',');&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;drop json i;&lt;BR /&gt;So it created a temp table having a single column named KEY_P it has the json data as value. I need to pick some data from that temp table to create a final sas table which has the columns of picked data from json data.</description>
      <pubDate>Tue, 23 Nov 2021 01:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781833#M249185</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T01:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781836#M249186</link>
      <description>&lt;P&gt;That is going to lose a lot of the nesting, if that is important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying build a generic JSON parser with a data step is too large a task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead if the you know what JSON fields you need to find you can probably pretty easily build tool to pull that information out.&amp;nbsp; Most JSON text is stored as KEY:VALUE pairs.&amp;nbsp; So you want to find the places with the KEY that you are looking for and parse out the VALUE to but it into a SAS dataset.&amp;nbsp; If the data is nested you might be able to flatten the data by remembering the values of the keys set at higher levels.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 01:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781836#M249186</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-23T01:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781845#M249188</link>
      <description>I got you it has key value pairs like dictionary and I know what json fields I wanna find and put those values into a dataset. The data has plenty of records. Let's me consider some random data as example.&lt;BR /&gt;{ ITEMS&lt;BR /&gt;[&lt;BR /&gt;{ id - random number of length 4&lt;BR /&gt;UN - random number of length 9&lt;BR /&gt;These two are unique one's which has corresponding data&lt;BR /&gt;{&lt;BR /&gt;Ty - random number of length 1&lt;BR /&gt;PN - alphanumeric&lt;BR /&gt;Dep- character data }}]&lt;BR /&gt;{&lt;BR /&gt;Ty- random number of length 1&lt;BR /&gt;PN- alphanumeric&lt;BR /&gt;Dep- character data}&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;ITEMS&lt;BR /&gt;[&lt;BR /&gt;{&lt;BR /&gt;Id - random number of length 4&lt;BR /&gt;UN - random number of length 9&lt;BR /&gt;{&lt;BR /&gt;Ty-random number of length 1&lt;BR /&gt;PN- alphanumeric&lt;BR /&gt;Dep-character data}}]&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Here id, un are unique and different for each ITEM field so what I need is I need to pick each item field's id &amp;amp; un and their corresponding values into a sas dataset. likewise it has more ITEM fields and their corresponding values. Thankyou.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2021 02:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781845#M249188</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T02:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781847#M249189</link>
      <description>{&lt;BR /&gt;&lt;BR /&gt;"TotalRecords": 2,&lt;BR /&gt;&lt;BR /&gt;"Items": [&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;"CreatedUTC": "2021-10-29T12:37:38.400Z",&lt;BR /&gt;&lt;BR /&gt;"Dep": "OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr",&lt;BR /&gt;&lt;BR /&gt;"cu": "5690bf70-834a-4",&lt;BR /&gt;&lt;BR /&gt;"cude": "27e3c27b-5878",&lt;BR /&gt;&lt;BR /&gt;"Items": [&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;"Oty": 1,&lt;BR /&gt;&lt;BR /&gt;"PN": "Wl78a35605",&lt;BR /&gt;&lt;BR /&gt;"Oty": 1,&lt;BR /&gt;&lt;BR /&gt;"PrAttrs": {&lt;BR /&gt;&lt;BR /&gt;"Desc": "Ges CAÉ REOR DISPEN",&lt;BR /&gt;&lt;BR /&gt;"IsBatch": false,&lt;BR /&gt;&lt;BR /&gt;"IsInvCtrl": true,&lt;BR /&gt;&lt;BR /&gt;"IsSerialized": false,&lt;BR /&gt;&lt;BR /&gt;"NonTaxable": false,&lt;BR /&gt;&lt;BR /&gt;"PrdT": "1001"&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;],&lt;BR /&gt;&lt;BR /&gt;"EDUTC": "2021-10-18T17:00:00.000Z",&lt;BR /&gt;&lt;BR /&gt;"LN": "105132",&lt;BR /&gt;&lt;BR /&gt;"Lo": "1001",&lt;BR /&gt;&lt;BR /&gt;"ModifiedUTC": "2021-10-29T12:37:38.400Z",&lt;BR /&gt;&lt;BR /&gt;"Status": "1001",&lt;BR /&gt;&lt;BR /&gt;"ID": "1074",&lt;BR /&gt;&lt;BR /&gt;"UN": "10712107"&lt;BR /&gt;&lt;BR /&gt;},&lt;BR /&gt;In this I need ID,UN,DEP,EDUTC,PN,TY.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2021 02:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781847#M249189</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T02:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781861#M249196</link>
      <description>&lt;P&gt;If the data is a neat as that then it should not be that hard, although you might need to figure out how to handle repeated values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First let's convert your example text back into a file so I have something to code with.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options parmcards=json;
filename json temp;

parmcards4;
{
"TotalRecords": 2,
"Items": [
{
"CreatedUTC": "2021-10-29T12:37:38.400Z",
"Dep": "OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr",
"cu": "5690bf70-834a-4",
"cude": "27e3c27b-5878",
"Items": [
{
"Oty": 1,
"PN": "Wl78a35605",
"Oty": 1,
"PrAttrs": {
"Desc": "Ges CAÉ REOR DISPEN",
"IsBatch": false,
"IsInvCtrl": true,
"IsSerialized": false,
"NonTaxable": false,
"PrdT": "1001"
}
}
],
"EDUTC": "2021-10-18T17:00:00.000Z",
"LN": "105132",
"Lo": "1001",
"ModifiedUTC": "2021-10-29T12:37:38.400Z",
"Status": "1001",
"ID": "1074",
"UN": "10712107"
},
;;;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now let's read it in as NAME/VALUE pairs per line and look for the names of interest.&amp;nbsp; Let's keep the DEP value until we see a new one and use it as the key to transpose from tall to wide.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tall ;
  infile json dlm=' ,:{}[]' truncover ;
  input name :$32. value $200.;
  name=dequote(name);
  value=dequote(value);
  if name = 'Dep' then dep=value ;
  retain dep;
  if name in ('PN','EDUTC','ID','UN','TY') then output ;
run;

proc print data=tall;
run;
proc transpose data=tall out=wide;
  by dep notsorted;
  id name;
  var value;
run;
proc print data=wide;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results: TALL&lt;/P&gt;
&lt;PRE&gt;Obs    name     value                                              dep

 1     PN       Wl78a35605                  OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr
 2     EDUTC    2021-10-18T17:00:00.000Z    OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr
 3     ID       1074                        OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr
 4     UN       10712107                    OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr&lt;/PRE&gt;
&lt;P&gt;Wide&lt;/P&gt;
&lt;PRE&gt;Obs                           dep                           _NAME_        PN                 EDUTC               ID        UN

 1     OP - 064913505 - RAN: 61 WEER STRT - Shi To Consr    value     Wl78a35605    2021-10-18T17:00:00.000Z    1074    10712107&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 05:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781861#M249196</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-23T05:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781865#M249198</link>
      <description>I can't be thankful enough for your assistance. I believe you missed out the TY column in the output.</description>
      <pubDate>Tue, 23 Nov 2021 06:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781865#M249198</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T06:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781866#M249199</link>
      <description>And also in EDUTC just need date only not the entire value. Thanks.</description>
      <pubDate>Tue, 23 Nov 2021 06:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781866#M249199</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T06:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781869#M249200</link>
      <description>I just checked out this code unfortunately the table has no values in it like you have.</description>
      <pubDate>Tue, 23 Nov 2021 06:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781869#M249200</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-23T06:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781915#M249223</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I can't be thankful enough for your assistance. I believe you missed out the TY column in the output.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The output is based on the input.&amp;nbsp; Since there were no TY tags in the input there was no values output for.&amp;nbsp; If you require an empty variable just create that along the way.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781915#M249223</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-23T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Json</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781916#M249224</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/405593"&gt;@Pandu2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;And also in EDUTC just need date only not the entire value. Thanks.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want to do that type of modification do it after you have gotten the text out the JSON and into actual variables.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781916#M249224</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-23T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Json to SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781917#M249225</link>
      <description>&lt;PRE&gt;data temp;
infile 'c:\temp\a.json' dsd recfm=n dlm='{[]}, ';
input have : $200. @@;
if not missing(have);
run;

data want;
merge temp temp(firstobs=2 rename=(have=_have)); 
if prxmatch('/\b(EDUTC|TY|Dep|PN|ID|UN)\b/i',have);
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parse-Json-to-SAS-table/m-p/781917#M249225</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-23T12:11:36Z</dc:date>
    </item>
  </channel>
</rss>

