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...
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.