<?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 Examples for THREADED_APPS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965685#M375940</link>
    <description>&lt;P&gt;Hello World,&lt;/P&gt;
&lt;P&gt;The following page explains what Threaded Applications are: "&lt;SPAN&gt;SAS threaded applications are SAS procedures that thread input, output, and numeric operations".&amp;nbsp;&amp;nbsp;Is there a list somewhere that shows what these proc steps are?&amp;nbsp;I tested proc means and proc summary, but the option DBSLICEPARM=(THREADED_APPS, 2) has no effect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Options That Affect Threaded Reads" href="https://documentation.sas.com/doc/en/pgmsascdc/v_062/acreldb/n126xsso3z8u3pn1t3pcjin8koz1.htm#:~:text=With%20the%20DBSLICEPARM%3DTHREADED_APPS%20value%2C%20SAS%20automatically%20attempts%20threaded,procedures%20that%20thread%20input%2C%20output%2C%20and%20numeric%20operations." target="_self"&gt;Options That Affect Threaded Reads&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 May 2025 17:20:01 GMT</pubDate>
    <dc:creator>klroesner</dc:creator>
    <dc:date>2025-05-04T17:20:01Z</dc:date>
    <item>
      <title>Examples for THREADED_APPS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965685#M375940</link>
      <description>&lt;P&gt;Hello World,&lt;/P&gt;
&lt;P&gt;The following page explains what Threaded Applications are: "&lt;SPAN&gt;SAS threaded applications are SAS procedures that thread input, output, and numeric operations".&amp;nbsp;&amp;nbsp;Is there a list somewhere that shows what these proc steps are?&amp;nbsp;I tested proc means and proc summary, but the option DBSLICEPARM=(THREADED_APPS, 2) has no effect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Options That Affect Threaded Reads" href="https://documentation.sas.com/doc/en/pgmsascdc/v_062/acreldb/n126xsso3z8u3pn1t3pcjin8koz1.htm#:~:text=With%20the%20DBSLICEPARM%3DTHREADED_APPS%20value%2C%20SAS%20automatically%20attempts%20threaded,procedures%20that%20thread%20input%2C%20output%2C%20and%20numeric%20operations." target="_self"&gt;Options That Affect Threaded Reads&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 17:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965685#M375940</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2025-05-04T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Examples for THREADED_APPS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965712#M375949</link>
      <description>&lt;P&gt;Are you running PROC MEANS directly against a DBMS table as the option only applies to external database tables?&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 22:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965712#M375949</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-05-04T22:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Examples for THREADED_APPS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965749#M375964</link>
      <description>&lt;P&gt;Yes, we use a database table directly...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
* Wie ist das aktuelle Setting der Option: DBSLICEPARM?;
proc options option=DBSLICEPARM; 
run;

* Trace aktivieren;
options sastrace=",,t,d" sastraceloc=saslog nostsuffix;

* Threaded Proc Step;
proc means data=tutorial.threaded_reads;
 output out=test;
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  SAS (r) Proprietary Software Release 9.4  TS1M8

 DBSLICEPARM=(THREADED_APPS, 2)
                   Specifies whether SAS procedures, applications, and the DATA step can read DBMS tables in parallel, and the 
                   number of threads to use to read the DBMS tables.
NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

32         
33         * Trace aktivieren;
34         options sastrace=",,t,d" sastraceloc=saslog nostsuffix;
35         
36         * Threaded Proc Step;
 
SAPHANA_3: Prepared: on connection 0
SELECT * FROM UPM_TUTORIAL.THREADED_READS
 
37         proc means data=tutorial.threaded_reads;
38          output out=test;
39         run;

 
SAPHANA_4: Executed: on connection 0
2                                                          The SAS System                              Montag,  5. Mai 2025 15:08:00

Prepared statement SAPHANA_3
 
NOTE: There were 20000000 observations read from the data set TUTORIAL.THREADED_READS.
NOTE: The data set WORK.TEST has 5 observations and 9 variables.
NOTE: Compressing data set WORK.TEST increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: PROCEDURE MEANS used (Total process time):
      real time           24.86 seconds
      cpu time            22.28 seconds&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 May 2025 13:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965749#M375964</guid>
      <dc:creator>klroesner</dc:creator>
      <dc:date>2025-05-05T13:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Examples for THREADED_APPS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965753#M375967</link>
      <description>&lt;P&gt;Not sure what PROC MEANS would need multiple remote database threads for in your example code.&amp;nbsp; It should be able to generate a single query to find all of the values.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 13:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Examples-for-THREADED-APPS/m-p/965753#M375967</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-05T13:56:46Z</dc:date>
    </item>
  </channel>
</rss>

