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.

SQSELECT - Format a Query<br />

DSIDB2MT task, ensure any SQL requests that do not specify which DB2 to<br />

access are accessing the same DB2. A new parameter (SSIDssidname |*) on the<br />

SQL stage defines whether a specific or the default DB2 is accessed. When an<br />

SQL stage defines a subsystem to be accessed, that subsystem remains in effect<br />

<strong>for</strong> that task until you reset it by using another SQL stage.<br />

v The DSIDB2MT task must be started if you want to define a default DB2 <strong>for</strong> the<br />

<strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> address space. This task connects the <strong>Tivoli</strong> <strong>NetView</strong><br />

<strong>for</strong> z/<strong>OS</strong> system to a specific DB2 subsystem so that any task in the <strong>Tivoli</strong><br />

<strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> address space has access to DB2 unless the SQL stage<br />

specifies otherwise.<br />

– Running the RRS level of interfaces requires MVS system definitions.<br />

– RRS requires a sysplex; this can be a single system monoplex.<br />

– It does not require a coupling facility if RRS is installed with the DASD only<br />

logging option. This requires a COUPLExx sysparm member which identifies<br />

the COUPLE and LOGR data sets.<br />

– Define CFRM data sets if you need them. RRS requires 4 logs and has an<br />

additional optional one. They are an ARCHIVE, MAIN.UR, DELAYED.UR,<br />

RESTART, and RM.DATA. The z/<strong>OS</strong> MVS <strong>Programming</strong> Resource Recovery<br />

describes these logs.<br />

– To enable the DASD only logging option, you might need to upgrade to<br />

<strong>OS</strong>/390 Release 4 and apply the following APAR: OW30206, PTF # UW43930.<br />

The upgrade to <strong>OS</strong>/390 requires an upgrade to VTAM Version 4 Release 4.<br />

– To start RRS, you can add it to the COMMNDxx system parameter member<br />

or add it to your automation.<br />

SQSELECT <strong>for</strong>mats a query to be displayed on a terminal. The filter takes a query<br />

as the argument, describes the query, and <strong>for</strong>mats the result. In the following<br />

example, the first line of the response contains the names of the columns padded<br />

with hyphens to their maximum length. The remaining lines represent the result of<br />

the query.<br />

The SSID DB2 option is supported <strong>for</strong> SQSELECT, which passes the value to the<br />

underlying SQL stages <strong>for</strong> example:<br />

SQSELECT (SSID DB2) project_name from projects<br />

PROJECT_NAME---<br />

BLUE MACHINE<br />

GREEN MACHINE<br />

ORANGE MACHINE<br />

RED MACHINE<br />

WHITE MACHINE<br />

pipe SQL describe select salary, name from staff | console<br />

484 DECIMAL 8,2 5 SALARY<br />

449 VARCHAR 9 11 NAME<br />

SQSELECT salary, name from staff where years is null<br />

SALARY--- NAME-----<br />

96808.30 GRUMPY<br />

93504.60 BASHFUL<br />

92954.75 SLEEPY<br />

91508.60 DOPEY<br />

Using <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> SQL Stages <strong>for</strong> Access to DB2<br />

Chapter 6. Using <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> SQL Stages <strong>for</strong> Access to DB2 335

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

Saved successfully!

Ooh no, something went wrong!