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.

Streams<br />

Server names on<br />

secondary input stream<br />

USER1 TCP1<br />

USER2 TCP2<br />

Figure 14. TSO Command Flow<br />

Figure 14 shows an example execution of a TSO command. Within a pipeline a<br />

NETSTAT command is duplicated using the DUP stage. Multiple NETSTAT<br />

commands become the primary input stream to the TSO command. From<br />

elsewhere in the pipeline, a secondary input stream is connected to the TSO stage.<br />

This secondary input stream contains records with the TSO user ID followed by a<br />

TSO server job member name.<br />

The TSO stage sends the NETSTAT command to all TSO server jobs on the<br />

secondary input stream. Responses are returned from TSO to the CORRWAIT stage<br />

following the TSO stage.<br />

Stream Type Number Supported<br />

Input 2<br />

Output 2<br />

Termination Conditions<br />

TSO terminates when the primary input stream and the primary output stream are<br />

disconnected. If followed by CORRWAIT, CORRWAIT automatically ends when<br />

the TSO command is completed and the response has been received.<br />

Operand Descriptions<br />

...<br />

| LITERAL "NETSTAT"<br />

| DUP *<br />

| TSO<br />

...<br />

Multiple NETSTAT commands<br />

on primary input stream<br />

| CORRWAIT<br />

NETSTAT Command<br />

Response<br />

TCP1<br />

TCP2<br />

PIPE TSO<br />

ECHO<br />

Write the command to the primary output stream prior to the execution of the<br />

command.<br />

Chapter 2. Pipeline Stages and Syntax 239

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

Saved successfully!

Ooh no, something went wrong!