set verify off;
set wrap off;
set echo off;
set term off;
set heading off;
set Feedback off;
set pagesize 0;
set linesize 32767;
set trimspool on;
SPOOL $HOME/saspblua/bin/data/jst/SAS_JST_SETT_$mydate.txt;
select TFTXCODE || '#' || TFTERMID || '#' || TFTEACCT || '####' || TFMCCODE || '#' || TFTMCCODE || '##02#' || TFTXMONY || '#' || TFACMONY || '#' || TFTEACCT || '#061#0000#' || to_char(TFACCTDT,'yyyymmdd') || '#' || TFTERMNO || '#' || to_char(TFDATE,'yyyymmddhh24miss') || '#' || TFTXDETA || '##' || '0899999951' || '##' || to_char(TFMERCDT,'yyyymmdd') || '##' || TFCARDTYPE || '###' from sasictxflow where to_char(tfdate,'yyyymmdd') = $mydate and TFMCCODE='000456' and TFBIZINFO='006' and TFMERSTU='2';
SPOOL OFF;
exit