Hi all,
I have the below piece of code,
%MACRO COPYREP(RNAME);
DATA OMDATA;
FILENM=&RNAME;
INFILE DUMMY FILEVAR=FILENM END=DONE MISSOVER LENGTH=LINELEN;
DO WHILE (NOT DONE);
INPUT @1 REC $VARYING200. LINELEN;
OUTPUT;
END;
DATA _NULL_;
SET OMDATA;
FBREC = SUBSTR(REC,2,133);
FILE OUT1 NOTITLES NOPRINT;
PUT @1 FBREC $CHAR133.;
%MEND;
Now the problem is SAS LOG says,
69161 RECORDS WERE WRITTEN TO THE FILE OUT1.
THERE WERE 69161 OBSERVATIONS READ FROM THE DATA SET WORK.OMDATA.
But when I actually check the output file, it contains lesser number of records (68010).
When I increase the space of the file OUT1 and run the code, it works fine. But my question is, if there was not enough space in the output file, it should have produced an error, but it is not. Please advise.