| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| SQL Object Commands | NO | NO | NO | All |
This command loads the contents of the SQL statement buffer into a specified field or variable. The field-name parameter can be any Omnis character field or variable. The buffer holds all SQL statements and text entered since the last Begin statement command which have not yet been executed. The square brackets and SQL functions will have been evaluated but the values of indirect @[] square bracket notation will not be available.
# Show the sql to the user before creating the# table MY_TABLE
CalculatelHostnameascon(sys(115),'mydatafile.df1')
DoiSessObj.$logon(lHostname,'','','MYSESSION')
DoiSessObj.$newstatement('MyStatement')ReturnslStatObj
DolRow.$definefromsqlclass('sMySchemaClass')
DoiSessObj.$createnames(lRow)ReturnslCreateNames
Begin statement
Sta:Create Table MY_TABLE ([lCreateNames])
End statementGet statementlStatment
Yes/No message{Execute [lStatment]}
If flag trueDolStatObj.$execdirect()
End If