I am getting the "attempt to reference a page past end-of-file" error when trying to read in a dataset using data step. Can anyone explain me as to what it is and how to overcome it?
Post your code.
Basically you have an instruction that is trying to read from a file after encountering the end. There are a number of causes but your code will make it easier to address the specific cause(s).
it is a simple data step and is in the following format:
data xyz1;
set xyz;
where abc = ABC and XXX in ('a','b','c');
lmn = INPUT(prq,YYMMDD10.); /*Defining a new variable*/
run;
There are two different data sets for two different years; and in the program there are two data steps of same kind(as above), reading information from the two different sets. The program is working fine till the initial year dataset but is giving the above error when reading dataset of later year.
Have you simply run out of disk space?
Take a look at: 9374 - "Read-access violation" and "Referencing page on WORK._TFxxxx.ITEMSTOR"error messages appear
Could it be relevant to your situation?
Can anyone please guide me what to do for the following error:
ERROR: Attempt to reference a page past end-of-file
I am facing this error whenever I am referencing the dataset...Because of this all my analysis gets affected...Please help me to resolve as early as possible...
Thanks in advance...
I had the same situation and it was linked with the fact that data file modified time was different than index modified time...
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.