DATA Step, Macro, Functions and more

I/O Processing did not complete error

Posts: 53

I/O Processing did not complete error

Hi Everyone,


Quick thing , when i execute following sas code in SAS 9.3 Windows, it gives the error, please advise for possible solution, thanks:



NOTE: A utility file had to be opened due to a lack of memory.
PROC TRANSPOSE might run much faster if 97511007600 more bytes of memory were available.
ERROR: File DD.TEMP6.DATA is damaged. I/O processing did not complete.



data dd.temp5;
set dd.temp4;

proc transpose data=dd.temp5 out=dd.temp6 prefix=var;
var &varlist;

data dd.temp7;
set dd.temp6;
array vars[*] $ _all_;
do i=1 to dim(vars);
if len2=0 then N_FLAG=1; ELSE N_FLAG=0;
drop i;

proc transpose data=dd.temp7 out=dd.temp8;





Trusted Advisor
Posts: 1,848

Re: I/O Processing did not complete error

[ Edited ]
Posted in reply to dkanand86

can you run SAS session with system option memsize=0 ?

If yes - that will use maximum memsize the instalation enables.


You can't use this option in an open session, but only when you launch SAS.

Super User
Posts: 13,941

Re: I/O Processing did not complete error

Posted in reply to dkanand86

Since you have multiple proc transpose statements it would help to post the log results for the entire program. It would also help to show the value of any macro variables.


It may be a good idea to describe what this process is meant to accomplish as well.

Trusted Advisor
Posts: 1,394

Re: I/O Processing did not complete error

[ Edited ]
Posted in reply to dkanand86

You appear to be looking for character values which cannot be converted to numerics. You do this test over all vars in each row of the transposed data, setting NFLAG=1 if a convertable value occurs (else nflag=0).  But the problem (well one of the problems) is that you do this in sequence for ALL the variables, resetting NFLAG each time.  So NFLAG really only reflects the status of the last variable in each row,  (i.e. the last row of the original untransposed data set).


And then you transpose back, which by default transposes only the numeric vars (LEN, LEN2 and NFLAG), yielding pretty useless information.


So I guess what you really want is to check each column of the original data set, to see if there are any non-convertable values.  Consider this structure with improved improvised dataset HAVE.  It will (1) report to the log any vars with any non-convertable values, and (2) generate dataset BADCOUNTS with one row containing number of non-convertable values for each of the original variables:


filename tmp temp;  /* Type is TEMP so it will automatically be deleted */

data _null_;
  set have end=eod;
  array chr {*} _character_;
  array nbad {100}  _temporary_ (100*0);
  do I=1 to dim(chr);
    nbad{I}=nbad{I} + NOT(compress(chr{I},'.','d')=' ');

  if eod then do;
    file log;
    put 'These vars have at least one instance that cant be converted to numeric:';
    do I=1 to dim(chr);
      if nbad{I}>0 then put chr{I}=;
    file tmp;   /* Write the next PUT to this destination */
    put (chr{*}) (= ';')  ';';

options source2;  /* to print out code retrieved via the %include below */

data badcounts;
  %include tmp;




Ask a Question
Discussion stats
  • 3 replies
  • 4 in conversation