11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXECUTE<br />

Syntax<br />

EXECUTE "str.expr" [[ASYNC | SYNC] ON connection [ON ERROR<br />

statements]] [PASSLIST list.num.expr] [RTNLIST list.num.expr]<br />

[CAPTURING dyn.array.var] [RETURNING dyn.array.var] [PASSCOM]<br />

Synonym<br />

PERFORM<br />

Description<br />

The <strong>UniBasic</strong> EXECUTE command executes an ECL or UniData SQL command<br />

from within a <strong>UniBasic</strong> program.<br />

You can execute multiple commands with a single EXECUTE statement by<br />

separating each command by attribute marks. When the EXECUTE statement<br />

executes, UniData separates each command and executes them in order.<br />

Note: The settings of UDT.OPTIONS affect the way ECL commands execute. For<br />

information about these options, see the UDT.OPTIONS <strong>Commands</strong> <strong>Reference</strong>. For<br />

information about UDT.OPTIONS that could affect that command, see the<br />

appropriate ECL command in the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />

Reminder: When you compile EXECUTE and PERFORM in BASICTYPE P, a<br />

different parser is used. The P-type parser scans a file of commands that are defined<br />

in the Spectrum-SMA standards or in the McDonnell Douglas REALITY ® operating<br />

system. If the command is found in this file, it is parsed using the P-type parser. If the<br />

command is not found in the REALITY file, it is parsed as if the program had been<br />

compiled with BASICTYPE U. Because all REALITY commands are uppercase, using<br />

lowercase commands will always result in the use of the standard UniData parser.<br />

If you want to execute a standard UniData, UniQuery, or ECL command from within<br />

a program compiled with BASICTYPE P, use the <strong>UniBasic</strong> command<br />

UDTEXECUTE.<br />

1-266 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!