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

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

TOPLINE (global order)<br />

Cancels all previous READLINE orders and per<strong>for</strong>ms a RESET. Input is set to<br />

the first line of the multiline message.<br />

TOPLINE is a complementary function to LASTLINE. Where TOPLINE sets the<br />

input to the first line, LASTLINE sets the input to the last line of the multiline<br />

message.<br />

See also LASTLINE.<br />

UPTO (global order)<br />

Sets the logical end of the line <strong>for</strong> input orders position.length and WORD to be<br />

a point other than the last character in the line.<br />

/string/ Indicates that the input orders consider the line to end at the given<br />

/string/. Previous SKIPTO or UPTO orders are respected. For example,<br />

if the current line is:<br />

PIPES ARE FUN. PIPES USING EDIT ARE EVEN BETTER!<br />

number<br />

And, the edit script is:<br />

UPTO /FUN/<br />

WORD -1<br />

NEXT<br />

The line is processed as follows:<br />

PIPES ARE FUN. PIPES USING EDIT ARE EVEN BETTER!<br />

UPTO /FUN/<br />

WORD -1<br />

UPTO 21<br />

WORD -1<br />

And, the output is:<br />

ARE<br />

Indicates that the input orders consider the line to end at character<br />

number. Number must be an unsigned, positive number. Previous<br />

SKIPTO or UPTO orders are respected. For example, if the current line<br />

is:<br />

PIPES ARE FUN. PIPES USING EDIT ARE EVEN BETTER!<br />

And, the edit script is:<br />

UPTO 21<br />

WORD -1<br />

NEXT<br />

The line is processed as follows:<br />

PIPES ARE FUN. PIPES USING EDIT ARE EVEN BETTER!<br />

And, the output is:<br />

PIPES<br />

If the /string/ is not in the input, or a number is specified which is larger than<br />

the length of the input, all of the input is available to the input orders.

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

Saved successfully!

Ooh no, something went wrong!