<?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 file parsing using Transparency in Coverage Payer files - in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907818#M358339</link>
    <description>The one that you provided above.&lt;BR /&gt;&lt;BR /&gt;filename js "c:/temp/2023-12-01_UnitedHealthcare-of-Ohio--Inc-_Insurer_PPO---NDC_PPO-NDC_in-network-rates.json";&lt;BR /&gt;libname js json;&lt;BR /&gt;libname perm "c:/temp/mydata";&lt;BR /&gt;proc copy in=js out=perm;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;7 proc copy in=js out=perm;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml1.htm&lt;BR /&gt;8 run;</description>
    <pubDate>Wed, 13 Dec 2023 16:28:02 GMT</pubDate>
    <dc:creator>Essen560500</dc:creator>
    <dc:date>2023-12-13T16:28:02Z</dc:date>
    <item>
      <title>JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906593#M357965</link>
      <description>&lt;P&gt;I am currently working with Transparency in Coverage Payer datasets and facing issues while parsing the file into variables within the provided JSON format. The output I am getting is a single large file with only one column. I am seeking guidance on how to properly align the output with the correct columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File is noted below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://uhc-tic-mrf.azureedge.net/public-mrf/2023-12-01/2023-12-01_UnitedHealthcare-of-Ohio--Inc-_Insurer_PPO---NDC_PPO-NDC_in-network-rates.json.gz" target="_blank"&gt;https://uhc-tic-mrf.azureedge.net/public-mrf/2023-12-01/2023-12-01_UnitedHealthcare-of-Ohio--Inc-_Insurer_PPO---NDC_PPO-NDC_in-network-rates.json.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code using is noted below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname data "/mnt/sasusers/&amp;amp;user./data/TiC";&lt;/P&gt;&lt;P&gt;%let jsonfile=/mnt/sasusers/&amp;amp;user./data/TiC/UHC_OHIO_PPO.json;&lt;/P&gt;&lt;P&gt;/* Read the JSON file using the JSONLIB engine */&lt;/P&gt;&lt;P&gt;filename myfile "&amp;amp;jsonfile";&lt;/P&gt;&lt;P&gt;data mydata;&lt;BR /&gt;infile myfile lrecl=32767;&lt;BR /&gt;input;&lt;BR /&gt;json = _infile_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Parse the JSON data using the JSONLIB engine */&lt;BR /&gt;data parsed_data;&lt;BR /&gt;length key $2000 value $2000;&lt;BR /&gt;retain key value;&lt;BR /&gt;infile myfile jsonlib;&lt;BR /&gt;input key $ value $;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Create a new dataset with structured output */&lt;BR /&gt;data formatted_data;&lt;BR /&gt;set parsed_data;&lt;BR /&gt;length element $2000;&lt;BR /&gt;if substr(key,1,1) ne ' ' then element = key;&lt;BR /&gt;else if substr(key,1,1) = ' ' and not missing(value) then output;&lt;BR /&gt;drop key value;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 19:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906593#M357965</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-06T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906603#M357969</link>
      <description>&lt;P&gt;You should use the JSON LIBNAME engine to access the data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Making the fileref the same as the intended JSON libref simplifies the code */
filename jslib "/mnt/sasusers/&amp;amp;user./data/TiC/UHC_OHIO_PPO.json";
libname jslib json;

/* Now you can access the data in the JSON file as SAS data sets */
proc contents data=jslib._all_;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 20:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906603#M357969</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-06T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906804#M358059</link>
      <description>I tried running this code and it ran for over 2 hours till I had to terminate. Any other recommendation would appreciate it ?</description>
      <pubDate>Thu, 07 Dec 2023 18:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906804#M358059</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-07T18:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906807#M358061</link>
      <description>&lt;P&gt;Use some external JSON parsing tool to convert that JSON text into something that you can use.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq" target="_blank"&gt;https://www.digitalocean.com/community/tutorials/how-to-transform-json-data-with-jq&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have documentation on what information is supposed to be in that file?&amp;nbsp;&amp;nbsp;It appears to have a lot of very long lists.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What information do you want out of it?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 19:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906807#M358061</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-07T19:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906812#M358062</link>
      <description>&lt;P&gt;These are files that are new to the healthcare industry and I am looking to see if any info contained within it can get us any competitive info pertaining to drugs/NDC and pricing&amp;nbsp; especially. Any variables that have $$ associated to it and any indicators would be needed.&amp;nbsp; I will also look at the tools you are referring to in your reply. Thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 19:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906812#M358062</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-07T19:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906817#M358064</link>
      <description>&lt;P&gt;Are you trying to read files produced in the format described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/CMSgov/price-transparency-guide" target="_blank" rel="noopener"&gt;https://github.com/CMSgov/price-transparency-guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/CMSgov/price-transparency-guide/tree/master/schemas/in-network-rates" target="_blank"&gt;https://github.com/CMSgov/price-transparency-guide/tree/master/schemas/in-network-rates&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 19:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906817#M358064</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-07T19:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906833#M358067</link>
      <description>yes -&lt;BR /&gt;&lt;A href="https://github.com/CMSgov/price-transparency-guide/tree/master/schemas/in-network-rates#in-network-object" target="_blank"&gt;https://github.com/CMSgov/price-transparency-guide/tree/master/schemas/in-network-rates#in-network-object&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2023 19:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906833#M358067</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-07T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906884#M358068</link>
      <description>&lt;P&gt;What an ugly format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway the issue with your example file is that it is over 1 Gigabyte of text.&amp;nbsp; And since JSON engine stores everything into memory reading the whole file is taking too long.&amp;nbsp; I was able to easily read the example file from that site.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your particular file they did try to format the JSON file consistently.&amp;nbsp; So you might be able to break it into pieces and read it.&amp;nbsp; &amp;nbsp;I can this little program to find where the actual data records start and end.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;24  data _null_;
125    infile json lrecl=50000 length=ll truncover;
126    input @;
127    line+1;
128    len=ll;
129    input @1 ch1 :$1. @ll ch2 $1. ;
130    if (ch1 ne '09'x) or (ch2 ne ',') then put line= ch1= ch2= len= ;
131  run;

NOTE: The infile JSON is:

      Filename=C:\downloads\2023-12-01_UnitedHealthcare-Freedom-Insurance-Company_Insurer_PPO---NDC_PPO-NDC_in-netw
      ork-rates.json,
      RECFM=V,LRECL=50000,
      File Size (bytes)=1216563805,
      Last Modified=17Nov2023:08:32:41,
      Create Time=06Dec2023:11:49:58

line=1 ch1=  ch2=  len=0
line=2 ch1={ ch2={ len=1
line=3 ch1=" ch2=, len=74
line=4 ch1=" ch2=, len=39
line=5 ch1=" ch2=, len=36
line=6 ch1=" ch2=, len=23
line=7 ch1=" ch2=, len=44181
line=8 ch1=" ch2=[ len=15
line=57364 ch1=	 ch2=} len=22002
line=57365 ch1=  ch2=  len=0
line=57366 ch1=] ch2=] len=5
line=57367 ch1=} ch2=} len=1
line=57368 ch1=  ch2=  len=8
NOTE: 57368 records were read from the infile JSON.
      The minimum record length was 0.
      The maximum record length was 44181.
NOTE: DATA statement used (Total process time):
      real time           1.41 seconds
      cpu time            1.21 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So the first 8 lines are the basic data for that entity. Then all of the detailed records start on line 9 and end on line 57,364.&lt;/P&gt;
&lt;P&gt;So if you make a copy of the file that includes lines 1 to 8 and lines 57364 to the end then the JSON engine should be able to read it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can read about 100 lines in 2 seconds.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let st=%sysfunc(datetime());
filename subset temp;
data _null_;
  infile json lrecl=50000;
  file subset lrecl=50000;
  input;
  if _n_ in (1:8,9:108,57364:57368) then put _infile_;
run;
libname subset json  ;
proc copy inlib=subset out=work;
run;
%put Elapsed time = %sysfunc(putn(%sysfunc(datetime())-&amp;amp;st,time12.4));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;But to read about 1000 records takes over 42 seconds.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So reading 10 times more records takes 20 times as much time.&amp;nbsp; That is why trying to read the whole file at once takes so long (or even does not finish).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you might need to break it into a LOT of smaller files to be able to read it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 22:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906884#M358068</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-07T22:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906960#M358081</link>
      <description>&lt;P&gt;I unzipped your file to c:/temp on my laptop. I then ran this code in PC SAS 9.4M8:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename js "c:/temp/2023-12-01_UnitedHealthcare-of-Ohio--Inc-_Insurer_PPO---NDC_PPO-NDC_in-network-rates.json";
libname js json;
libname perm "c:/temp/mydata";
proc copy in=js out=perm;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It copied all of the data out to SAS data sets in under 4 minutes:&lt;/P&gt;
&lt;PRE&gt;7    proc copy in=js out=perm;
NOTE: Writing HTML Body file: sashtml1.htm
8    run;

NOTE: Copying JS.ALLDATA to PERM.ALLDATA (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 58669647 observations read from the data set JS.ALLDATA.
NOTE: The data set PERM.ALLDATA has 58669647 observations and 8 variables.
NOTE: Copying JS.IN_NETWORK to PERM.IN_NETWORK (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 57356 observations read from the data set JS.IN_NETWORK.
NOTE: The data set PERM.IN_NETWORK has 57356 observations and 8 variables.
NOTE: Copying JS.NEGOTIATED_PRICES_BILLING_CODE to PERM.NEGOTIATED_PRICES_BILLING_CODE (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 4855430 observations read from the data set JS.NEGOTIATED_PRICES_BILLING_CODE.
NOTE: The data set PERM.NEGOTIATED_PRICES_BILLING_CODE has 4855430 observations and 2 variables.
NOTE: Copying JS.NEGOTIATED_PRICES_SERVICE_CODE to PERM.NEGOTIATED_PRICES_SERVICE_CODE (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 4855430 observations read from the data set JS.NEGOTIATED_PRICES_SERVICE_CODE.
NOTE: The data set PERM.NEGOTIATED_PRICES_SERVICE_CODE has 4855430 observations and 3 variables.
NOTE: Copying JS.NEGOTIATED_RATES_NEGOTIATED_PR to PERM.NEGOTIATED_RATES_NEGOTIATED_PR (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 4855430 observations read from the data set JS.NEGOTIATED_RATES_NEGOTIATED_PR.
NOTE: The data set PERM.NEGOTIATED_RATES_NEGOTIATED_PR has 4855430 observations and 7 variables.
NOTE: Copying JS.NEGOTIATED_RATES_PROVIDER_REFE to PERM.NEGOTIATED_RATES_PROVIDER_REFE (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 4855272 observations read from the data set JS.NEGOTIATED_RATES_PROVIDER_REFE.
NOTE: The data set PERM.NEGOTIATED_RATES_PROVIDER_REFE has 4855272 observations and 3 variables.
NOTE: Copying JS.PROVIDER_GROUPS_NPI to PERM.PROVIDER_GROUPS_NPI (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 363 observations read from the data set JS.PROVIDER_GROUPS_NPI.
NOTE: The data set PERM.PROVIDER_GROUPS_NPI has 363 observations and 483 variables.
NOTE: Copying JS.PROVIDER_GROUPS_TIN to PERM.PROVIDER_GROUPS_TIN (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 363 observations read from the data set JS.PROVIDER_GROUPS_TIN.
NOTE: The data set PERM.PROVIDER_GROUPS_TIN has 363 observations and 4 variables.
NOTE: Copying JS.PROVIDER_REFERENCES to PERM.PROVIDER_REFERENCES (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 150 observations read from the data set JS.PROVIDER_REFERENCES.
NOTE: The data set PERM.PROVIDER_REFERENCES has 150 observations and 3 variables.
NOTE: Copying JS.ROOT to PERM.ROOT (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set JS.ROOT.
NOTE: The data set PERM.ROOT has 1 observations and 5 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           3:43.21
      cpu time            2:00.01
&lt;/PRE&gt;
&lt;P&gt;My laptop is beefy, but not cutting edge: 4 cores/8 threads with 32GB of RAM. What are the system specs where you are running your code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 13:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/906960#M358081</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-08T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907756#M358325</link>
      <description>Device name ULCLS-JS4C6D3&lt;BR /&gt;Full device name ULCLS-JS4C6D3.abbvienet.com&lt;BR /&gt;Processor 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz 1.50 GHz&lt;BR /&gt;Installed RAM 16.0 GB (15.7 GB usable)&lt;BR /&gt;Device ID 544C6368-185F-46AA-826F-AF20259885E5&lt;BR /&gt;Product ID 00331-10000-00001-AA331&lt;BR /&gt;System type 64-bit operating system, x64-based processor&lt;BR /&gt;Pen and touch Touch support with 10 touch points&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2023 14:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907756#M358325</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-13T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907757#M358326</link>
      <description>I didn't get to this earlier in the week. I kicked off the code 30 mins ago. Still running &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Wed, 13 Dec 2023 14:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907757#M358326</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-13T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907775#M358331</link>
      <description>&lt;P&gt;Which version of the code are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 15:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907775#M358331</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-13T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907818#M358339</link>
      <description>The one that you provided above.&lt;BR /&gt;&lt;BR /&gt;filename js "c:/temp/2023-12-01_UnitedHealthcare-of-Ohio--Inc-_Insurer_PPO---NDC_PPO-NDC_in-network-rates.json";&lt;BR /&gt;libname js json;&lt;BR /&gt;libname perm "c:/temp/mydata";&lt;BR /&gt;proc copy in=js out=perm;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;7 proc copy in=js out=perm;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml1.htm&lt;BR /&gt;8 run;</description>
      <pubDate>Wed, 13 Dec 2023 16:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907818#M358339</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-13T16:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907819#M358340</link>
      <description>Also I am doing it on SAS Studio. Not sure if that is adding to the misery</description>
      <pubDate>Wed, 13 Dec 2023 16:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907819#M358340</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-13T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907822#M358341</link>
      <description>&lt;P&gt;Where is your JSON file stored in relation to your SAS Compute server? Are you accessing it using a file system FILENAME or via FILENAME&amp;nbsp; URL?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 16:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907822#M358341</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-13T16:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907850#M358343</link>
      <description>&lt;P&gt;On the SAS server - so accessing it using&amp;nbsp;&lt;BR /&gt;filename myfile "/mnt/sasusers/&amp;amp;user./data/TiC/UHC_OHIO_PPO.json";&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 17:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907850#M358343</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-13T17:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907860#M358344</link>
      <description>&lt;P&gt;FYI - this is my full code on SAS Studio (On Demand) and it ran out of memory but ran until then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would use the proc contents method and copy one data set over at a time. I don't think you actually need the alldata dataset, but the remainder will be joined to create that data set. It will at least allow you to debug the data.&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;PRE&gt;&lt;CODE class=" language-sas"&gt;filename target "/home/fkhurshed/Demo2/demo.json" encoding = 'utf-8' ;
filename fromzip ZIP "/home/fkhurshed/Demo2/2023-12-01_UnitedHealthcare-of-Ohio--Inc-_Insurer_PPO---NDC_PPO-NDC_in-network-rates.json.gz" GZIP;
 

data _null_;
    infile fromzip lrecl=256 recfm=F length=length eof=eof unbuf;
    file target lrecl=256 recfm=N;
    input;
    put _infile_  $varying256. length;
    return;
  eof:
    stop;
run;


libname target json;

/* Now you can access the data in the JSON file as SAS data sets */
proc copy in=target out=work;
run;

libname target;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907860#M358344</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-12-13T18:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907875#M358345</link>
      <description>&lt;P&gt;Excellent suggestion about not needing the ALLDATA table, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;!&amp;nbsp; It's huge in this file. All it takes is a minor modification to the PROC COPY step to exclude it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Now you can access the data in the JSON file as SAS data sets */
proc copy in=target out=work;
   EXCLUDE ALLDATA; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907875#M358345</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-13T18:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907878#M358346</link>
      <description>&lt;P&gt;When I ran the code in Enterprise Guide on my laptop, it did take significantly longer than running it in PC SAS. But for me, only a couple of minutes - not half an hour!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907878#M358346</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-13T18:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSON file parsing using Transparency in Coverage Payer files -</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907879#M358347</link>
      <description>Just to make sure I am tacking with you. Did it parse the data into various columns as well when you ran your code ? When I ran the following code noted below. I get the results in less than a min but the file is not parsed. I get 1 column by by 57368 rows. filename myfile "/mnt/sasusers/&amp;amp;user./data/TiC/UHC_OHIO_PPO.json";&lt;BR /&gt;&lt;BR /&gt;data mydata;&lt;BR /&gt;infile myfile lrecl=32767;&lt;BR /&gt;input;&lt;BR /&gt;json = _infile_;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-file-parsing-using-Transparency-in-Coverage-Payer-files/m-p/907879#M358347</guid>
      <dc:creator>Essen560500</dc:creator>
      <dc:date>2023-12-13T18:35:15Z</dc:date>
    </item>
  </channel>
</rss>

