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

/string/. Previous SKIPTO or UPTO orders are respected. ONTO is<br />

similar to UPTO except that the target string is included in the new<br />

logical line.<br />

PAD (global order)<br />

Specifies the padding character to be used by subsequent orders. Examples of<br />

orders which use the padding character include the LEFT conversion order and<br />

the position output order.<br />

PAD must be followed by one-character value. This value can be specified as a<br />

delimited string, /char/, orasahexstring.<br />

The default PAD character is a blank.<br />

PARSE (global order)<br />

Specifies how the WORD input order counts words.<br />

C Indicates that all blank delimited tokens are counted as words.<br />

Q Indicates that tokens enclosed in single quotation marks are counted as<br />

words regardless of embedded blanks. The single quotation marks are<br />

removed from the parsed words. If the input data contains unbalanced<br />

quotation marks, only the data to the point where the error was<br />

discovered is returned.<br />

PARSE /string/<br />

PARSE /string/ specifies how subsequent work/token orders counts<br />

words. The characters in the specified string and only those characters<br />

are counted as token delimiters.<br />

Note: A parse order always cancels the effect of any previous parse<br />

order.<br />

For example, consider the following line:<br />

’PIPES ARE’ ’REALLY’ ’FUN’<br />

If PARSE Q is specified, this line contains 3 words:<br />

1. PIPES ARE<br />

2. REALLY<br />

3. FUN<br />

If PARSE C is specified, this line contains 4 words:<br />

1. 'PIPES<br />

2. ARE'<br />

3. 'REALLY'<br />

4. 'FUN'<br />

The default PARSE value is C.<br />

READCBE (global order)<br />

READCBE is used to switch the primary input to a multiline template message<br />

initialized by the CBETEMP order. If the CBETEMP order has not been used,<br />

no input is available <strong>for</strong> future edit orders to process. This order is used with<br />

READSRC to switch input sources. Using the two orders, EDIT phrases can be<br />

constructed to output part of a template, switch to the input message to fill in<br />

data such as message text, and then switched back to the CBETEMP input to<br />

construct the rest of the output.<br />

READLINE (global order)<br />

READLINE is used with multiline input messages. READLINE makes the next<br />

line of the multiline message available to the input orders. In the following<br />

Chapter 2. Pipeline Stages and Syntax 97

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

Saved successfully!

Ooh no, something went wrong!