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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PIPE VAR and PIPE $VAR<br />

Syntax<br />

VAR and $VAR:<br />

VAR<br />

$VAR<br />

(0)<br />

(COMMON)<br />

(TASK)<br />

(number)<br />

▼ name<br />

Command Description<br />

The VAR stage can be used anywhere in the pipeline specification.<br />

Streams<br />

When VAR is the first stage, records are read from the variable specified. Each<br />

record is passed as a single-line message to the pipeline output stream.<br />

When VAR is specified as a subsequent stage, lines are read from its input stream<br />

and are written to both the specified variables and to its output stream. The VAR<br />

stage ignores the multiline nature of the input. VAR stores data from the first line<br />

input into the first variable named, the second line into the second variable, and so<br />

on. All messages are passed unaltered to the secondary output, if connected.<br />

When all specified variables have been assigned, VAR writes subsequent messages<br />

directly to its output stream.<br />

The use of the VAR stage is limited to the command procedure environments<br />

(REXX, <strong>NetView</strong> command list language, and HLL). However, if the (COMMON)<br />

or (TASK) option is used, VAR can be invoked from message automation, by<br />

command originating at the PPT task or an optional task, or by using a labeled<br />

command originating in a command procedure. Use of the VAR stage outside of<br />

these environments results in message DSI290I and termination of the pipeline.<br />

By contrast, the STEM stage reads and writes to variables within a stemmed array.<br />

The $VAR stage is the same as VAR, except that it also reads or writes the VIEW<br />

attribute variables (which start with $) that are associated with the specified data<br />

variables. When $VAR is the first stage, the color and highlighting specified in the<br />

attribute variables are translated to the output messages. When $VAR is not the<br />

first stage, the color and highlighting attributes specified in the input messages are<br />

translated to the attribute variables.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 1<br />

PIPE VAR and PIPE $VAR<br />

Chapter 2. Pipeline Stages and Syntax 251

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

Saved successfully!

Ooh no, something went wrong!