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.

SYSTEM<br />

Syntax<br />

SYSTEM(expr)<br />

Description<br />

The <strong>UniBasic</strong> SYSTEM function retrieves certain system-level parameters set by<br />

<strong>UniBasic</strong> statements or by ECL commands such as SETPTR, TERM, and query<br />

statements.<br />

Note: The SYSTEM function is similar to the STATUS function and several of the<br />

@variables featured in Appendix B, “<strong>UniBasic</strong>@variables.” The SYSTEM and<br />

STATUS functions return the same values after execution of <strong>UniBasic</strong> commands and<br />

functions.<br />

Parameters<br />

expr must be a number from 0 through 16. If you specify 0, the value of SYSTEM is<br />

determined by a previously executed <strong>UniBasic</strong> command. If you specify a number<br />

from 1 through 16, UniData returns predefined system parameters as described in the<br />

following table. <strong>UniBasic</strong> returns the original value when expr is invalid.<br />

Parameter Description<br />

1 1 – PRINTER ON or (P) option is specified. Output is printed on the system<br />

printer.<br />

0 – Output is printed to the terminal.<br />

2 Current terminal or page size (width).<br />

3 Current terminal or page length (number of lines on page).<br />

4 Number of lines remaining on current page.<br />

5 Current printer page number.<br />

SYSTEM Parameters<br />

SYSTEM 1-893

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

Saved successfully!

Ooh no, something went wrong!