returns .69897000433...
The following Embedded SQL example returns the base-10 logarithm values for the integers 1 through 10:
SET a=1
WHILE a<11 {
&sql(SELECT {fn LOG10(:a)} INTO :b)
IF SQLCODE'=0 {
WRITE !,"Error code ",SQLCODE
QUIT }
ELSE {
WRITE !,"Log-10 of ",a," = ",b
SET a=a+1 }
}