Niraj,
1.] runacereport would be a ".ksh" file right ?
Doesn't really matter, but it is nice to make contents easily identifiable.
2.] "sacego myacereport > /somepath/somefilename"
so the command is ->
sacego altemp1.ace > /cpcusr/query/wrk/out/trial.txt
Looks fine
**** IMP ***
3.] if the ace report has some input clause, how do we pass parameters from this command.
Hmmmmmmm.
We were using 4GL which is obviously easier. I think the following should work using UNIX to take input from a file.
EXECUTE PROCEDURE aixa("/usr/local/runacereport par1 par2"
#!/usr/bin/ksh
#
export INFORMIXDIR=/usr/informix
export INFORMIXSERVER=...
export DBPATH=...
...
echo $1 > /tmp/params_$$
echo $2 >> /tmp/params_$$
sacego -q myacereport </tmp/params_$$ >/somepath/somefilename
rm /tmp/params_$$
You can leave out the rm for testing purposes.
Ade