UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Example In the following example, the program segment executes a UniData SQL statement and stores the output in an internal result file called SQL_INPUT. The READNEXTTUPLE statement then reads the records stored in SQL_INPUT until the last record item is read. The process converts the attribute marks to spaces and prints each record read. 1-634 UniBasic Commands Reference OUT.COMMAND = "SELECT NAME, ADDRESS, CITY" OUT.COMMAND := " FROM CLIENTS TO SQL_INPUT; " EXECUTESQL OUT.COMMAND DONE = 0 BPIOCP LOOP READNEXTTUPLE CLIENT.REC FROM "SQL_INPUT" ELSE DONE = 1 END UNTIL DONE DO CONVERT @AM TO " " IN CLIENT.REC CONVERT @VM TO","IN CLIENT.REC PRINT CLIENT.REC REPEAT END Related Commands UniBasic EXECUTE, EXECUTESQL UniData SQL SELECT – For information, see Using UniData SQL.

READSELECT READSELECT is a synonym for the READLIST command. For more information, see READLIST. Synonym READLIST READSELECT 1-635

READSELECT<br />

READSELECT is a synonym for the READLIST command. For more information,<br />

see READLIST.<br />

Synonym<br />

READLIST<br />

READSELECT 1-635

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

Saved successfully!

Ooh no, something went wrong!