FILTERVIEW

In subpanels that are reusing data from another subpanel, indicates which ZVIEWnn filter definition, or "view", to use.

FILTERVIEW=n

Parameters

Possible values
1 to maximum number of possible reuses
Default value
None
See also FILTERVIEWS.

Example

The following subpanel definition describes a subpanel that has 2 filtered views of a single query. The subpanel definition uses the FILTERVIEW keyword to indicate what view the subpanel is associated with.
<SUBPANEL>		  Subpanel containing the live query 
NAME=SUBPANEL1
QUERY='SELECT A,B,C FROM APP.TABLENAME'          
/***************************************************/   
FILTERVIEWS=2  Number of filtered views of this query in this workspace 
/***************************************************/        

<SUBPANEL>		Next subpanel 
QUERY=REUSE(SUBPANEL1)         This reaccesses data collected by SUBPANEL1 
/***************************************************/         
FILTERWHERE=LOCAL      
FILTERVIEW=1  ZVIEWnn system variable containing filter predicates   
<ONENTRY>
SET ZVIEW01=AIDS=1,SOS<>NO           Can be set/altered programmatically                        
<ONENTRYEND>
/***************************************************

<SUBPANEL>                  Next subpanel 
QUERY=REUSE(SUBPANEL1)         This reaccesses data collected by SUBPANEL1 
/***************************************************/         
FILTERWHERE=LOCAL      
FILTERVIEW=2          ZVIEWnn system variable containing filter predicates   
<ONENTRY>
SET ZVIEW02=CICSNAME=>CICSABCD,MAXOSCOR<=999    Can be set/altered programmatically                        
 /***************************************************/