18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

LOOK.UP; GROUP<br />

Syntax<br />

LOOK.UP; GROUP<br />

The LOOK.UP; GROUP command is used to read Standard, Direct, or Table Component<br />

records into memory. It enables the following details to be specified:<br />

$ The order in which records are retrieved. Use FROM; to read the Component<br />

Ordinates are read in ascending order, or BACK; to read in reverse order.<br />

$ The initial record to be retrieved. This is defined by the start value that follows the<br />

FROM; or BACK; command option.<br />

$ The final record to be retrieved. This is defined by the end value that follows the<br />

UNTIL; command option. If the UNTIL; command option is not included, the loop is<br />

terminated when there are no more records.<br />

Note: The start and end values should not be altered within a LOOK.UP;<br />

GROUP loop.<br />

Caution<br />

The LOOK.UP; GROUP BACK; command will read at least one record (and lock it, if<br />

the SECURE; command option is used) to find out if there are any records in the<br />

specified range. This record will be locked until the end of the transaction. On an<br />

OS 2200 based <strong>LINC</strong> System, the lock is applied by page and, in the case of a<br />

structure containing 10 records only, for example, they will all be locked until the<br />

end of the transaction.<br />

The record left in memory is not defined when the loop of a LOOK.UP; GROUP command<br />

terminates automatically. The record will differ depending upon the type of host on which<br />

the <strong>LINC</strong> System is running. The current record will remain in memory following a BREAK;<br />

or JUMP.TO; command.<br />

DD DD DBD DBD DDD <br />

3 3<br />

@D DY<br />

DDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDBDDDDDDDDDDDDBDDDDDDDDDD <br />

3 3 3 3<br />

@D DD DDY @DD DY<br />

DDDDBDDDDDDDDDDDDDBDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDDD4<br />

3 3 3 3<br />

CDD DD4 @D DD DY<br />

3 3<br />

@DD DY<br />

start value<br />

A data item containing the starting value.<br />

v 1-161

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

Saved successfully!

Ooh no, something went wrong!