28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

PIPE KEEP<br />

million seconds (nearly 4 months) or the value can be indicated by an<br />

asterisk, which means an indefinite timeout.<br />

Note: When a message is input to the KEEP, the timeout period is<br />

refreshed, even if a new timeout is not specified.<br />

APPEND<br />

Used when KEEP is not a first stage. APPEND indicates that messages<br />

already stored are to remain. By default, the KEEP is emptied if KEEP is<br />

not a first stage.<br />

SEIZE Used when KEEP is a first stage. It indicates that messages are taken,<br />

rather than copied from the KEEP. Use SEIZE to improve per<strong>for</strong>mance.<br />

SPILL Used when KEEP is not a first stage. When the KEEP expires, SPILL<br />

indicates to display messages in the KEEP. The messages are then subject<br />

to automation and message traps. If the KEEP expires because of a<br />

LOGOFF command or task termination, messages are routed to the<br />

authorized receiver.<br />

Usage Notes:<br />

1. When no exit option is selected and the KEEP already exists, the<br />

previous option remains in <strong>for</strong>ce. When the KEEP does not exist, the<br />

default action is N<strong>OS</strong>PILL.<br />

2. A task termination causes a timeout <strong>for</strong> a local keep. A global KEEP<br />

does not expire when a task ends, but only when the <strong>NetView</strong> program<br />

terminates.<br />

N<strong>OS</strong>PILL<br />

Used when KEEP is not a first stage. When the KEEP expires, N<strong>OS</strong>PILL<br />

indicates to discard messages in the KEEP.<br />

ENDCMD<br />

Used when KEEP is not a first stage. If ENDCMD is specified, the<br />

delimited string /cmd string/ (described below) is required. ENDCMD<br />

specifies what is to happen when the keep expires. A local keep expires<br />

when either a timeout occurs or when the task is terminated. A global keep<br />

expires when the <strong>NetView</strong> program terminates.<br />

When the keep expires, the specified command is invoked once <strong>for</strong> each<br />

message in the keep. For a local keep, the commands run at the task where<br />

the keep exists, For a global keep, the commands run at the task specified<br />

in the CNMSTYLE statement endcmd.autotask. For each invocation, the<br />

message being disposed is made to be the current message. Command<br />

invocation is at low priority, meaning non-preemptive. However, if CMD<br />

HIGH is specified as the first eight characters of the command string, then<br />

it is queued at high priority and preempts other procedures.<br />

When the local keep expires because a task ends, the command is invoked<br />

only if it is EXCMD or DOM (neither EXCMD nor DOM synonyms is<br />

honored, and no command is invoked if the <strong>NetView</strong> program is closing).<br />

Note that a global KEEP expires when the <strong>NetView</strong> program ends<br />

normally. A time period given by the CNMSTYLE statement<br />

endcmd.close.leeway. If the <strong>NetView</strong> program ends because of an abend,<br />

CL<strong>OS</strong>E ABEND, or system cancel command (abend), endcmd processing is<br />

terminated.<br />

/cmd string/<br />

A delimited string used only with the ENDCMD option. This string defines<br />

the command to be invoked with each message in the keep at termination.<br />

Chapter 2. Pipeline Stages and Syntax 151

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

Saved successfully!

Ooh no, something went wrong!