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

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

Example: Using CHANGE with parameters from secondary input<br />

As an example of using parameters from secondary input, consider the following<br />

REXX program:<br />

/* Example program to show results of using a secondary input */<br />

/* stream on the CHANGE stage */<br />

changeSpec.1 = ’1.*’<br />

changeSpec.2 = ’CNM492I’<br />

changeSpec.3 = ’DISCONID output:’<br />

changeSpec.4 = ’22.4’<br />

changeSpec.5 = ’----’<br />

changeSpec.6 = ’opid’<br />

changeSpec.7 = ’35.6’<br />

changeSpec.8 = ’------’<br />

changeSpec.9 = ’consid’<br />

changeSpec.10 = ’49.8’<br />

changeSpec.11 = ’--------’<br />

changeSpec.12 = ’consname’<br />

changeSpec.0 = 12<br />

’PIPE (END %) NETV DISCONID’ ,<br />

’| A: CHANGE’ ,<br />

’| CONSOLE’ ,<br />

’% STEM changeSpec.’ ,<br />

’| A:’<br />

Output similar to the following output is produced:<br />

DISCONID output: OPERATOR ID CONSOLE ID CONSOLE NAME<br />

DISCONID output: ---opid---- --consid-- --consname--<br />

DISCONID output: NTVF0PPT EXTENDED NTVFTF0<br />

DISCONID output: AUTOAON EXTENDED AUTONF0<br />

DISCONID output: END DISPLAY

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

Saved successfully!

Ooh no, something went wrong!