A critical sas dataset got damaged sometime this week. Process has been running for years without issues. I don't have backup of this dataset. Any idea how this can be fixed.
sas version used is SAS (r) Proprietary Software 9.4 (TS1M2)
Dataset resides in NetApp NFS file system. Any help will be highly appreciated.
ERROR: Expecting page 4913, got page -1 instead.
ERROR: Page validation error while reading *.*.DATA.
ERROR: File *.*.DATA is damaged. I/O processing did not complete.
NOTE: The SAS System stopped processing this step because of errors.
Take a binary copy of the damaged dataset, verify that you've got sufficient free disk space in the place where you want to repair your SAS file, then follow Repairing Damage to SAS Data Sets and Catalogs
From what you describe I'd try Proc Datasets/Repair ...but not convinced that it will help.
Even though you haven't taken a backup it might still be worth to contact your SAS admin or IT department. There are hopefully backup and recovery processes in place for the whole filesystem.
You have a CRITICAL dataset kept FOR YEARS WITHOUT A BACKUP???
What kind of asylum is this?
Anyway, even if you manage to repair the dataset so it becomes usable again, DO NOT USE IT, as information has been lost already. You need to recreate it from scratch by repeating its evolution from the start.
All that the REPAIR can do is to adapt the header information to the actual filesize, but it can not make missing dataset pages reappear out of the blue.
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.