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.

Examples<br />

Example: Issuing a VTAM Command<br />

To issue the VTAM command V NET,ACT,ID=X displaying initial messages from<br />

the VARY command <strong>for</strong> 10 seconds and then routing any further messages <strong>for</strong> an<br />

additional 30 minutes, enter:<br />

EXCMD oper1 PIPE CORRCMD 10 V NET,ACT,ID=X<br />

| PERSIST 30 MINUTES ROUTE AUTHRCVR<br />

| CONSOLE<br />

The default action <strong>for</strong> CORRCMD VARY is PERSIST DISPLAY. In this example, the<br />

default action is overridden by the specified PERSIST stage. Only the specified<br />

PERSIST stage is activated.<br />

Example: Continuing Work During an Asynchronous Request<br />

To continue with other work while an asynchronous request completes, enter:<br />

’PIPE CPDOMAIN US<strong>IBM</strong>NT.RMTCP’,<br />

’| PERSIST 1 TRAP’<br />

/* other work here, including other pipe commands<br />

with their own waits or persists */<br />

/* we’ve been "waiting" some already... see if any<br />

more waiting is needed... */<br />

’WAIT 20 SECONDS FOR MESSAGES’<br />

IF EVENT() = ’M’ THEN<br />

do;<br />

’MSGREAD’<br />

/* act on msg from CPDOMAIN */<br />

end;<br />

PIPE PERSIST<br />

Chapter 2. Pipeline Stages and Syntax 181

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

Saved successfully!

Ooh no, something went wrong!