MV VIEW


This command identifies the view to be used for accessing data.

Command

Parameters

MainView | MV VIEW

NAME(viewname)

[STEM(stemname)]

[DD(ddname)]

[PARMS(parm1...parm2...parmn)]

CHANNEL(channelname)

The following table describes the parameters:

Parameter

Function

Notes

NAME

view name that describes the request

1- to 8-characters alphanumeric

VIEW is an alias for this parameter.

STEM

stem name of a set of REXX variables containing the view definitions

1- to 26-characters alphanumeric

This parameter may be used to dynamically specify view contents. A root for a set of stem variables is specified. The variable root.0 contains the total count of stem variables. The actual view is contained in the variables root.1 through root. x. The syntax of the specified view is identical to that of the view normally found in the BBVDEF data set.

DD

DD name to use to access the view from the BBI-SS PAS

1- to 8-characters alphanumeric

Note that members that do not contain <VIEW> and <BASE> statements as the first two lines are ignored. However, the view search continues with the next DD in the view member search order.

The view member search order is as follows:

  1. The search begins with the STEM() parameter. If specified, the stem root named in the STEM() keyword is used as the source for the VIEW.
  2. If the STEM() keyword is not specified, the DD() parameter is checked. If it is specified, the DDname specified must be allocated to the MainView AutoOPERATOR PAS that runs the EXEC that executes this command. If the DD() parameter is not specified, the BBIPARM DD is used as the default.
  3. The next DD that is searched is BBVDEF, if it is allocated to the MainView AutoOPERATOR PAS that runs the EXEC.
  4. The next DD to be searched is the BBVDEF that is allocated to the CAS that is connected to the PAS by way of the CASID keyword in BBISSPxx.

For more information about BBVDEF, refer to the MainView Common Customization Guide.

PARMS

view parameters as specified with the view name on the command line or in a hyper link

Example

'IMFEXEC MV VIEW NAME(V926 152)'
'PARMS('P71DBDNM(IVPDB2)')'
'CHANNEL('MYCHANNEL')'

1- to 80-characters alphanumeric

Parameters in parentheses must be enclosed in quotation marks.

Note: Commands such as TIME, WHERE, and so on cannot be passed to a view with the PARMS parameter.

CHANNEL

token that identifies a previously connected channel

1- to 32-characters alphanumeric

Condition codes are listed in the following table:

Value

Description

0

The view was successfully read and parsed. It is available for subsequent GETDATA requests.

4

The specified view could not be read.

8

Bad stem variable specified. The specified variables could not be found.

12

The specified channel could not be found.

16

Syntax error detected or invalid parameters supplied.

Example

This example shows an EXEC that requests that view JOVER be read and parsed. The view is read from the target BBI-SS PAS. The connection is to use the previously connected channel whose token is contained in the variable JOBCHANNEL.

REXX EXEC example:

'IMFEXEC MainView VIEW NAME(JOVER) CHANNEL('JOBCHANNEL')'

CLIST example:

IMFEXEC MainView VIEW NAME(JOVER) CHANNEL(&JOBCHANNEL)

The following example demonstrates how the STEM() parameter may be used to dynamically specify a view:

/* REXX */                                                                 
'ALLOC F(VIEW) DA('BBI26.BAORAE.BBVDEF(PLEX1)') SHR REUSE'                 
address MVS                                                                
'EXECIO * DISKR VIEW (STEM DEFS. FINIS)'                                   
address IMFEXEC                                                            
'MV CONNECT MYCHANNEL MSG'                                                 
'MV CONTEXT PRODUCT(PLEXMGR) CHANNEL('MYCHANNEL')'                         
'MV VIEW STEM(DEFS) CHANNEL('MYCHANNEL') VIEW(PLEX1)'                      
'MV GETDATA CHANNEL('MYCHANNEL') ARRAY(RESULTS) REFRESH'                   
'MV RELEASE CHANNEL('MYCHANNEL')'                                          
'ARRAY DISC RESULTS NOSAVE'

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*