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.

UNIX commands are submitted under the UNIX user name equivalent to the<br />

<strong>NetView</strong> operator ID. The command is checked <strong>for</strong> authorization by UNIX<br />

according to the same rules that apply when the UNIX user name is directly<br />

logged-on.<br />

v When UNIX has an input stream, the command to be executed is read from the<br />

input stream. The message input to the UNIX stage at the time the UNIX<br />

command is scheduled is passed to the UNIX server <strong>for</strong> execution.<br />

When the input is a multiline message, the input data is available to the target<br />

command on its primary input.<br />

v A secondary output stream can be connected to receive command response<br />

codes. See “Return Codes” <strong>for</strong> in<strong>for</strong>mation on codes passed to this stream.<br />

If a tertiary stream is connected, message DSI037I is written to the tertiary<br />

stream. Message DSI037I contains the UNIX process ID created <strong>for</strong> each<br />

command.<br />

Note: DSI037I is logged even if a tertiary stream is not defined.<br />

PIPE UNIX<br />

Return Codes<br />

A secondary output stream can be connected to receive command response codes.<br />

Each code begins with a 10-digit, 0-padded, signed number. Nonzero codes<br />

indicate an error and are followed by a space and keyword indicating the source of<br />

the error such as +0000000100 PPI.<br />

The keyword can be one of the following:<br />

PPI An error occurred connecting to the <strong>NetView</strong> program-to-program interface<br />

or when sending the command to the destination.<br />

+0000000100<br />

Indicates a system abend occurred within PPI processing. This can<br />

occur when the Program-to-Program interface is canceled.<br />

+0000000104<br />

Indicates that a user abend occurred in PPI processing.<br />

For in<strong>for</strong>mation about other codes, see the <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong><br />

z/<strong>OS</strong> Application Programmer's Guide.<br />

UNIX An error occurred in UNIX operations supporting the command<br />

invocation. Immediately following the response code are the rc, retval,<br />

errno, and errnojr specific to the UNIX error. The <strong>for</strong>mat of the UNIX<br />

response code is −0000000000 UNIX rc, retval, errno, errnojr. For more<br />

in<strong>for</strong>mation about these codes, refer to the MVS OpenEdition library.<br />

−0000000001<br />

Indicates that an attempt was made to run the UNIX server in a<br />

non-UNIX/390 REXX environment.<br />

−0000000002<br />

Indicates that an unsuccessful call was made to DSIPHONE.<br />

−0000000003<br />

Indicates that the UNIX command failed.<br />

−0000000004<br />

Indicates that the server is unable to spawn child processes. The<br />

UNIX server terminates.<br />

Chapter 2. Pipeline Stages and Syntax 247

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

Saved successfully!

Ooh no, something went wrong!