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.

MDPERFORM<br />

Syntax<br />

MDPERFORM str.expr [CAPTURING, dyn.array.var]<br />

[RETURNING, dyn.array.var] [RTNLIST int.expr] [PASSLIST int.expr]<br />

[PASSCOM]<br />

MDPERFORM str.expr [RETURNING, dyn.array.var]<br />

[CAPTURING, dyn.array.var] [RTNLIST int.expr] [PASSLIST int.expr]<br />

[PASSCOM]<br />

Description<br />

The <strong>UniBasic</strong> MDPERFORM command executes various UniData commands,<br />

sentences, or paragraphs within a <strong>UniBasic</strong> program while transferring lists to and<br />

from the executed commands.<br />

You can nest MDPERFORM. For example, in program A an MDPERFORM<br />

statement, which has a “CAPTURING var1” clause, invokes program B. Program B<br />

contains a second MDPERFORM statement that also has a “CAPTURING var2”<br />

clause. The output of programs A and B is sent to var1 and var2 respectively.<br />

You can nest only two MDPERFORM statements. To increase the number of nested<br />

levels:<br />

For the entire system – Enter a higher number for the udtconfig file variable<br />

MAX_CAPT_LEVEL.<br />

For this process only – Enter a higher number for the environment variable<br />

MAX_CAPT_LEVEL.<br />

Note: MDPERFORM does not pass select lists unless you explicitly specify them. In<br />

this way, you maintain full control and protection over them.<br />

STACKCOMMON<br />

The ECL STACKCOMMON command makes use of common areas more flexible,<br />

although it requires additional memory. STACKCOMMON settings have the<br />

following effects:<br />

1-466 <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!