<?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 Multi Threads processing in SAS Viya in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664654#M622</link>
    <description>&lt;P&gt;Goodmorning everyone.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Maybe I didn't understand the mechanism of multi threads.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;With this simple test code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mySession sessopts = (caslib = casuser timeout = 1800 locale = "en_US");
libname mycas cas caslib = casuser;

data mycas.ds1; 
x=2; 
put "The # of Threads is " _nthreads_; /* 3 */ 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get 12 lines instead of 1 and the following message in the log:&lt;BR /&gt;&lt;BR /&gt;NOTES: Running DATA step in Cloud Analytic Services.&lt;BR /&gt;Processed intro on _THREADID_ = 11 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 4 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 2 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 5 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 3 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 1 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 12 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 7 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 10 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 8 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 9 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 6 _NTHREADS_ = 12&lt;BR /&gt;NOTE: The ds1 table in caslib CASUSER (sasdemo) has 12 observations and 1 variables.&lt;BR /&gt;NOTES: DATA statement used (total processing time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why? What is the correct way to load a table into a caslib?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 14:57:19 GMT</pubDate>
    <dc:creator>mariopellegrini</dc:creator>
    <dc:date>2020-06-24T14:57:19Z</dc:date>
    <item>
      <title>Multi Threads processing in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664654#M622</link>
      <description>&lt;P&gt;Goodmorning everyone.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Maybe I didn't understand the mechanism of multi threads.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;With this simple test code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mySession sessopts = (caslib = casuser timeout = 1800 locale = "en_US");
libname mycas cas caslib = casuser;

data mycas.ds1; 
x=2; 
put "The # of Threads is " _nthreads_; /* 3 */ 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get 12 lines instead of 1 and the following message in the log:&lt;BR /&gt;&lt;BR /&gt;NOTES: Running DATA step in Cloud Analytic Services.&lt;BR /&gt;Processed intro on _THREADID_ = 11 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 4 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 2 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 5 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 3 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 1 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 12 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 7 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 10 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 8 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 9 _NTHREADS_ = 12&lt;BR /&gt;Processed intro on _THREADID_ = 6 _NTHREADS_ = 12&lt;BR /&gt;NOTE: The ds1 table in caslib CASUSER (sasdemo) has 12 observations and 1 variables.&lt;BR /&gt;NOTES: DATA statement used (total processing time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why? What is the correct way to load a table into a caslib?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 14:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664654#M622</guid>
      <dc:creator>mariopellegrini</dc:creator>
      <dc:date>2020-06-24T14:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Threads processing in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664883#M624</link>
      <description>&lt;P&gt;The example shows that the DATA Step processing is divided into multiple threads. However your code and the provided log do not fit together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are not actually loading any data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide some more information like:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Viya version&lt;/LI&gt;
&lt;LI&gt;What kind of data do you want to load&lt;/LI&gt;
&lt;LI&gt;Where is this data, on the SAS Viya server or somewhere else&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 25 Jun 2020 06:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664883#M624</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-06-25T06:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Threads processing in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664924#M626</link>
      <description>Bruno_SAS, with that code I loaded 12 lines.&lt;BR /&gt;Mine is a trivial example to show how to insert a simple 1 row table, in reality it inserts 12. I would like to understand how to make a correct loading.&lt;BR /&gt;the trivial datastep is:&lt;BR /&gt;mycas.ds1;&lt;BR /&gt;x = 2;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 25 Jun 2020 09:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664924#M626</guid>
      <dc:creator>mario_pelleg</dc:creator>
      <dc:date>2020-06-25T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Threads processing in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664937#M627</link>
      <description>&lt;P&gt;Well have a look here&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=casdspgm&amp;amp;docsetTarget=n183xun5dd4dy5n1x453fw5reu8o.htm&amp;amp;docsetVersion=3.5&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=casdspgm&amp;amp;docsetTarget=n183xun5dd4dy5n1x453fw5reu8o.htm&amp;amp;docsetVersion=3.5&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;it explains there various process modes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case you need the SINGLE=YES option on the DATA statement like so:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mycas.sometable / single=yes;
...
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jun 2020 09:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/664937#M627</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-06-25T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Threads processing in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/665400#M630</link>
      <description>&lt;P&gt;thanks for the link to the documentation.&lt;BR /&gt;However, I still struggle to understand the meaning.&lt;BR /&gt;In practice, for large tables, it is better to do processing using the multi thread. But if I get an incorrect result (the example of 12 lines instead of 1) what do I do with speed?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/665400#M630</guid>
      <dc:creator>mario_pelleg</dc:creator>
      <dc:date>2020-06-26T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Threads processing in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/665711#M631</link>
      <description>&lt;P&gt;As asked already earlier, we do need some details on the type of data that you want to load to CAS:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Viya version&lt;/LI&gt;
&lt;LI&gt;What kind of data do you want to load&lt;/LI&gt;
&lt;LI&gt;Where is this data, on the SAS Viya server or somewhere else&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also you should have a look here:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=casfun&amp;amp;docsetTarget=n09ssmi0ko8uyfn1022ezo2hv0pm.htm&amp;amp;docsetVersion=3.5&amp;amp;locale=en#n1rdajpahvwz6mn15o3fl6vw99rr"&gt;https://go.documentation.sas.com/?docsetId=casfun&amp;amp;docsetTarget=n09ssmi0ko8uyfn1022ezo2hv0pm.htm&amp;amp;docsetVersion=3.5&amp;amp;locale=en#n1rdajpahvwz6mn15o3fl6vw99rr&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 06:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Multi-Threads-processing-in-SAS-Viya/m-p/665711#M631</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-06-29T06:27:04Z</dc:date>
    </item>
  </channel>
</rss>

