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

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

’| DROP LAST 2’, /* trailer line and totals */<br />

’| PICK 14.5 < / 6/’,/* compare 5 chars from data with "6"*/<br />

’| CONSOLE’ /* display result */<br />

Notes:<br />

1. Because blanks are less than all numbers in EBCDIC order, the comparison<br />

works when a number in the data line is longer than one digit.<br />

2. Header and trailer lines can be restored to the output using FANINANY and<br />

the secondary outputs from the two DROP stages. However, the totals on the<br />

trailer lines no longer accurately reflect the data lines above them.

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

Saved successfully!

Ooh no, something went wrong!