<?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 SAS takes so long to initiate, print even very small dataset. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905810#M357718</link>
    <description>&lt;P&gt;Hi, all. Each time I start SAS, it takes about a few minutes to initiate and it takes so long to even print a very small dataset (sometimes even 1 rows). This is the log that I just had:&lt;/P&gt;&lt;PRE&gt;3    proc print data=hw5.flowers;run;
NOTE: Writing HTML Body file: sashtml.htm

NOTE: There were 150 observations read from the data set HW5.FLOWERS.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           3:33.29
      cpu time            0.62 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Real time is much longer than cpu time. But if I print it again, it takes no time:&lt;/P&gt;&lt;PRE&gt;NOTE: There were 150 observations read from the data set HW5.FLOWERS.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds&lt;/PRE&gt;&lt;P&gt;Why is that? Is it because the&amp;nbsp;Writing HTML Body file issue? How do I deal with that then?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Dec 2023 07:28:54 GMT</pubDate>
    <dc:creator>leen</dc:creator>
    <dc:date>2023-12-02T07:28:54Z</dc:date>
    <item>
      <title>SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905810#M357718</link>
      <description>&lt;P&gt;Hi, all. Each time I start SAS, it takes about a few minutes to initiate and it takes so long to even print a very small dataset (sometimes even 1 rows). This is the log that I just had:&lt;/P&gt;&lt;PRE&gt;3    proc print data=hw5.flowers;run;
NOTE: Writing HTML Body file: sashtml.htm

NOTE: There were 150 observations read from the data set HW5.FLOWERS.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           3:33.29
      cpu time            0.62 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Real time is much longer than cpu time. But if I print it again, it takes no time:&lt;/P&gt;&lt;PRE&gt;NOTE: There were 150 observations read from the data set HW5.FLOWERS.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds&lt;/PRE&gt;&lt;P&gt;Why is that? Is it because the&amp;nbsp;Writing HTML Body file issue? How do I deal with that then?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 07:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905810#M357718</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-02T07:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905820#M357719</link>
      <description>&lt;P&gt;Look at the library definition for library HW5. I suspect it points to something remote, either with a very slow network connection or badly misconfigured. After the first run, the data is read from your local cache.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 10:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905820#M357719</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-02T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905872#M357750</link>
      <description>&lt;P&gt;Sorry but when I tried to copy and paste this folder to a local directory, the same thing happened, just for this proc varclus process:&lt;/P&gt;&lt;PRE&gt;342  libname hw5 "D:\hw5";
NOTE: Libref HW5 was successfully assigned as follows:
      Engine:        V9
      Physical Name: D:\hw5
343
344  proc print data=hw5.flowers;run;

NOTE: There were 150 observations read from the data set HW5.FLOWERS.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.05 seconds
      cpu time            0.03 seconds


345
346  proc varclus data=hw5.flowers proportion=.9 outtree=hw5.tree1;
347  var sl sw pl pw;
348  run;

NOTE: Clustering algorithm converged.
NOTE: Clustering algorithm converged.
NOTE: The data set HW5.TREE1 has 6 observations and 8 variables.
NOTE: PROCEDURE VARCLUS used (Total process time):
      real time           3:30.86
      cpu time            0.65 seconds&lt;/PRE&gt;&lt;P&gt;Real time is 3 min 30 sec, but the cpu time is only 0.65 seconds&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 00:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905872#M357750</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-03T00:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905876#M357752</link>
      <description>&lt;P&gt;Do you start your SAS software from a network location?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 06:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905876#M357752</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-03T06:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905914#M357764</link>
      <description>&lt;P&gt;No. I have ensured that all files needed for running sas code are in the local directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SAS is installed in D:\software, my dataset and code is in D:\hw5 and the onedrive is in D:\Onedrive so I assume SAS won't be affected, right?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 20:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905914#M357764</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-03T20:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905917#M357765</link>
      <description>&lt;P&gt;What directory is your HW5 SAS library pointing to? If it is pointing to your cloud One Drive, that might explain the poor performance. Move the library to a folder that is on your PC hard drive and test your program again. I'm assuming here that D is a local drive on your PC.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 21:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905917#M357765</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-12-03T21:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905929#M357771</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460428"&gt;@leen&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The large difference between real time and cpu time typically indicates an I/O issue.&lt;BR /&gt;One possibility is that the D drive is not local to the machine that is running SAS i.e. it may be a remote or networked location.&lt;BR /&gt;is your SAS running on your local PC or on the server. &lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 01:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905929#M357771</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-12-04T01:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905935#M357773</link>
      <description>&lt;P&gt;It's:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname hw5 "D:\hw5";&lt;/PRE&gt;&lt;P&gt;And i am pretty sure D:/ is a local drive, not a network location. This happens to me today as well, with no exception. But the most important point is that this problem will only happen at first output (I think it's HTML output because:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;5
6    proc sql;
7    select * from myora.customer_t where customerstate="NY" or customerstate="PA";
NOTE: Writing HTML Body file: sashtml.htm
8    quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           3:30.67
      cpu time            0.28 seconds


9    proc sql;
10   select * from myora.customer_t where customerstate="NY" or customerstate="PA";
11   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.03 seconds
      cpu time            0.01 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 03:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905935#M357773</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-04T03:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905940#M357775</link>
      <description>&lt;P&gt;Having a local sas installation and processing locally stored data only, real time should be much lower using recent hardware. Can you post some details about the computer used: cpu, memory, harddisks &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 07:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905940#M357775</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-12-04T07:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905941#M357776</link>
      <description>&lt;P&gt;If I run below command in a dos command prompt (cmd)...&lt;/P&gt;
&lt;PRE&gt;c:\temp&amp;gt;wmic logicaldisk get deviceid, volumename, description&lt;/PRE&gt;
&lt;P&gt;...I get output like below&lt;/P&gt;
&lt;PRE&gt;Description         DeviceID  VolumeName
Local Fixed Disk    C:        Windows
Network Connection  I:        Data&lt;/PRE&gt;
&lt;P&gt;If you run the same command on your computer what does it say for your D-drive?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 07:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/905941#M357776</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-04T07:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906008#M357792</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460428"&gt;@leen&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In your first post you have mentioned&lt;BR /&gt;"&lt;STRONG&gt;Hi, all. Each time I start SAS,&lt;FONT color="#FF0000"&gt; it takes about a few minutes to initiate&lt;/FONT&gt; and it takes so long to even print a very small dataset (sometimes even 1 rows)&lt;/STRONG&gt;. "&lt;BR /&gt;This indicates that either the laptop has insufficient resources &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/FONT&gt; the D drive is not physically installed in the laptop.&lt;BR /&gt;It is customary in corporate environment to&amp;nbsp; mount a networked or shared drive at boot time with a drive letter. This gives the impression that it is a local drive.&lt;BR /&gt;It also happens often that a user works on a remote machine/VDI and the desktop is essentially a window to access those resources.&lt;BR /&gt;If there is a local IT support group / SAS Admin in your organization do approach them&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 14:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906008#M357792</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-12-04T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906144#M357823</link>
      <description>&lt;PRE&gt;C:\Users\JselZ&amp;gt;wmic logicaldisk get deviceid, volumename, description
Description       DeviceID  VolumeName
Local Fixed Disk  C:        Acer
Local Fixed Disk  D:        ???&lt;/PRE&gt;&lt;P&gt;Sure this is the result.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 23:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906144#M357823</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-04T23:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906145#M357824</link>
      <description>&lt;P&gt;I do have a network location under this PC. But I used nothing from that location while running my sas code. (It even doesn't contain any information). And when I had that problem, I was at home, connected successfully to that local network drive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 23:25:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906145#M357824</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-04T23:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906160#M357833</link>
      <description>&lt;P&gt;Try this to test your HTML theory:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
create table test as
select * from myora.customer_t where customerstate="NY" or customerstate="PA";
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Given you are reading from Oracle, another explanation is database caching.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 01:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906160#M357833</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-12-05T01:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906163#M357835</link>
      <description>Use %put %sysfunc(pathname(work)); to see where your work library locate at.</description>
      <pubDate>Tue, 05 Dec 2023 01:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906163#M357835</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2023-12-05T01:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906395#M357901</link>
      <description>&lt;PRE&gt;1    %put %sysfunc(pathname(work));
C:\Users\JselZ\AppData\Local\Temp\SAS Temporary Files\_TD16732_LAPTOP-S06C0GDM_&lt;/PRE&gt;&lt;P&gt;This is the output. I don't think this is a network location or an onedrive backup folder.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906395#M357901</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-06T07:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906400#M357903</link>
      <description>&lt;P&gt;Problem solved!&lt;/P&gt;&lt;P&gt;It's actually caused by a printer of my school, which is set by windows as default and is disconnected at home. It seems that SAS will check for printers while initializing so it also explains my another question on being stuck for using ods.&lt;/P&gt;&lt;P&gt;I found the solution &lt;A href="https://communities.sas.com/t5/SAS-Programming/SAS-9-4-Very-slow-or-not-responding/m-p/667185/highlight/true#M281205" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906400#M357903</guid>
      <dc:creator>leen</dc:creator>
      <dc:date>2023-12-06T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS takes so long to initiate, print even very small dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906406#M357905</link>
      <description>&lt;P&gt;Very good! I knew about that particular printer issue (it has come up here every now and then), but I had it buried too deep in the backyards of my mind. I take it that several of the senior users participating in this thread will have a similar moment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="picard-meme-facepalm.jpg" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90852i628C0ACA81F12AD7/image-size/small?v=v2&amp;amp;px=200" role="button" title="picard-meme-facepalm.jpg" alt="picard-meme-facepalm.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-takes-so-long-to-initiate-print-even-very-small-dataset/m-p/906406#M357905</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-06T08:45:33Z</dc:date>
    </item>
  </channel>
</rss>

