<?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 Is there a limit to the number of observations SAS can analyze? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634963#M30391</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been running into issues with SAS completely freezing when I try to run proc lifetest. When I set the number of observations to 100,000 it runs just fine. As I start increasing this number, SAS starts freezing, unfreezing, freezing, etc. When I go above 200,000 observations it freezing entirely. Is there a limit to the number of observations SAS can handle? I need to analyze roughly 600,000 observations. I am&amp;nbsp;&lt;SPAN&gt;using SAS 94 32 through a web browser. I access it through an application gateway through my university.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename in1 'S:\CRC\export3.txt';
libname save 'S:\CRC\';

proc format;
  value Patient_IDf
    23-77804110 = "* 00000023-77804110"
    ;
  value Age_recode_with_1_year_oldsf
	5-10 = '20-49'
	11-18 = '50+'
	0-4, 29 = 'other'
	;
  value Sexf
    1 = "Male"
    2 = "Female"
    ;
  value Race_recode_White_Black_Otherf
    1 = "White"
    2 = "Black"
    3 = "Other (American Indian/AK Native, Asian/Pacific Islander)"
    9 = "Unknown"
    ;
  value Summary_stage_2000_1998f
    0 = "In situ"
    1 = "Localized"
    2 = "Regional"
    7 = "Distant"
    8 = "N/A"
    9 = "Unknown/unstaged"
    14 = "Blank(s)"
    ;
  value Primary_Site_labeledf
	181 = 'Appendix'
	180, 182-184 = 'Proximal Colon'
	185-187 = 'Distal Colon'
	199,209 = 'Rectum'
	188-189 = 'Colon, NOS'
	0-179,210-809 = 'other'
    ;
  value Gradef
    1 = "Grade I"
    2 = "Grade II"
    3 = "Grade III"
    4 = "Grade IV"
    5 = "T-cell"
    6 = "B-cell; pre-B; B-precursor"
    7 = "Null cell; non T-non B"
    8 = "NK cell; natural killer cell (1995+)"
    9 = "Unknown"
    ;
  value Yost_quintile_registry_basedf
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    4 = "Group 4"
    5 = "Group 5"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Yost_tertile_registry_basedf
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Yost_quintilef
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    4 = "Group 4"
    5 = "Group 5"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Yost_tertilef
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Censusurbanareabasedcategorizaf
    1 = "All Urban"
    2 = "Mostly Urban"
    3 = "Mostly Rural"
    4 = "All Rural"
    7 = "Unable to Calculate"
    9 = "Tract in SEER, no match in Census data"
    ;
  value RUCAbasedcategorizationC2categf
    1 = "Urban"
    2 = "Rural"
    7 = "Unable to Calculate"
    8 = "Not coded"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Survival_monthsf
    0-203 = "* 0000-0203"
    9999 = "Unknown"
    ;
  value Vitalstatusrecodestudycutoffusf
    1 = "Alive"
    0 = "Dead"
    ;
run;

data save.new;
  /*NOTE: The data file was created using the Windows format line delimiter.*/
  /*The TERMSTR=CRLF input option for reading the file in UNIX, requires SAS version 9.*/
  infile in1 LRECL = 32000 delimiter = '09'X TERMSTR = CRLF;

  input Patient_ID
    Age_recode_with_1_year_olds
    Sex
    Race_recode_White_Black_Other
    Summary_stage_2000_1998
    Primary_Site_labeled
    Grade
    Yost_quintile_registry_based
    Yost_tertile_registry_based
    Yost_quintile
    Yost_tertile
    Censusurbanareabasedcategoriza
    RUCAbasedcategorizationC2categ
	Survival_months
    Vitalstatusrecodestudycutoffus
    ;
  label Patient_ID = "Patient ID"
    Age_recode_with_1_year_olds = "Age recode with &amp;lt;1 year olds"
    Sex = "Sex"
    Race_recode_White_Black_Other = "Race recode (White, Black, Other)"
    Summary_stage_2000_1998 = "Summary stage 2000 (1998+)"
    Primary_Site_labeled = "Primary Site - labeled"
    Grade = "Grade"
    Yost_quintile_registry_based = "Yost quintile (registry based)"
    Yost_tertile_registry_based = "Yost tertile (registry based)"
    Yost_quintile = "Yost quintile"
    Yost_tertile = "Yost tertile"
    Censusurbanareabasedcategoriza = "Census urban-area based categorization A"
    RUCAbasedcategorizationC2categ = "RUCA based categorization C (2 categorie"
	Survival_months = "Survival months"
    Vitalstatusrecodestudycutoffus = "Vital status recode (study cutoff used)"
    ;
  format Patient_ID Patient_IDf.
    Age_recode_with_1_year_olds Age_recode_with_1_year_oldsf.
    Sex Sexf.
    Race_recode_White_Black_Other Race_recode_White_Black_Otherf.
    Summary_stage_2000_1998 Summary_stage_2000_1998f.
    Primary_Site_labeled Primary_Site_labeledf.
    Grade Gradef.
    Yost_quintile_registry_based Yost_quintile_registry_basedf.
    Yost_tertile_registry_based Yost_tertile_registry_basedf.
    Yost_quintile Yost_quintilef.
    Yost_tertile Yost_tertilef.
    Censusurbanareabasedcategoriza Censusurbanareabasedcategorizaf.
    RUCAbasedcategorizationC2categ RUCAbasedcategorizationC2categf.
	Survival_months Survival_monthsf.
    Vitalstatusrecodestudycutoffus Vitalstatusrecodestudycutoffusf.
    ;
	run;
data save.new2;
  set save.new;
  if age_recode_with_1_year_olds in (0,1,2,3,4,29) then delete;
  else if 0&amp;lt;=primary_site_labeled&amp;lt;=179 then delete;
  else if 210&amp;lt;=primary_site_labeled&amp;lt;=809 then delete;
  else if Survival_months = 9999 then delete;
run;

proc freq data = save.new2 order=data;
	tables Age_recode_with_1_year_olds 
	Sex*Age_recode_with_1_year_olds
    Race_recode_White_Black_Other*Age_recode_with_1_year_olds
    Summary_stage_2000_1998*Age_recode_with_1_year_olds
    Primary_Site_labeled*Age_recode_with_1_year_olds
    Grade*Age_recode_with_1_year_olds
    Yost_quintile_registry_based*Age_recode_with_1_year_olds
    Yost_tertile_registry_based*Age_recode_with_1_year_olds
    Yost_quintile*Age_recode_with_1_year_olds
    Yost_tertile*Age_recode_with_1_year_olds
    Censusurbanareabasedcategoriza*Age_recode_with_1_year_olds
    RUCAbasedcategorizationC2categ*Age_recode_with_1_year_olds
    ;
	run;

proc lifetest data=save.new2(obs=1000);
strata Age_recode_with_1_year_olds;
time Survival_months*Vitalstatusrecodestudycutoffus(1);
run; 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 06:23:25 GMT</pubDate>
    <dc:creator>mkit8</dc:creator>
    <dc:date>2020-03-26T06:23:25Z</dc:date>
    <item>
      <title>Is there a limit to the number of observations SAS can analyze?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634963#M30391</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been running into issues with SAS completely freezing when I try to run proc lifetest. When I set the number of observations to 100,000 it runs just fine. As I start increasing this number, SAS starts freezing, unfreezing, freezing, etc. When I go above 200,000 observations it freezing entirely. Is there a limit to the number of observations SAS can handle? I need to analyze roughly 600,000 observations. I am&amp;nbsp;&lt;SPAN&gt;using SAS 94 32 through a web browser. I access it through an application gateway through my university.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename in1 'S:\CRC\export3.txt';
libname save 'S:\CRC\';

proc format;
  value Patient_IDf
    23-77804110 = "* 00000023-77804110"
    ;
  value Age_recode_with_1_year_oldsf
	5-10 = '20-49'
	11-18 = '50+'
	0-4, 29 = 'other'
	;
  value Sexf
    1 = "Male"
    2 = "Female"
    ;
  value Race_recode_White_Black_Otherf
    1 = "White"
    2 = "Black"
    3 = "Other (American Indian/AK Native, Asian/Pacific Islander)"
    9 = "Unknown"
    ;
  value Summary_stage_2000_1998f
    0 = "In situ"
    1 = "Localized"
    2 = "Regional"
    7 = "Distant"
    8 = "N/A"
    9 = "Unknown/unstaged"
    14 = "Blank(s)"
    ;
  value Primary_Site_labeledf
	181 = 'Appendix'
	180, 182-184 = 'Proximal Colon'
	185-187 = 'Distal Colon'
	199,209 = 'Rectum'
	188-189 = 'Colon, NOS'
	0-179,210-809 = 'other'
    ;
  value Gradef
    1 = "Grade I"
    2 = "Grade II"
    3 = "Grade III"
    4 = "Grade IV"
    5 = "T-cell"
    6 = "B-cell; pre-B; B-precursor"
    7 = "Null cell; non T-non B"
    8 = "NK cell; natural killer cell (1995+)"
    9 = "Unknown"
    ;
  value Yost_quintile_registry_basedf
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    4 = "Group 4"
    5 = "Group 5"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Yost_tertile_registry_basedf
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Yost_quintilef
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    4 = "Group 4"
    5 = "Group 5"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Yost_tertilef
    1 = "Group 1"
    2 = "Group 2"
    3 = "Group 3"
    8 = "Missing (unable to calculate)"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Censusurbanareabasedcategorizaf
    1 = "All Urban"
    2 = "Mostly Urban"
    3 = "Mostly Rural"
    4 = "All Rural"
    7 = "Unable to Calculate"
    9 = "Tract in SEER, no match in Census data"
    ;
  value RUCAbasedcategorizationC2categf
    1 = "Urban"
    2 = "Rural"
    7 = "Unable to Calculate"
    8 = "Not coded"
    9 = "Tract in SEER, no match in Census data"
    ;
  value Survival_monthsf
    0-203 = "* 0000-0203"
    9999 = "Unknown"
    ;
  value Vitalstatusrecodestudycutoffusf
    1 = "Alive"
    0 = "Dead"
    ;
run;

data save.new;
  /*NOTE: The data file was created using the Windows format line delimiter.*/
  /*The TERMSTR=CRLF input option for reading the file in UNIX, requires SAS version 9.*/
  infile in1 LRECL = 32000 delimiter = '09'X TERMSTR = CRLF;

  input Patient_ID
    Age_recode_with_1_year_olds
    Sex
    Race_recode_White_Black_Other
    Summary_stage_2000_1998
    Primary_Site_labeled
    Grade
    Yost_quintile_registry_based
    Yost_tertile_registry_based
    Yost_quintile
    Yost_tertile
    Censusurbanareabasedcategoriza
    RUCAbasedcategorizationC2categ
	Survival_months
    Vitalstatusrecodestudycutoffus
    ;
  label Patient_ID = "Patient ID"
    Age_recode_with_1_year_olds = "Age recode with &amp;lt;1 year olds"
    Sex = "Sex"
    Race_recode_White_Black_Other = "Race recode (White, Black, Other)"
    Summary_stage_2000_1998 = "Summary stage 2000 (1998+)"
    Primary_Site_labeled = "Primary Site - labeled"
    Grade = "Grade"
    Yost_quintile_registry_based = "Yost quintile (registry based)"
    Yost_tertile_registry_based = "Yost tertile (registry based)"
    Yost_quintile = "Yost quintile"
    Yost_tertile = "Yost tertile"
    Censusurbanareabasedcategoriza = "Census urban-area based categorization A"
    RUCAbasedcategorizationC2categ = "RUCA based categorization C (2 categorie"
	Survival_months = "Survival months"
    Vitalstatusrecodestudycutoffus = "Vital status recode (study cutoff used)"
    ;
  format Patient_ID Patient_IDf.
    Age_recode_with_1_year_olds Age_recode_with_1_year_oldsf.
    Sex Sexf.
    Race_recode_White_Black_Other Race_recode_White_Black_Otherf.
    Summary_stage_2000_1998 Summary_stage_2000_1998f.
    Primary_Site_labeled Primary_Site_labeledf.
    Grade Gradef.
    Yost_quintile_registry_based Yost_quintile_registry_basedf.
    Yost_tertile_registry_based Yost_tertile_registry_basedf.
    Yost_quintile Yost_quintilef.
    Yost_tertile Yost_tertilef.
    Censusurbanareabasedcategoriza Censusurbanareabasedcategorizaf.
    RUCAbasedcategorizationC2categ RUCAbasedcategorizationC2categf.
	Survival_months Survival_monthsf.
    Vitalstatusrecodestudycutoffus Vitalstatusrecodestudycutoffusf.
    ;
	run;
data save.new2;
  set save.new;
  if age_recode_with_1_year_olds in (0,1,2,3,4,29) then delete;
  else if 0&amp;lt;=primary_site_labeled&amp;lt;=179 then delete;
  else if 210&amp;lt;=primary_site_labeled&amp;lt;=809 then delete;
  else if Survival_months = 9999 then delete;
run;

proc freq data = save.new2 order=data;
	tables Age_recode_with_1_year_olds 
	Sex*Age_recode_with_1_year_olds
    Race_recode_White_Black_Other*Age_recode_with_1_year_olds
    Summary_stage_2000_1998*Age_recode_with_1_year_olds
    Primary_Site_labeled*Age_recode_with_1_year_olds
    Grade*Age_recode_with_1_year_olds
    Yost_quintile_registry_based*Age_recode_with_1_year_olds
    Yost_tertile_registry_based*Age_recode_with_1_year_olds
    Yost_quintile*Age_recode_with_1_year_olds
    Yost_tertile*Age_recode_with_1_year_olds
    Censusurbanareabasedcategoriza*Age_recode_with_1_year_olds
    RUCAbasedcategorizationC2categ*Age_recode_with_1_year_olds
    ;
	run;

proc lifetest data=save.new2(obs=1000);
strata Age_recode_with_1_year_olds;
time Survival_months*Vitalstatusrecodestudycutoffus(1);
run; 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 06:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634963#M30391</guid>
      <dc:creator>mkit8</dc:creator>
      <dc:date>2020-03-26T06:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a limit to the number of observations SAS can analyze?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634998#M30392</link>
      <description>&lt;P&gt;There should be no such limit built into the software. The limit is more than likely based on your hardware capabilities.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634998#M30392</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-26T10:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a limit to the number of observations SAS can analyze?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634999#M30393</link>
      <description>I am not an expert with this proc.  However, it is probably related to the amount of memory allocated to each user session.  &lt;BR /&gt;You can find out how much is allocated to you by running &lt;BR /&gt;Proc options; run;  &lt;BR /&gt;and look in the results for the option MEMSIZE.&lt;BR /&gt;&lt;BR /&gt;You may need to have the SAS administrator to temporarily allocate you more memory.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/634999#M30393</guid>
      <dc:creator>DavePrinsloo</dc:creator>
      <dc:date>2020-03-26T10:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a limit to the number of observations SAS can analyze?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/635000#M30394</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257033"&gt;@mkit8&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please don't ask the same question in two places. That won't help anyone. I believe the the discussion &lt;A href="https://communities.sas.com/t5/New-SAS-User/Why-will-my-proc-lifetest-code-not-work/td-p/634619" target="_self"&gt;here&lt;/A&gt; already moved on to more in-depth analysis.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/635000#M30394</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-26T10:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a limit to the number of observations SAS can analyze?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/635084#M30408</link>
      <description>&lt;P&gt;Thank you, Dave.&lt;/P&gt;&lt;P&gt;When I run proc options, this is what it gives me (see below). Does this seem low? Any idea on how much memory I would need to run about 600,000 observations?&lt;/P&gt;&lt;P&gt;MEMMAXSZ=2147483648&lt;BR /&gt;Specifies the maximum amount of memory to allocate for using memory-based&lt;BR /&gt;libraries.&lt;BR /&gt;MEMSIZE=2147483648&lt;BR /&gt;Specifies the limit on the amount of virtual memory that can be used during&lt;BR /&gt;a SAS session.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 16:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/635084#M30408</guid>
      <dc:creator>mkit8</dc:creator>
      <dc:date>2020-03-26T16:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a limit to the number of observations SAS can analyze?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/635254#M30416</link>
      <description>That is 2 GB.   That's a pretty standard setting in multiuser environments.   The server probably has something like 256 GB total, so  2GB each allows roughly 120 concurrent users.  If the administrators gave everyone 4GB, then you would the server would be maxed with only 60 users.   &lt;BR /&gt;But maybe there is a process at the university for you to justify why you need more space and they may allocate more for a week or so.   I bet that if you were a professor researching for a Nobel prize, you would easily get a lot more.  I have no idea if the memory usage increase is linear (in which case you would need 6 GB) or if it increases quicker.   But I would apply for 8 GB as a start.</description>
      <pubDate>Fri, 27 Mar 2020 10:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-a-limit-to-the-number-of-observations-SAS-can-analyze/m-p/635254#M30416</guid>
      <dc:creator>DavePrinsloo</dc:creator>
      <dc:date>2020-03-27T10:16:56Z</dc:date>
    </item>
  </channel>
</rss>

