<?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 to read huge json file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424310#M104479</link>
    <description>&lt;P&gt;??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No idea what your asking there.&amp;nbsp; Anyways, what I was saying that in the url:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A href="http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty%27" target="_blank" rel="nofollow noopener noreferrer"&gt;http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty'&lt;/A&gt;&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; &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; &amp;nbsp; &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;You have a search criteria, so why can that not be expanded to search for all the filters you need, then extract only that data?&lt;/P&gt;
&lt;P&gt;Unfortunately I cannot access that site, but assuming it is doing a search just epxand that.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 13:05:09 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-01-02T13:05:09Z</dc:date>
    <item>
      <title>How to read huge json file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424291#M104472</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;I&amp;nbsp;have the code below which works:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; resp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;temp&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;http&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;url&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&lt;A href="http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty" target="_blank"&gt;http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty&lt;/A&gt;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;method&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"GET"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=resp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; space JSON fileref=resp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;In real life json file is huge, &lt;SPAN class="short_text"&gt;&lt;SPAN&gt;how can&amp;nbsp;I read only a part of the json file? I have try to use options IN=, but&amp;nbsp;I can't find right syntax.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&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, 02 Jan 2018 10:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424291#M104472</guid>
      <dc:creator>PäiviR</dc:creator>
      <dc:date>2018-01-02T10:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read huge json file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424293#M104473</link>
      <description>&lt;P&gt;Not sure what you mean by "read only a part of the file".&amp;nbsp; The http call will retrieve the whole file to your temp workspace.&amp;nbsp; As this is a text file, you could process that text file, i.e. search through for a start and end point, then save out that part of the text to a new text file, or straight to a dataset.&amp;nbsp; Not sure that would save you any time above reading the text file and doing a where to keep the data you want.&amp;nbsp; Maybe there is a method on the sending end which can filter the data - you have search&amp;nbsp; criteria in the URL= _search=?pretty, maybe just add more information to the search to get more specific data?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 10:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424293#M104473</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-02T10:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to read huge json file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424306#M104477</link>
      <description>&lt;DIV class="line number8 index7 alt1"&gt;&lt;FONT face="georgia,palatino"&gt;&lt;CODE class="java plain"&gt;Here is&amp;nbsp;&lt;STRONG&gt;query which have made for elasctic:&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number8 index7 alt1"&gt;&lt;CODE class="java plain"&gt;curl --user tunnus:salasana -XGET &lt;/CODE&gt;&lt;CODE class="java string"&gt;'&lt;A href="http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty'" target="_blank"&gt;http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty'&lt;/A&gt;&lt;/CODE&gt; &lt;CODE class="java plain"&gt;-d&lt;/CODE&gt;&lt;CODE class="java string"&gt;'{"size":0, "query" : {"bool": { "must" : {"terms": { "functionname": [ "BANK_PRODUCT_PRICING_CREATE", "BANK_PRODUCT_PRICING_DISCOUNT_CREATE", "BANK_PRODUCT_PRICING_SHOW", "PRODUCT_PRICING_CREATE_OR_UPDATE", "PRODUCT_PRICING_DELETE", "PRODUCT_PRICING_DISCOUNT_DELETE"] } },"must" : {"term": {"uichannel": "STP"} } }},"aggs": {"pankki": {"terms": {"field": "bankid"}, "aggs": {"konttori": {"terms": {"field": "branchid"}}} }}}'&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="line number8 index7 alt1"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line number8 index7 alt1"&gt;&lt;CODE class="java string"&gt;I should do similar query for SAS, pick up only "rows" which &lt;FONT face="Courier New"&gt;functionname is&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="line number8 index7 alt1"&gt;&lt;CODE class="java string"&gt;&lt;FONT face="Courier New"&gt;"BANK_PRODUCT_PRICING_CREATE", "BANK_PRODUCT_PRICING_DISCOUNT_CREATE", "BANK_PRODUCT_PRICING_SHOW", "PRODUCT_PRICING_CREATE_OR_UPDATE", "PRODUCT_PRICING_DELETE", "PRODUCT_PRICING_DISCOUNT_DELETE"&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="line number8 index7 alt1"&gt;&lt;CODE class="java string"&gt;&lt;FONT face="Courier New"&gt;and uichannel is STP. &lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jan 2018 12:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424306#M104477</guid>
      <dc:creator>PäiviR</dc:creator>
      <dc:date>2018-01-02T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to read huge json file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424310#M104479</link>
      <description>&lt;P&gt;??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No idea what your asking there.&amp;nbsp; Anyways, what I was saying that in the url:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A href="http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty%27" target="_blank" rel="nofollow noopener noreferrer"&gt;http://172.17.166.22:9200/logstash-2017.02.*/ui/_search?pretty'&lt;/A&gt;&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; &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; &amp;nbsp; &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;You have a search criteria, so why can that not be expanded to search for all the filters you need, then extract only that data?&lt;/P&gt;
&lt;P&gt;Unfortunately I cannot access that site, but assuming it is doing a search just epxand that.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424310#M104479</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-02T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to read huge json file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424315#M104483</link>
      <description>&lt;P&gt;You can't use the JSON libname engine to read just part of a JSON file.&amp;nbsp; JSON format uses nested constructs, so the entire file must be processed to ensure the integrity of the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, once the data is accessible in the SAS library, you can use PROC SQL or DATA step to subset the fields/tables to keep just what you need for your reports/analysis.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-huge-json-file/m-p/424315#M104483</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-01-02T13:59:07Z</dc:date>
    </item>
  </channel>
</rss>

