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.

Selects the message if the first string being compared is greater than the second<br />

string.<br />

>= Selects the message if the first string being compared is greater than or equal<br />

to the second string.<br />

Usage Notes<br />

PAD<br />

Specifies a single character to be used to pad the shorter of the two strings<br />

be<strong>for</strong>e comparison. PAD is followed by:<br />

hexstring<br />

Specifies a one character hexadecimal string. A hexstring can be in either of the<br />

following <strong>for</strong>ms:<br />

'nn'X<br />

X'nn'<br />

Where each n is a number 0-9orcharacter A - F. Two values <strong>for</strong> n must be<br />

specified.<br />

The default PAD character is '00'X.<br />

/string/<br />

Specifies the delimited character string to be compared to the string specified<br />

by position.length.<br />

position.length<br />

Specifies the character position where comparison begins in each message and<br />

the length of the string being compared. If you specify a length of *, the<br />

remainder of the message is compared.<br />

/string/<br />

Specifies the delimited character string to be compared to the string specified<br />

by position.length.<br />

v PICK cannot be the first stage.<br />

v PICK examines only the first line of the input message. Use SEPARATE to test<br />

each line or EDIT to rearrange lines if other tests are required.<br />

Examples<br />

Additional examples can be found in CNMS1101.<br />

Example: Listing Procedures Used Less Than Six Times<br />

You can use PICK to process the output from MAPCL to obtain a list of all<br />

procedures in storage that have been used less than six times.<br />

MAPCL data lines are in the following <strong>for</strong>mat. The scale has been added to<br />

identify character positions.<br />

|...+....1....+....2....+....3....+....4....+....5....+....6..<br />

WINDOW 63 1446 71512 08/08/10 13:38:19 R<br />

/* sample <strong>for</strong> REXX */<br />

’PIPE (NAME LOWUSERX)’,<br />

’| NETVIEW MAPCL’, /* obtain display of REXX in storage */<br />

’| SEPARATE’, /* handle lines individually */<br />

’| DROP 3’, /* header lines */<br />

PIPE PICK<br />

Chapter 2. Pipeline Stages and Syntax 183

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

Saved successfully!

Ooh no, something went wrong!