<?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: ERROR: Expecting page, got page -1 instead in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829760#M24917</link>
    <description>&lt;P&gt;Proc Sort takes up about 3 times the size of the data set to sort as there is the original data, a temp data set that is cleaned up when the sort finishes and the final sorted set.&lt;/P&gt;
&lt;P&gt;If the issue is ONLY with Proc Sort sometimes the TAGSORT option can reduce the amount of temporary space used. Your trial with fewer variables does indicate a likely space limitation as part of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on the type of JOIN you may want to provide specific code examples. Filtering data early in a query instead of after the join generally reduces the space used (Cartesian joins such as " From a, b" may be right out with sets this big)&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 21:52:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-08-22T21:52:00Z</dc:date>
    <item>
      <title>ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829756#M24913</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a new SAS server on Linux running SAS9.4M7. We're on testing phase and we facing some issue when we process big tables (more than 20MM records and 100 columns).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running PROC SORT or JOIN using this table, we have the following erro:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ERROR: Expecting page 91595, got page-1 instead.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ERROR: Page validation error while reading WORK.TABLE&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ERROR: File WORK.TABLE.DATA is damaged. I/O processing did not complete.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have almost 11TB of free disk space on WORK. We ran the IOTest and the results it's ok, it was validated for SAS Technical consultant.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If, for example, we used a KEEP reading less columns (44 was the limited), the process runs ok. The weird situation it's we have other environment, Linux too but with SAS 9.4M5 and the process execute fine on that environment. We verified the ulimit values, and are the same between the environments. The MEMSIZE and SORTSIZE options are bigger in the new environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829756#M24913</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-22T21:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829757#M24914</link>
      <description>&lt;P&gt;Looks like you are running out of SAS user work space. Check user space quotas. Rerun the job and check space usage while it is running.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829757#M24914</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-08-22T21:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829758#M24915</link>
      <description>&lt;P&gt;I would look into any kind of workload management / quota system which may limit storage use by the user running the code.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829758#M24915</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-22T21:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829759#M24916</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;. How could I check the user space quotas? We didn't define any specific user quotas. In fact the process stop when rich almost 600GB of WORK space used.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829759#M24916</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-22T21:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829760#M24917</link>
      <description>&lt;P&gt;Proc Sort takes up about 3 times the size of the data set to sort as there is the original data, a temp data set that is cleaned up when the sort finishes and the final sorted set.&lt;/P&gt;
&lt;P&gt;If the issue is ONLY with Proc Sort sometimes the TAGSORT option can reduce the amount of temporary space used. Your trial with fewer variables does indicate a likely space limitation as part of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on the type of JOIN you may want to provide specific code examples. Filtering data early in a query instead of after the join generally reduces the space used (Cartesian joins such as " From a, b" may be right out with sets this big)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829760#M24917</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-22T21:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829762#M24918</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;. Yes, we know PROC SORT or SQL JOIN without index use a lot of disk space. But the weird situation is these particularly process, created by an enduser, runs ok on our environment with 9.4M5. It's a simple LEFT JOIN between 2 SAS tables. The first one is big, not the second one. The join is for 2 columns.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829762#M24918</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-22T21:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829763#M24919</link>
      <description>&lt;P&gt;If the dataset contains lots of wide character variables and is stored with the COMPRESS option, the utility files (which are uncompressed) can easily blow up your allotted disk storage.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 21:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829763#M24919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-22T21:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829766#M24920</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;. In fact, we made test with and without compress options. Because we are in testing phase, we have a lot of WORK area available, almost 11TB free. We monitored the free WORK space during executing and it never pass over 11% of usage.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We already have a ticket opened with SAS Support but, after more than 1 week we don't have any update on it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 22:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829766#M24920</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-22T22:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829767#M24921</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451"&gt;@MariaD&lt;/a&gt;&amp;nbsp;- Your evidence suggests that there is some user-related storage limit rule is being applied. Check these anyway. I don't know what flavour of linux you are using but here is a link to the RHEL 7 doc:&amp;nbsp;&lt;A href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-disk-quotas" target="_blank"&gt;https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/ch-disk-quotas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 22:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829767#M24921</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-08-22T22:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829772#M24922</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;. I'll share the notes with server admin, tomorrow morning, and let you know. As far as I know, there is no limit (quotas) per user, but we'll check it again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 22:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829772#M24922</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-22T22:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829851#M24929</link>
      <description>Could your large table(s) be corrupted? Are your old and new environments both using the large table from the same source / shared path? If the large table is a SAS dataset you could try a PROC DATASETS repair on it.</description>
      <pubDate>Tue, 23 Aug 2022 13:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829851#M24929</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-08-23T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829854#M24931</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;. Both tables are SAS and it created in previous steps. As test, we created 2 new big tables (totally random) and the same erro appears.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We also tested create a big file, directly on the filesystem (without SAS) to see if any erro appears after reach some size, but the file was created without any erro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We also reviewed the block size for both environment and it has the same definition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829854#M24931</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-23T13:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829930#M24933</link>
      <description>I suspect the table is not being created successfully in the prior step, and the JOIN or SORT is finding this corruption when it parses the entire data set. I might check your system log for file system errors during the creation phase. If the path where you are creating this large table is not local to the SAS session but a SAN or network share, the settings for that file system may need to be adjusted. I wonder if it's not done writing to the file system when we try to read it again with the JOIN/SORT.</description>
      <pubDate>Tue, 23 Aug 2022 16:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829930#M24933</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-08-23T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829941#M24934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating the test tables on WORK area. In one of my test, I created the tables first. Then opens it and navigate on each of them and everything were fine. After that test, closes the tables and I ran the JOIN process and the erro appears.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follows the program used for the test (it's very simple). If I run the program with 5 character columns and 130 numeric columns, it executes fine. But if I increase to 140 numeric columns the error appears.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET COL=5 ; 
%LET COL_N = 135;

DATA VALIDA;
  ARRAY VAR_(&amp;amp;COL_N);
  ARRAY STR_(&amp;amp;COL) $50.;
  DO j=1 TO 30000000;
     DO I=1 TO &amp;amp;COL_N;
       VAR_(i) = RANUNI(0);
     END;
     DO I=1 TO &amp;amp;COL;
         DO n=1 TO 40;
              SUBSTR(STR_(i), n) = BYTE(INT(65 + 26 * RANUNI(0))) ;
         END;
     END;
    OUTPUT;
  END;
RUN;

DATA VALIDA2;
  ARRAY VARI_(&amp;amp;COL_N);
  ARRAY STRI_(&amp;amp;COL) $50.;
  DO j=1 TO 30000000;
     DO I=1 TO &amp;amp;COL_N;
       VARI_(i) = RANUNI(0);
     END;
     DO I=1 TO &amp;amp;COL;
         DO n=1 TO 40;
              SUBSTR(STRI_(i), n) = BYTE(INT(65 + 26 * RANUNI(0))) ;
         END;
     END;
    OUTPUT;
  END;
RUN;

PROC SQL;
  CREATE TABLE VALIDA3 AS
  SELECT a.*,
                b.VARI_1,
                b.VARI_5
   FROM VALIDA a
   LEFT JOIN VALIDA2 B ON a.VAR_1 = b.VARI_2;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 17:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829941#M24934</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-23T17:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829946#M24935</link>
      <description>&lt;P&gt;So you do an SQL JOIN on two datasets with 30 million observations each?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With 140 numeric variables plus another 150 bytes in character variables a 30 million observation dataset is 41 Gigabytes.&lt;/P&gt;
&lt;P&gt;Multiple that by 30million observations from the second table and that is a million Terabytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have unique keys to the data or not?&lt;/P&gt;
&lt;P&gt;Much better to just use a MERGE to lookup values from a second dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   merge A (in=inA) B(keep=id extra1 extra2);
   by id;
   if inA;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Aug 2022 18:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/829946#M24935</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-23T18:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expecting page, got page -1 instead</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/830611#M24957</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally we unmounted, formatted and mounted again the filesystem and the problem was resolve. Thanks all for your support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ERROR-Expecting-page-got-page-1-instead/m-p/830611#M24957</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-08-26T14:42:09Z</dc:date>
    </item>
  </channel>
</rss>

