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.

WAKE.UP (WU)<br />

WAKE.UP (WU)<br />

The WAKE.UP; command is used to reactivate a Report suspended by a SLEEP; or<br />

CRITICAL.POINT; command. When a WAKE.UP; command is executed, a message is sent<br />

to the specified Report (if it is not running, the message is discarded). If multiple copies of<br />

the Report are running, each copy is sent a message. The WAKE.UP; command can be<br />

executed from a Report.<br />

Reports check for wake up messages when the following commands are executed:<br />

$ SLEEP;<br />

$ CRITICAL.POINT;<br />

When WAKE.UP; Commands Are Not Sent<br />

WAKE.UP; commands are not sent in the following circumstances:<br />

$ If the nominated Report is not running, the message is discarded.<br />

$ For an MCP based <strong>LINC</strong> System, the WAKE.UP; command is ignored in standalone<br />

Reports and in <strong>LINC</strong> Reports generated as Coroutines. See the CALL; command for<br />

details of Coroutines. .<br />

$ For an MCP based <strong>LINC</strong> System, if the Report currently has 63 outstanding input<br />

messages a WAKE.UP; command is not sent.<br />

$ For a UNIX <strong>LINC</strong> System, each message is sent if there are sufficient message queue<br />

resources to permit immediate queuing. Queues depend on user customization of the<br />

host and the current resource utilization.<br />

$ On all hosts, queued wake ups will not be recovered.<br />

Passing Parameters<br />

You can optionally specify a parameter of up to 254 characters, to be passed to the<br />

specified Report with the WAKE.UP message. The parameter can be specified using a data<br />

item name or literal. (In order to process the parameter data, the Report you are waking up<br />

must have been generated with a dataname on the Report Options screen, to contain the<br />

parameter data. For more details, see your <strong>LINC</strong> Generate Operations Guide.)<br />

If a parameter is passed, the System Data item GLB.PARAMFLAG is automatically set to Y,<br />

in the Report, to signal that there is parameter data included with the WAKE.UP;<br />

command. GLB.PARAMFLAG is reset to the appropriate value (which depends on whether<br />

data has been sent) at the next SLEEP; command or CRITICAL.POINT; command with<br />

SLEEP; command option.<br />

With the parameter you can also specify a data item to store the contents of GLB.STATUS.<br />

GLB.STATUS is set to (*****) if data is being passed but there is no eligible target Report.<br />

v 1-257

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

Saved successfully!

Ooh no, something went wrong!