| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| SQL Object Commands | NO | NO | NO | All |
This command marks the end of a block of Sta: commands that build the SQL buffer for the current method stack. The Begin statement command defines the start of the block.
# Open a multi-threaded omnis sql connection to# the datafile mydatafile and create a statement to# select rows from the table Customers
CalculatelHostnameascon(sys(115),'mydatafile.df1')
DoiSessObj.$logon(lHostname,'','','MYSESSION')
DoiSessObj.$newstatement('MyStatement')ReturnslStatObj
Begin statement
Sta:Select * From Customers
Sta:Where Cust_ID > 100End statement
DolStatObj.$execdirect()
DolStatObj.$fetch(lMyList,)