IBM Tivoli NetView for z/OS, Version 5.4

PIPE NETVIEW

Syntax

Read syntax diagramSkip visual syntax diagramNETVIEW:
 
|--NETVIEW--+--------------------------------------+------------>
            '-(-+----------+-+---------+-+-----+-)-'
                '-+-CGI--+-' '-NOPANEL-' '-MOE-'
                  '-ECHO-'
 
>--+----------+--+-----+----------------------------------------|
   '- cmdtext-'  '-TAG-'
 

Synonyms

Stage Name Synonym
NETVIEW NETV

Command Description

The NETVIEW stage specifies to run a NetView®, MVS™, or VTAM® command. The resulting messages are placed in the pipeline. The NETVIEW stage can be placed anywhere in the pipeline specification.

When NETVIEW is not a first stage, NETVIEW invokes a command once for each message on the input stream. Each time NETVIEW receives a message on its input stream, that message becomes the current message. The current message is the message to which NetView's message information functions refer. Thus, GETMLINE, MSGORIGIN(), DSIGETDS, or other message-dependent commands and functions issued by the command invoked by the NETVIEW stage access the message that caused the command to be invoked, exactly as they are if an automation table action or a MSGREAD operation had produced the current message. Also, NetView commands such as MSGROUTE that operate on messages have access to this current message.

Unlike many other stages, the NETVIEW stage does not require an output stream. This means that NETVIEW can be a last stage. Also, if a stage following NETVIEW were to be disconnected, NETVIEW continues to process as long as it had an input stream.

Streams

Stream Type Number Supported
Input 1
Output 1

Termination Conditions

The NETVIEW stage terminates when it finishes processing its output or when the input stream disconnects.

Operand Descriptions

cmdtext
Specifies the command.

If NETVIEW is the first stage, cmdtext is required.

If NETVIEW is not the first stage, cmdtext is optional. The command is run once for each message delivered by the previous stage. Every time the command runs, the input message becomes the current message during the processing.

If cmdtext is specified, the first blank-delimited token is considered to be the command name. Any additional tokens are passed with the command and become arguments to it.

If cmdtext is not specified, the NETVIEW stage extracts the first line of a message as the command and additional lines, if any, as data to be processed by that command. Any additional messages in the input stream are treated the same way.

In all cases, the original message becomes the current message while the command runs and is then discarded.

If the command name is not a valid NetView command or if no command is found, a return code of 4 is generated and message DSI002I is inserted into the output stream.

CGI
Use the CGI option for a command that can produce either a 3270 display or HTML, to inform the command that HTML is preferred. The direct effect of the CGI option is on the REXX function, CGI(), and causes the function to return a value of 1. CGI cannot be specified with ECHO.
ECHO
When ECHO is specified, the text of the command is written to the pipeline before the command is executed. ECHO cannot be specified with CGI.
MOE
Message on error (MOE) examines the return code from the command. If the return code is not zero, it inserts message DWO369I containing the return code into the stream after any messages the command might have returned. If you do not specify MOE (message on error), return codes from commands are ignored.
NOPANEL
When NOPANEL is specified, the command will not be allowed to display a full-screen panel. If it attempts to do so, message BNH113W will be inserted into the pipeline and the command will receive an I/O error code from NetView presentation services.

NOPANEL has restrictions when used with the ATTACH command. See the IBM Tivoli NetView for z/OS Command Reference Volume 1 (A-N) or the NetView online help for information about ATTACH.

TAG
The value for TAG is a 1 - 16 character string, which is placed in the IFRAUSRC field of each correlated response. This value overlays any previous value for the length given. If the value contains any blanks, commas, or equal signs, you must enclose the value within quotation marks.

Usage Notes

Return Codes

The following return codes are valid only when the MOE operand is used.

Return Code
Meaning
-4
Installation exit 03 generated USERDROP.
-500 to -599
Failure attempting to call installation exit 03. Please report specific return code to the IBM Software Support.
-108
Command is type=I or type=P.
-112
Command search failure, usually because the command is too long.
-116
ACCESS not authorized. Command authorization restrictions prevent processing.
-120
Command is type=D.

Other return codes indicate either a storage failure or the return code from the command. If there is a DSI124I message at the system console for this same time frame, you can assume the storage failure caused the non-zero return code (the code depends on the processing stage where the storage failure occurred). Otherwise, the return code was returned by the command.

Examples


[ Top of Page | Previous Page | Next Page ]