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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7. REXX Access to VSAM Files<br />

The <strong>NetView</strong> program provides two command processors that access VSAM files:<br />

v DSIVSMX defines, reads, and writes VSAM keyed files without using data<br />

services tasks. See “DSIVSMX: Generic Access to Keyed VSAM Files from REXX<br />

or Command Lists” <strong>for</strong> in<strong>for</strong>mation about this command processor.<br />

v DSIVSAM reads VSAM keyed files that are defined by <strong>NetView</strong> data services<br />

tasks. See “DSIVSAM: Access to Keyed VSAM Files Defined by <strong>NetView</strong> DSTs”<br />

on page 342 <strong>for</strong> in<strong>for</strong>mation about this command processor.<br />

The standard way to use both of these command processors is on a NETVIEW<br />

pipe stage. For more in<strong>for</strong>mation about the NETVIEW stage, see “PIPE NETVIEW<br />

” on page 167.<br />

DSIVSMX: Generic Access to Keyed VSAM Files from REXX or<br />

Command Lists<br />

The DSIVSMX command processor can define, read, and write VSAM keyed files<br />

directly from REXX without using data services tasks. This enables the<br />

implementation of VSAM applications, including end-use application development<br />

in REXX (in conjunction with the pipeline facility), and intensive VSAM<br />

diagnostics.<br />

The DSIVSMX command provides REXX access to keyed VSAM files and to<br />

IDCAMS, the VSAM Access Method Services utility.<br />

Samples CNMS8013 through CNMS8015 and CNMS8017 through CNMS8020<br />

illustrate the use of the DSIVSMX command.<br />

See <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> Command Reference Volume 2 (O-Z) or the <strong>NetView</strong><br />

online help <strong>for</strong> more in<strong>for</strong>mation about the DSIVSMX command.<br />

Using DSIVSMX with Alternate Index VSAM Files<br />

DSIVSMX can be used with alternate index VSAM files. Alternate index VSAM<br />

files can be defined, accessed, and deleted.<br />

Defining a VSAM File with Alternate Index<br />

When setting up an alternate index, follow these steps to build the base and index:<br />

1. Define the BASE cluster, using DSIVSMX IDCAMS with the VSAM DEFINE<br />

CLUSTER statements.<br />

2. Load the BASE cluster with the necessary in<strong>for</strong>mation (prime it), using<br />

DSIVSMX PUT requests.<br />

3. Define the AIX cluster, using DSIVSMX IDCAMS with the VSAM DEFINE<br />

CLUSTER statements.<br />

4. Define the PATH <strong>for</strong> the base and AIX clusters, using DSIVSMX IDCAMS with<br />

the VSAM DEFINE PATH statements.<br />

5. Build the Alternate Index cluster, using DSIVSMX IDCAMS with the VSAM<br />

BINDEX statements.<br />

© Copyright <strong>IBM</strong> Corp. 1997, 2011 341

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

Saved successfully!

Ooh no, something went wrong!