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