05-08-2013 06:21 PM
What tools do you have? sed should be able to do.
Since they are SAS programs why not use SAS to do it?
length infile outfile $200 ;
infile '*.sas' filename=infile ;
outfile = cats(infile,'.new');
file new filevar=outfile;
if _infile_^='DELETE THIS LINE;' then put _infile_;
05-09-2013 10:30 AM
If you use Tom's approach make sure the length, the $200, actually covers the length of ALL lines in the files.
I know that programs really shouldn't have lines that long but occasional things like datalines may exceed that expectation.