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

messages that are issued in the immediate environment. Results are messages or<br />

other actions that are caused by the command, but not immediately or not <strong>for</strong><br />

the issuing environment.<br />

For example, the MSG command causes two messages, one output and one<br />

result. The DSI039I MSG FROM ... is a result. It is not trapped in the pipeline,<br />

even if sent to the same operator where the MSG command was issued. The<br />

DSI001I MESSAGE SENT TO... message is output and is trapped by the CORR=CMD<br />

parameter to the DSIMQS invocation pipeline <strong>for</strong> further processing by<br />

subsequent stages. Also, read about the CORRWAIT and PERSIST stages; see<br />

“PIPE CORRWAIT ” on page 54 and “PIPE PERSIST” on page 179.<br />

v The following commands are among those <strong>NetView</strong> commands supported:<br />

– User-written commands that use the CORR keyword on DSIPUSH, DSIFIND,<br />

or DSIMQS assembler macros. See the <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong><br />

z/<strong>OS</strong> <strong>Programming</strong>: Assembler <strong>for</strong> more in<strong>for</strong>mation about these macros.<br />

– MVS system commands issued from the <strong>NetView</strong> program, if extended<br />

multiple console support (EMCS) consoles are being used.<br />

For more in<strong>for</strong>mation about EMCS consoles, see the MVSPARM statement in<br />

the <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> Administration Reference.<br />

When using MVS to address commands to another subsystem (such as JES2),<br />

correlation depends upon that subsystem's proper use of the MVS CART<br />

message correlators and upon that subsystem's proper routing of response<br />

messages. If messages from another subsystem do not appear to be properly<br />

processed by your pipelines, contact the support representative <strong>for</strong> the<br />

subsystem being addressed to see if CART support is available on the version<br />

of the subsystem you are using.<br />

– ENDTASK. ENDTASK commands support correlation and can be used in<br />

cross-domain pipes <strong>for</strong> commands between <strong>NetView</strong> V3R1, or later, programs.<br />

ENDTASK commands to and from <strong>NetView</strong> programs be<strong>for</strong>e V3R1 can be<br />

executed in a <strong>NetView</strong> PIPE, but the response does not flow back through the<br />

PIPE.<br />

– RUNCMD. See <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Programming</strong>: REXX and the<br />

<strong>NetView</strong> Command List Language <strong>for</strong> more in<strong>for</strong>mation about using RUNCMD.<br />

– Other <strong>NetView</strong> commands that are correlated (those with displayable output).<br />

See PIPE HOLE <strong>for</strong> in<strong>for</strong>mation on determining if a command has correlated<br />

output.<br />

v If you have your own commands (user-written) that produce messages<br />

asynchronously, you can modify them so that they are supported by <strong>NetView</strong><br />

Pipelines. There are two ways to do this:<br />

– Correlation method.<br />

If your command solicits data from a DST or other <strong>NetView</strong> task by sending<br />

a command to that task by the DSIMQS macro, you can add an option. This<br />

option causes a correlator to be attached to the command that is sent. When<br />

the command runs, it can return correlated messages to the originating task<br />

by issuing DSIPSS TYPE=OUTPUT.<br />

– Long running command (LRC) method.<br />

You can use the long running command support provided by the <strong>NetView</strong><br />

program to change asynchronous messages into synchronous ones. Use<br />

DSIPUSH to make your command an LRC. However your data is returned to<br />

the originating task, it must be made available to your resume routine.<br />

Usually, this is done by causing a command to run at the originating task<br />

which can use DSIFIND to access rstorage that is accessible to the resume<br />

Chapter 2. Pipeline Stages and Syntax 169

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

Saved successfully!

Ooh no, something went wrong!