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.

SKIPTO (global order)<br />

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

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

/string/ Indicates that the input orders consider the line to start 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 />

SKIPTO /FUN/<br />

SKIPTO /PIPES/<br />

WORD 6<br />

NEXT<br />

The line is processed as follows:<br />

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

SKIPTO /FUN/<br />

SKIPTO /PIPES/<br />

WORD 6<br />

And, the output is:<br />

BETTER!<br />

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

number. Number must be a positive number. Previous SKIPTO or UPTO<br />

orders are respected. For example, if the current line is:<br />

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

And, the edit script is:<br />

SKIPTO /USING/<br />

SKIPTO 2<br />

WORD 1<br />

NEXT<br />

The line is processed as follows:<br />

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

SKIPTO /USING/<br />

SKIPTO 2<br />

WORD 1<br />

And, the output is:<br />

SING<br />

PIPE EDIT<br />

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

the length of the input, none of the input is available to the input orders.<br />

UPTO is a complementary function to SKIPTO. Where SKIPTO 1 returns the<br />

entire line, UPTO 1 returns none of the line.<br />

See also UPTO and RESET.<br />

Chapter 2. Pipeline Stages and Syntax 99

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

Saved successfully!

Ooh no, something went wrong!