I am running my SAS program in within Unix bash script shell script and getting the following message =>
Syntax error: unexpected end of file
I checked everything in the script and looks like it's correct. I did some research online, but this error is very common and may mean different error problems.
Please let me know if you see anything in this script incorrect.
$sas $mydir/sasprog1.sas >$plog/$filename
find $plog -type f -name $filename |while read file
RESULT= `grep $search $file`
if [["$RESULT" ==""]];
echo "Error(s) in $file: $RESULT" >> $outfile