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 PERSIST<br />

Syntax<br />

PERSIST:<br />

PERSIST minutes<br />

MINUTES<br />

DISPLAY<br />

ROUTE label:<br />

COMMAND cmd<br />

TRAP<br />

tText<br />

Command Description<br />

The PERSIST stage specifies the disposition <strong>for</strong> correlated output after a pipeline<br />

ends.<br />

Operand Descriptions<br />

PIPE PERSIST<br />

minutes<br />

Specifies the number of minutes that the PERSIST condition is active following<br />

the completion of the pipeline in which it is found. The range is 0 - 100,000.<br />

MINUTES<br />

Optional parameter, used only <strong>for</strong> readability.<br />

DISPLAY<br />

Indicates that the correlated output is to be displayed on the console of the<br />

task where the pipeline ran. The output messages can be automated.<br />

ROUTE<br />

Indicates that the correlated output is to be sent to the specified task.<br />

label:<br />

Specifies a valid label that can be used by the ROUTE stage.<br />

COMMAND<br />

Indicates that the specified command is to be run under the task where the<br />

pipeline ran.<br />

cmd<br />

Specifies the command to be processed.<br />

The command is invoked once <strong>for</strong> each message received by the PERSIST<br />

stage. When the command is invoked, the newly-received message becomes<br />

the current message and is available to the command through the use of pipe<br />

stage SAFE * or REXX functions such as MSGID.<br />

TRAP<br />

Specifies that messages are to be added to the message queue of the REXX<br />

procedure which called the pipeline containing the PERSIST TRAP stage. Such<br />

messages satisfy a REXX WAIT FOR MESSAGES command and are accessible<br />

to a MSGREAD command.<br />

See the sample usage of PERSIST TRAP under option 13 in sample CNMS1101.<br />

tText<br />

Specifies optional text to be written to the message queue as a last message at<br />

the time the persist completes. Note that MVS commands and the VTAM<br />

VARY command do not generally give an indication of completion. For these<br />

Chapter 2. Pipeline Stages and Syntax 179

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

Saved successfully!

Ooh no, something went wrong!