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.

Attaching and Detaching Virtual <strong>OS</strong>Ts<br />

The <strong>NetView</strong> program provides an ATTACH command to create V<strong>OS</strong>Ts and a<br />

DETACH command to explicitly end V<strong>OS</strong>Ts. An ATTACH command must be<br />

executed in the code be<strong>for</strong>e the VET stage or command.<br />

Attaching V<strong>OS</strong>Ts<br />

V<strong>OS</strong>Ts, and the applications running on them, are started using the ATTACH<br />

command. The simplest <strong>for</strong>m of command that starts a V<strong>OS</strong>T to run NPDA code<br />

is:<br />

ATTACH NPDA<br />

Full-Screen Automation<br />

An ATTACH command, without a name, creates a V<strong>OS</strong>T that is dependent on the<br />

procedure group. A dependent V<strong>OS</strong>T terminates after all procedures in the<br />

procedure group terminate except under the following conditions:<br />

v A DETACH command <strong>for</strong> the V<strong>OS</strong>T is included within the procedure group.<br />

v The command running on the V<strong>OS</strong>T terminates.<br />

In both conditions, the V<strong>OS</strong>T detaches be<strong>for</strong>e all the procedures in the procedure<br />

group terminate.<br />

A name must be specified on the ATTACH command to create an independent<br />

V<strong>OS</strong>T. For example, to start an independent V<strong>OS</strong>T named RUN$NPDA running<br />

NPDA, code:<br />

ATTACH NAME RUN$NPDA NPDA<br />

The RUN$NPDA V<strong>OS</strong>T continues to run until NPDA terminates or the V<strong>OS</strong>T is<br />

specifically terminated using the DETACH command.<br />

V<strong>OS</strong>T names can be 1-8characters in length and must only contain uppercase<br />

and lowercase alphabetic characters, numbers, or the characters @, #, and $.<br />

Note:<br />

v Some commands are not valid <strong>for</strong> ATTACH. See the <strong>NetView</strong> online help <strong>for</strong> the<br />

ATTACH command <strong>for</strong> a list of commands that are not valid.<br />

v V<strong>OS</strong>Ts are accessible only from the owning task. In addition, dependent V<strong>OS</strong>Ts<br />

are accessible only from the procedure family in which they were attached.<br />

v The attached command is checked against the authority of the owner of the<br />

V<strong>OS</strong>T.<br />

v If you want to use NAME or DUMP as the <strong>NetView</strong> command running on the<br />

V<strong>OS</strong>T, consider:<br />

– If the <strong>NetView</strong> command you want to run on the V<strong>OS</strong>T is NAME, you cannot<br />

code:<br />

ATTACH NAME<br />

However, you can use the CMD command to start the <strong>NetView</strong> command<br />

NAME. For example:<br />

ATTACH CMD NAME<br />

To attach a V<strong>OS</strong>T called NAME that can run the <strong>NetView</strong> NAME command,<br />

code:<br />

ATTACH NAME NAME NAME<br />

– If the <strong>NetView</strong> command you want to run on the V<strong>OS</strong>T is DUMP, and you do<br />

not want to use the ATTACH DUMP keyword, you can use the CMD<br />

command to start <strong>NetView</strong> DUMP:<br />

Chapter 5. Full-Screen Automation 319

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

Saved successfully!

Ooh no, something went wrong!