# get the start time per source but only for the first time
if [ ${TBLNAME} = "PRODT_NM" ]
then
time_start=`date "+%x %X"`
fi
. . .
#get time end per source
time_end =`date "+%x %X"`
echo "time_end = ${time_end}" >> /tmp/prd_srcelog$$
. . . .
insert into ods.proc_slog values ('172','$time_end', sysdate+5, sysdate+6,0,'OKAY','200904',sysdate+7,'bpeck','test')
|