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

94 <strong>Programming</strong>: <strong>Pipes</strong><br />

If the template name cannot be found, message BNH883I is returned.<br />

CONSZERO (global order)<br />

Sets the 4-byte console ID to zero.<br />

COPY (global order)<br />

COPY is used when the input is a multiline message. COPY copies one or<br />

more lines from the input to the output. Unlike COPYREST, COPY copies<br />

beginning with the current line, in ascending order.<br />

One of the following parameters is required:<br />

*<br />

number<br />

Indicates all remaining lines in the input are to be copied.<br />

A non-negative number indicating the number of lines to be copied.<br />

COPY includes the current output line. If you want the first line of a multiline<br />

message to become the last line, you can code the following command stream:<br />

EDIT 1.* 1 /* get first line and output at position 1 */<br />

READLINE /* Get next line */<br />

COPY * /* copy lines 2 through end to output */<br />

WRITELINE /* write first line */<br />

The WRITELINE in this example is required because COPYREST cancels the<br />

implied WRITELINE created by the output order 1. See the description of<br />

WRITELINE <strong>for</strong> more in<strong>for</strong>mation.<br />

COPYREST (global order)<br />

COPYREST is used when the input is a multiline message. COPYREST copies<br />

all unread lines from the input to the output. It is the equivalent of coding the<br />

following process <strong>for</strong> all input messages minus one:<br />

READLINE<br />

1.* 1<br />

WRITELINE<br />

COPYREST does not affect or write the current output line. If you want the<br />

first line of a multiline message to become the last line, you can code the<br />

following process:<br />

EDIT 1.* 1 /* get first line and output at position 1 */<br />

COPYREST /* copy lines 2 through end to output */<br />

WRITELINE /* write first line */<br />

The WRITELINE in this example is required because COPYREST cancels the<br />

implied WRITELINE created by the output order 1. See WRITELINE <strong>for</strong> more<br />

in<strong>for</strong>mation.<br />

COPYREV (global order)<br />

COPYREV is used when the input is a multiline message. COPYREV copies<br />

one or more lines from the input to the output. Unlike COPY, COPYREV<br />

begins with the current line, copies the number of lines requested, and displays<br />

the output in reverse order.<br />

One of the following parameters is required:<br />

* Indicates all remaining lines in the input are to be copied.<br />

number<br />

A non-negative number indicating the number of lines to be copied.<br />

FINDLINE n (global order)<br />

Changes the current line to the absolute line number indicated by the

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

Saved successfully!

Ooh no, something went wrong!