Hi all,
I'm new to writing scripts and I want to create a Shell Function within a
script as follows:-
recno()
{
SQL << DONE > /dev/null 2>&1
lines 0
select count(*) from TablStat
where TableID=$1
into $TMPFILE
/
DONE
<$TMPFILE read para1
para1=`expr $para1`
/bin/rm/ -f $TMPFILE
The above produces the error "syntax error at line 28 : `{' unmatched" whenQuote:}
the script is run as it does not understand the SQL statements.
If anyone can help with the problem it would be appreciated.
Thanks,
--
Remove NOSPAM when replying