DATA Step, Macro, Functions and more

"attempt to reference a page past end-of-file" Error

Reply
Occasional Contributor
Posts: 8

"attempt to reference a page past end-of-file" Error

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?

Super User
Posts: 10,466

Re: "attempt to reference a page past end-of-file" Error

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).

Occasional Contributor
Posts: 8

Re: "attempt to reference a page past end-of-file" Error

: Thanks for the quick reply.

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.

PROC Star
Posts: 7,356

Re: "attempt to reference a page past end-of-file" Error

Have you simply run out of disk space?

Occasional Contributor
Posts: 8

Re: "attempt to reference a page past end-of-file" Error

: No, there is no dearth of disk space.

PROC Star
Posts: 7,356

Re: "attempt to reference a page past end-of-file" Error

Regular Contributor
Posts: 195

Re: "attempt to reference a page past end-of-file" Error

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...

New Contributor
Posts: 2

Re: "attempt to reference a page past end-of-file" Error

I had the same situation and it was linked with the fact that data file modified time was different than index modified time...

Ask a Question
Discussion stats
  • 7 replies
  • 2833 views
  • 0 likes
  • 5 in conversation