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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PIPE FANINANY<br />

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

All records containing BAKER are truncated after 22 characters. The truncated<br />

records are input to FANINANY.<br />

All other names, which are not SMITH or BAKER, are passed to FANINANY.<br />

Unlike the FANIN example under “Example: Process a List of Names” on page<br />

125, in this FANINANY example, the names in the NAMES. stem are in the same<br />

order as the records read from the data set.<br />

PIPE (END ¬) < NAMELIST<br />

|A:LOCATE /SMITH/<br />

|CHANGE /TOMMY/TOM/ PRIMARY FANINANY INPUT STREAM<br />

|B:FANINANY<br />

|STEM NAMES.<br />

¬A:<br />

|C:LOCATE /BAKER/<br />

|CHOP 22<br />

|B: SECONDARY FANINANY INPUT STREAM<br />

¬C:<br />

|B: TERTIARY FANINANY INPUT STREAM<br />

Note: The double connector C:|B: is used to connect the secondary output of<br />

LOCATE /BAKER/ to the tertiary input of FANINANY.

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

Saved successfully!

Ooh no, something went wrong!