DATA Step, Macro, Functions and more

data step Error says file is corrupt.

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

data step Error says file is corrupt.

[ Edited ]

(updated)

My Base SAS program gives an error.

 

MPRINT(ADD_WGT_BREAKS):   data disc_info(drop = wgtbrk_flg compress=yes);
MPRINT(ADD_WGT_BREAKS):   merge disc_info(in=ok1) single_wgt_breaks(in=ok2);
MPRINT(ADD_WGT_BREAKS):   by prod_type disc_id dstcrgn kyprdtyp begwgt endwgt;

ERROR: An I/O error has occurred on file WORK.DISC_INFO.DATA.
ERROR: File WORK.DISC_INFO.DATA is damaged. I/O processing did not complete.
NOTE: The SAS System stopped processing this step because of errors.

 

 

It gives this repeatidly and in different programs. Our company recently mandidated that our tmp directory

change from

 

libname sastmp /usr/local/sas/tmp

to now be

libname sastmp /var/ourcompany/SAS/WORK/tmp/9.4

 

I am worried that this "new error" is from a tmp file being too large and not fitting in tmp area??

 

I did du -f and the drive isn't full, but perhaps the tmp file is gi-normous?

 

Am I crazy? What tests should I run? 

Thanks!

 

 

 

 

 

 

 

 


Accepted Solutions
Solution
‎03-04-2016 10:14 AM
Super User
Posts: 5,426

Re: data step Error says file is corrupt.

When you are back at work, it would be great if you deliver the complete message/log.

If the file system is full, SAS might clean up after the error, so if you do a du later it will probably not show the relevant disk availability.

So monitor as the job runs, and add

options fullstimer;

to ou program, and it will tell you more about resource consumption in each step.

Data never sleeps

View solution in original post


All Replies
Solution
‎03-04-2016 10:14 AM
Super User
Posts: 5,426

Re: data step Error says file is corrupt.

When you are back at work, it would be great if you deliver the complete message/log.

If the file system is full, SAS might clean up after the error, so if you do a du later it will probably not show the relevant disk availability.

So monitor as the job runs, and add

options fullstimer;

to ou program, and it will tell you more about resource consumption in each step.

Data never sleeps
Respected Advisor
Posts: 3,799

Re: data step Error says file is corrupt.

[ Edited ]
 
Contributor
Posts: 46

Re: data step Error says file is corrupt.

Posted in reply to data_null__
I was mixing work directories and tmp directories. Thanks for the tips! I will mark this closed.
Contributor
Posts: 46

Re: data step Error says file is corrupt.

the disk was full.  I had cked it, but I had to ck it every second during execution using "df".

 

thanks

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 384 views
  • 2 likes
  • 3 in conversation