BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
lyssaw519
Calcite | Level 5

I'm receiving errors trying to read SAS datasets into base SAS 9.4 using the libname statement and data step. I have received different errors on separate runs of the same code, which I'll paste below. It's not the data itself because I've received these errors on a number of unrelated SAS datasets.

 

ERROR: File JDRF.ANALYSIS_3_2_17.DATA is damaged. I/O processing did not complete.

 

ERROR: Invalid header on file JDRF.ANALYSIS_3_2_17.DATA.

 

ERROR: Windows error code: 50 in hc_disk_normal_read for V:\research\Alwood\JDRF ACC\Mark
Peakman Data\analysis_3_2_17.sas7bdat, The request is not supported.
85 data biomarkers;
86 set jdrf.analysis_3_2_17;
ERROR: File JDRF.ANALYSIS_3_2_17.DATA is damaged. I/O processing did not complete.

 

An example of the code I'm using is below:

 

libname jdrf "V:\research\Alwood\JDRF ACC\Mark Peakman Data";

data biomarkers;
set jdrf.analysis_3_2_17;
run;

 

Any assistance in resolving this matter will be greatly appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Try REPAIR it. 

 

 

libname x v9 '/folders/myfolders/';

proc datasets lib=x;
repair have2 ;
quit;

View solution in original post

2 REPLIES 2
Ksharp
Super User

Try REPAIR it. 

 

 

libname x v9 '/folders/myfolders/';

proc datasets lib=x;
repair have2 ;
quit;
lyssaw519
Calcite | Level 5

That worked, thanks so much!!!

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2519 views
  • 0 likes
  • 2 in conversation