<?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: Problem with using PROC SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445626#M15329</link>
    <description>&lt;P&gt;Is this SAS UE? Or a separate installation? If it's SAS UE you're very likely running out of memory, but you can increase that in your Oracle VM settings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/199124"&gt;@ewelina2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Sas Studio under Linux. I believe&amp;nbsp;SAS release:&amp;nbsp;9.04 &amp;nbsp;(version 3.6 ?)&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 20:03:53 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-03-14T20:03:53Z</dc:date>
    <item>
      <title>Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445583#M15322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC SGPANEL to plot graphs by year. I sorted dataset first, however, the SGPANEL does produce a confusing error suggesting I haven't sorted the dataset. Year is a numeric variable and I do not impose any particular format for it.&lt;/P&gt;&lt;P&gt;Any thoughts what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below I attach the log&lt;/P&gt;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 61         
 62         proc sort data=temp out=xx;
 63         by year;
 64         run;
 
 NOTE: There were 16145577 observations read from the data set WORK.TEMP.
 NOTE: The data set WORK.XX has 16145577 observations and 23 variables.
 NOTE: PROCEDURE SORT used (Total process time):
       real time           3.61 seconds
       cpu time            10.53 seconds
       
 
 65         proc sgpanel data=xx noautolegend;
 66           title "Travel time to work distribution ";
 67           panelby year;
 68           format trantime traveltimeCat_f.;
 69           histogram TRANTIME / binstart=1 binwidth=10;
 70         colaxis max=120;
 71         run;
 
  
 ERROR:  An exception has been encountered.
 Please contact technical support and provide them with the following traceback information:
  
 The SAS task name is [SGPANEL ]
 Segmentation Violation
  
 Traceback of the Exception:
  
 /usr/local/SAS/SASFoundation/9.4/sasexe/sas(+0x15cfde) [0x55779b2f1fde]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sas(+0x4cb7b) [0x55779b1e1b7b]
 /usr/local/SAS/SASFoundation/9.4/sasexe/tkmk.so(bkt_signal_handler+0x144) [0x7f681b961404]
 /lib64/libpthread.so.0(+0xf5e0) [0x7f681cbc75e0]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(__intel_ssse3_rep_memcpy+0x45) [0x7f680b27ca65]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(ypcdo2+0xa0) [0x7f680b217ba0]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(ypfmtc+0xe7) [0x7f680b217a17]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(+0x72fb0) [0x7f680b227fb0]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(ypslf+0x951) [0x7f680b227171]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(ypmpstr+0x248) [0x7f680b223518]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasxkern(ypmstr+0x9d) [0x7f680b2232bd]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasyh(+0x3183f) [0x7f680a94283f]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasyh(+0x30aa6) [0x7f680a941aa6]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasyh(yyhlock+0x8df) [0x7f680a93e28f]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasyh(yhgenop+0x3da) [0x7f680a91dfea]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasyoio(yyoopen+0x7e6b) [0x7f67d60c747b]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sasyoio(yoopen+0x1eb) [0x7f67d60bf23b]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sassgpan(sortClassData+0x1b9) [0x7f67b9a85eb9]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sassgpan(sassgpan+0x11c97) [0x7f67b9aac267]
 /usr/local/SAS/SASFoundation/9.4/sasexe/sas(vvtentr+0x13d) [0x55779b1e171d]
 /lib64/libpthread.so.0(+0x7e25) [0x7f681cbbfe25]
 /lib64/libc.so.6(clone+0x6d) [0x7f681c1b034d]
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: There were 16145577 observations read from the data set WORK.XX.
  
 ERROR:  An exception has been encountered.
 Please contact technical support and provide them with the following traceback information:
  
 The SAS task name is [SGPANEL ]
 Segmentation Violation
  
 72         title;
 73         
 74         
 75         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 88         &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445583#M15322</guid>
      <dc:creator>ewelina2</dc:creator>
      <dc:date>2018-03-14T19:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445593#M15323</link>
      <description>&lt;P&gt;The error has nothing to do with the sort, but it's different.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are graphs in general working for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc sgpanel data=xx ;
 panelby year;
 format trantime traveltimeCat_f.;
 histogram TRANTIME;

 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=sashelp.iris;
  title "Scatter plot for Fisher iris data";
  panelby species / columns=3;
 
 reg x=sepallength y=sepalwidth / cli clm;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please post the logs from both.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445593#M15323</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-14T19:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445618#M15325</link>
      <description>&lt;P&gt;Thank you for a&amp;nbsp;prompt answer.&lt;/P&gt;&lt;P&gt;Yes, graphics works for me. Your code using iris dataset does work without problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed it might be a memory problem. It is a big dataset and I want to use all the observation to compute histograms. That was one of the main reasons I decided to work with SAS on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check this I sampled a smaller dataset and tried to run the code unsuccessfully again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 61         
 62         proc sort data=temp;
 63         by TRANTIME;
 64         run;
 
 NOTE: There were 433 observations read from the data set WORK.TEMP.
 NOTE: The data set WORK.TEMP has 433 observations and 23 variables.
 NOTE: PROCEDURE SORT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 65         data temp;
 66         set temp(where=(year&amp;gt;1970 and TRANTIME&amp;gt;0));
 67         run;
 
 NOTE: There were 433 observations read from the data set WORK.TEMP.
       WHERE (year&amp;gt;1970) and (TRANTIME&amp;gt;0);
 NOTE: The data set WORK.TEMP has 433 observations and 23 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 68         proc summary data=temp print;
 69         var year trantime;
 70         run;
 
 NOTE: There were 433 observations read from the data set WORK.TEMP.
 NOTE: PROCEDURE SUMMARY used (Total process time):
       real time           0.02 seconds
       cpu time            0.01 seconds
       
 
 71         proc sort data=temp;
 72         by year;
 73         run;
 
 NOTE: There were 433 observations read from the data set WORK.TEMP.
 NOTE: The data set WORK.TEMP has 433 observations and 23 variables.
 NOTE: PROCEDURE SORT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 74         proc sgpanel data=temp noautolegend;
 75           panelby year;
 76           histogram trantime ;
 77         run;
 
 ERROR: The data set must be sorted by the list of variables on the PANELBY statement.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: There were 433 observations read from the data set WORK.TEMP.
 NOTE: PROCEDURE SGPANEL used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92         &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="proc_title_group"&gt;&lt;P class="c proctitle"&gt;The SUMMARY Procedure&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Variable Label N Mean Std Dev Minimum Maximum&lt;/P&gt;&lt;DIV&gt;YEAR&lt;/DIV&gt;&lt;DIV&gt;TRANTIME&lt;/DIV&gt;&lt;DIV&gt;Census year&lt;/DIV&gt;&lt;DIV&gt;Travel time to work&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="stacked-cell"&gt;&lt;DIV&gt;433&lt;/DIV&gt;&lt;DIV&gt;433&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="stacked-cell"&gt;&lt;DIV&gt;1996.24&lt;/DIV&gt;&lt;DIV&gt;22.5473441&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="stacked-cell"&gt;&lt;DIV&gt;9.9844846&lt;/DIV&gt;&lt;DIV&gt;18.2079856&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="stacked-cell"&gt;&lt;DIV&gt;1980.00&lt;/DIV&gt;&lt;DIV&gt;1.0000000&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="stacked-cell"&gt;&lt;DIV&gt;2016.00&lt;/DIV&gt;&lt;DIV&gt;162.0000000&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes when I sort the data for the first time, the SGPANEL does not complain about sorting but produce the very long error as in the initial post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea what might be the cause.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445618#M15325</guid>
      <dc:creator>ewelina2</dc:creator>
      <dc:date>2018-03-14T19:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445619#M15326</link>
      <description>&lt;P&gt;Unfortunately this sounds like a tech support issue now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would open a track with them to help you resolve this.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445619#M15326</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-14T19:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445620#M15327</link>
      <description>&lt;P&gt;What version of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445620#M15327</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-03-14T19:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445623#M15328</link>
      <description>&lt;P&gt;Sas Studio under Linux. I believe&amp;nbsp;SAS release:&amp;nbsp;9.04 &amp;nbsp;(version 3.6 ?)&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 20:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445623#M15328</guid>
      <dc:creator>ewelina2</dc:creator>
      <dc:date>2018-03-14T20:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445626#M15329</link>
      <description>&lt;P&gt;Is this SAS UE? Or a separate installation? If it's SAS UE you're very likely running out of memory, but you can increase that in your Oracle VM settings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/199124"&gt;@ewelina2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Sas Studio under Linux. I believe&amp;nbsp;SAS release:&amp;nbsp;9.04 &amp;nbsp;(version 3.6 ?)&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 20:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445626#M15329</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-14T20:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445645#M15330</link>
      <description>&lt;P&gt;Could it be that YEAR has a two digit format which would make the &lt;STRONG&gt;formatted&lt;/STRONG&gt; year values unsorted?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 21:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445645#M15330</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-03-14T21:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445905#M15332</link>
      <description>&lt;P&gt;No&lt;/P&gt;&lt;P&gt;But I did have a format of the form:&lt;/P&gt;&lt;PRE&gt;value YEAR_f.
1980 = '1980'
..... other years......
2010 = '2010'
;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which I didn't suspect to cause troubles since other "by" statements used in other procedures worked without any problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after deleting the format and using unformatted variable"year" in panelby statement, PROC SGPANEL worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another observation I made is that once the PROC SGPANEL was unsuccessfully run once, it created a temporary file in "WORK" library, which I couldn't delete manually. I had to reopen&amp;nbsp;SAS to have it deleted. I think this was causing the error that says "Your dataset was not sorted" even though it runs the proc sort simultaneously with PROC SGPANEL when I tried to run the SGPANEL again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bottom line, PROC SGPANEL and especially panelby is very sensitive to the format used and once run with error&amp;nbsp;will not be able to run again without closing SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still confused when the original values and when the formatted values are used when executing "by" "group" "category" "panelby" statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for help!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 17:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445905#M15332</guid>
      <dc:creator>ewelina2</dc:creator>
      <dc:date>2018-03-15T17:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with using PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445906#M15333</link>
      <description>&lt;P&gt;I think you can specify the GROUPFORMAT option instead to get around that on your BY statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;by year groupformat;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0yeyftk8ftuckn1o5qzy53284gz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n00hu859qhvnx3n131n50id7n3gq" target="_blank"&gt;http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0yeyftk8ftuckn1o5qzy53284gz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n00hu859qhvnx3n131n50id7n3gq&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 17:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-using-PROC-SGPANEL/m-p/445906#M15333</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-15T17:19:25Z</dc:date>
    </item>
  </channel>
</rss>

