Hi
I have now a mix with the ols and new Date In the cmod Tables ( Segments ) and I don't get the right output out of my Script.
If I do something like this
while read line
do
SQLCMDFIL="${var1}/${SQLDB}_${prjload}_cmdliste.sql"
SQLOUT="${var1}/${SQLDB}_${prjload}_outliste_${app}"
SQLUNLD="${var1}/${SQLDB}_${prjload}_unlo_${app}"
#
# SELECT 'table_1' AS table_name, COUNT(*) FROM table_1 UNION
cat ${SQLHEAD} >${SQLCMDFIL}
echo -e "spool ${SQLOUT}" >> ${SQLCMDFIL}
echo -e "select '#',Form,'#',Date,'#',LB1,'#',LB2,'#',LB3,'#' from "${SQLDB}"."${line}" where code = 99 ;" >>${SQLCMDFIL}
echo -e "spool off" >>${SQLCMDFIL}
echo -e "exit;" >>${SQLCMDFIL}
sqlplus -s ${Psqluser}/${Psqluserpwd} @${SQLCMDFIL}
cat ${SQLOUT}.lst >> ${var2}/${AGI}_${AGIA}_report
done < ${var1}/table.txt
Then I have this Output in my File
# FORM1 #
30-JUN-00 12.00.00 AM #
8576 # 777 # 00000000 #
With the old arsdate format the output was like this
# FORM1 # 30.07.2000 # 8576 # 777 # 00000000 #
Is it possible to get the same output with the new Date Format ??
thanks
Dani