I dont know "execute_sql" but the statement is correct
Code:
echo '
select b.name[1,20],
sum(chksize) size,
round(100 - ((sum(nfree) / sum(chksize)) * 100))
pct_used,
round((sum(nfree) / sum(chksize)) * 100) pct_avail
from syschunks a, sysdbspaces b
where a.chknum = b.dbsnum
group by 1 order by 1;' | dbaccess sysmaster
Can you give me an error code or something like this?
(tested with 11.50.UC6DE)