open (WFH1, '>', "${basePath}/QueryResult4.txt") or die "$!"; run "$SQLPLUS \@${basePath}/VoucherQuery4.sql $startdate", undef, \*WFH1;