Hi Friends,
I am new to the IBM-AIX World. Can any body, help me to understand what does the following script do?
---------
QUERY='echo $1 |tr "[A-Z]" "[a-z]".sql
#Create the body of SQL(OTXUP20.sql)
build ()
{
SQL='cat $YDEBTSQL/$QUERY'
cat $YDEBTSQL/insertCT.sql > $YDEBTSQL/OTXUP20.sql
if [ "$?" != "0" ]
then
exit 9
fi
echo "SQL" >> $YDEBTSQL/OTXUP20.sql
if ["$?" !="0"]
then
exit 9
fi
cat $YDEBTSQL/exit.sql >> YDEBTSQL/OTXUP20.sql
if ["$?" !="0"]
then
exit 9
fi
}
runit()
--------
Thanks lot in Adv
Regards
Shah
I am new to the IBM-AIX World. Can any body, help me to understand what does the following script do?
---------
QUERY='echo $1 |tr "[A-Z]" "[a-z]".sql
#Create the body of SQL(OTXUP20.sql)
build ()
{
SQL='cat $YDEBTSQL/$QUERY'
cat $YDEBTSQL/insertCT.sql > $YDEBTSQL/OTXUP20.sql
if [ "$?" != "0" ]
then
exit 9
fi
echo "SQL" >> $YDEBTSQL/OTXUP20.sql
if ["$?" !="0"]
then
exit 9
fi
cat $YDEBTSQL/exit.sql >> YDEBTSQL/OTXUP20.sql
if ["$?" !="0"]
then
exit 9
fi
}
runit()
--------
Thanks lot in Adv
Regards
Shah