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.

M CONSONANT<br />

T CONSONANT<br />

X CONSONANT<br />

Z<br />

Enter this command to eliminate each record's trailing blanks, join the records<br />

ending in VOWEL into a single message, substituting a comma <strong>for</strong> the word<br />

VOWEL, and join the records ending in CONSONANT into a single message<br />

substituting a comma <strong>for</strong> the word CONSONANT:<br />

PIPE < LETTERS<br />

| STRIP TRAILING / /<br />

| JOINCONT TRAILING / VOWEL/ / CONSONANT/ /, /<br />

| CONSOLE<br />

Response<br />

The output from the pipeline is in the <strong>for</strong>m of two messages:<br />

A, E, I, O, U<br />

M, T, X, Z<br />

PIPE JOINCONT<br />

Chapter 2. Pipeline Stages and Syntax 149

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

Saved successfully!

Ooh no, something went wrong!