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.

PIPE NETVIEW<br />

Usage Notes<br />

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

If the NETVIEW stage is the first stage, cmdtext is required.<br />

If the NETVIEW stage is not the first stage, cmdtext is optional. The command<br />

is run once <strong>for</strong> each message delivered by the previous stage. Every time the<br />

command runs, the input message becomes the current message during the<br />

processing.<br />

If cmdtext is specified, the first blank-delimited token is considered to be the<br />

command name. Any additional tokens are passed with the command and<br />

become arguments to it.<br />

If cmdtext is not specified, the NETVIEW stage extracts the first line of a<br />

message as the command and additional lines, if any, as data to be processed<br />

by that command. Any additional messages in the input stream are treated the<br />

same way.<br />

In all cases, the original message becomes the current message while the<br />

command runs and is then discarded.<br />

If the command name is not a valid <strong>NetView</strong> command or if no command is<br />

found, a return code of 4 is generated and message DSI002I is inserted into the<br />

output stream.<br />

CGI<br />

Use the CGI option <strong>for</strong> a command that can produce either a 3270 display or<br />

HTML, to in<strong>for</strong>m the command that HTML is preferred. The direct effect of the<br />

CGI option is on the REXX function, CGI(), and causes the function to return a<br />

value of 1. CGI cannot be specified with ECHO.<br />

ECHO<br />

When ECHO is specified, the text of the command is written to the pipeline<br />

be<strong>for</strong>e the command is executed. ECHO cannot be specified with CGI.<br />

MOE<br />

Message on error (MOE) examines the return code from the command. If the<br />

return code is not zero, it inserts message DWO369I containing the return code<br />

into the stream after any messages the command might have returned. If you<br />

do not specify MOE (message on error), return codes from commands are<br />

ignored.<br />

NOPANEL<br />

When NOPANEL is specified, the command does not display a full-screen<br />

panel. If it attempts to do so, message BNH113W is inserted into the pipeline<br />

and the command receives an I/O error code from <strong>NetView</strong> presentation<br />

services.<br />

NOPANEL has restrictions when used with the ATTACH command. See the<br />

<strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> Command Reference Volume 1 (A-N) or the <strong>NetView</strong><br />

online help <strong>for</strong> in<strong>for</strong>mation about ATTACH.<br />

TAG<br />

The value <strong>for</strong> TAG is a1-16character string, which is placed in the<br />

IFRAUSRC field of each correlated response. This value overlays any previous<br />

value <strong>for</strong> the length given. If the value contains any blanks, commas, or equal<br />

signs, you must enclose the value within quotation marks.<br />

v It is important to distinguish between the output of a command and the results<br />

of the command. The NETVIEW stage causes the output of a command to be<br />

trapped within the pipeline, but the results, generally, are not. Output consists of

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

Saved successfully!

Ooh no, something went wrong!