<?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 save json data as an in-memory/sashdat table in job? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862623#M10848</link>
    <description>&lt;P&gt;I'm not sure if there's an in-memory table at the first place. Because I've tried to check at library(mycas) and didn't see anything.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 07:50:29 GMT</pubDate>
    <dc:creator>Mayt</dc:creator>
    <dc:date>2023-03-07T07:50:29Z</dc:date>
    <item>
      <title>How to save json data as an in-memory/sashdat table in job?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862088#M10840</link>
      <description>&lt;P&gt;Hi everybody&lt;/P&gt;&lt;P&gt;I try to save json data as a table(in-memory/sashdat) in Job. I've tried proc copy, no errors but can't figure it out where the file is.(I have look in folders/libraries/caslibs but not found) I Please let me know if you know the solution.&lt;/P&gt;&lt;P&gt;This is my code in job:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;cas mySession sessopts=(caslib=casuser timeout=1800);
libname mycas cas;
* Declare input parameter;
%global myjson;

* Copy the JSON data from input parameter to a file;

filename indata temp;

data _null_;
file indata;
length str $32767;
str = resolve(symget('myjson'));
put str;
run;

* Use the JSON engine to provide read-only sequential access to JSON data;
libname indata json map='user32.map' automap=create ordinalcount=all;
proc copy in=indata out=mycas; run;
proc datasets lib=mycas;
run; quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 10:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862088#M10840</guid>
      <dc:creator>Mayt</dc:creator>
      <dc:date>2023-03-03T10:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to save json data as an in-memory/sashdat table in job?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862173#M10841</link>
      <description>&lt;P&gt;I was looking at one the free Viya books on-line yesterday and I think you might need a second step after the PROC COPY step to physicalize the CAS data form in-memory to an actual physical file.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 17:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862173#M10841</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-03T17:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to save json data as an in-memory/sashdat table in job?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862623#M10848</link>
      <description>&lt;P&gt;I'm not sure if there's an in-memory table at the first place. Because I've tried to check at library(mycas) and didn't see anything.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 07:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-save-json-data-as-an-in-memory-sashdat-table-in-job/m-p/862623#M10848</guid>
      <dc:creator>Mayt</dc:creator>
      <dc:date>2023-03-07T07:50:29Z</dc:date>
    </item>
  </channel>
</rss>

