<?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: Proc Print Hangs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49392#M13397</link>
    <description>You will need to share more about the SAS code executing before what you've provided - there could be some open ODS destination, possibly.  Also, set OBS=0 upfront in your code to determine if the behavior changes.  Also, SAS version and OS environment, also with SAS processing (local install, remote server) conditions would be most helpful.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 26 Jun 2009 16:19:29 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-06-26T16:19:29Z</dc:date>
    <item>
      <title>Proc Print Hangs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49391#M13396</link>
      <description>I have been importing data from a MySQL database, cleaning it up, formatting, etc. for a weekly update into a Master.SASDataset. However, when I want to review the data prior to the update by using a Proc Print statement, I receive one page of output and the program hangs. I cannot review the entire output.&lt;BR /&gt;
&lt;BR /&gt;
Below is copy of the SAS log, including the code just prior to the Proc Print statement.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 3413  Proc Sort data=SQLTimeSched;&lt;BR /&gt;
3414  by ID  ;&lt;BR /&gt;
3415  Run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 214 observations read from the data set WORK.SQLTIMESCHED.&lt;BR /&gt;
NOTE: The data set WORK.SQLTIMESCHED has 214 observations and 11 variables.&lt;BR /&gt;
NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
3416  Proc Print data=SQLTimeSched n;&lt;BR /&gt;
3417  var ID Testdate Tester Type Appoint HR LID;&lt;BR /&gt;
3418&lt;BR /&gt;
3419  run;&lt;BR /&gt;
&lt;BR /&gt;
ERROR: User asked for termination&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: There were 73 observations read from the data set WORK.SQLTIMESCHED.&lt;BR /&gt;
NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;
      real time           6.59 seconds&lt;BR /&gt;
      cpu time            0.20 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
You can see I finally halt the Proc Print at the Error statement, but that was after three minutes of waiting for an output of 214 obs and 11 variables.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas? I am sure it is something simple. I just don't know what I am looking for.&lt;BR /&gt;
&lt;BR /&gt;
Any help or suggestions would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Scot</description>
      <pubDate>Fri, 26 Jun 2009 16:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49391#M13396</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-26T16:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print Hangs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49392#M13397</link>
      <description>You will need to share more about the SAS code executing before what you've provided - there could be some open ODS destination, possibly.  Also, set OBS=0 upfront in your code to determine if the behavior changes.  Also, SAS version and OS environment, also with SAS processing (local install, remote server) conditions would be most helpful.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 26 Jun 2009 16:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49392#M13397</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-26T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print Hangs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49393#M13398</link>
      <description>sbb, thanks for your time.&lt;BR /&gt;
&lt;BR /&gt;
No ODS.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.1.3 SP4  XP processing local&lt;BR /&gt;
&lt;BR /&gt;
however, the data is pulled from Linux server.&lt;BR /&gt;
&lt;BR /&gt;
when I add the obs=5  option the procedure runs fine.</description>
      <pubDate>Fri, 26 Jun 2009 16:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49393#M13398</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-26T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print Hangs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49394#M13399</link>
      <description>If you add obs=213, all works fine and obs=215 makes the procedure hang? If so, proc print encounters some data it dislikes.&lt;BR /&gt;
In that case:&lt;BR /&gt;
- look at the data (try using the var statement in proc print to seek the bad variable, or use table viewer, or a data step and the rank function to see actual binary values)&lt;BR /&gt;
- clean the data up so you can keep working&lt;BR /&gt;
- inform tech support, I am sure they'd be keen to know and make sas more robust</description>
      <pubDate>Mon, 29 Jun 2009 02:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-Hangs/m-p/49394#M13399</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-29T02:45:27Z</dc:date>
    </item>
  </channel>
</rss>

