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

Examples<br />

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

Note: Do not prohibit LOCAL access to the DSIOPEN and CNMPNL1 DDs.<br />

Example: Loading a Member from Disk into Storage, without<br />

Comments or Trailing Blanks<br />

’PIPE < CNMPNL1.MEMXYZ’,<br />

’| NLOCATE 1.1 /*/’,<br />

’| STRIP TRAILING’,<br />

’| INSTORE CNMPNL1.MEMXYZ COMMON REPLACE’,<br />

’| APPEND NETV BR CNMPNL1.MEMXYZ’<br />

Attention: NLOCATE 1.1 /*/ must be used with caution. An asterisk might not<br />

indicate a comment in every member and stripping these lines can invalidate the<br />

instore version.<br />

Example: Unloading a Member from Storage (with a Return<br />

Code)<br />

’PIPE (END ;) A: INSTORE CNMPNL1.MEMXYZ COMMON;’,<br />

’A: | CONS’<br />

Example: Hiding a Member within a Procedure Family<br />

’PIPE HOLE|INSTORE DSICLD.C1 LOCAL|APPEND NETV BR DSICLD.C1|CONS’<br />

Example: Managing Member Loading<br />

See CLIST CNME1054 (MEMSTORE).<br />

Example: Ending the INSTORE if 'END' is Found at the Start of<br />

an Input Line<br />

ARG MEM<br />

’PIPE (END ;) < ’MEM, /*Read mem in */<br />

’| A: NLOC 1.3 /END/’, /*If not END line, send to INSTORE*/<br />

’| B: INSTORE DSIPARM.TEST7 COMMON REPLACE’,/*Load COMMON */<br />

’| HOLE’, /*End pipe 1 */<br />

’; A: ’, /*END comes here... */<br />

’| B:’, /*back to INSTORE secondary-input */<br />

’| CONS’ /*Output INSTORE’s return code */

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

Saved successfully!

Ooh no, something went wrong!