Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example of CVAFFILT Macro Sequences z/OS DFSMSdfp Advanced Services SC23-6861-01 |
|
The example below demonstrates the order that you might issue CVAFFILT macro calls to complete the following tasks:
The example assumes the following conditions:
To obtain an initialized CVPL, you could issue the following CVAFFILT
macro (list form—does not call CVAF). This example requests the branch
entry to CVAF and specifies that the caller is in supervisor state.
To obtain the first set of DSCB chains, you could issue the following
CVAFFILT macro (execute form—calls CVAF). This example specifies that
the filter save area is to be kept to allow for ACCESS=RESUME calls.
The IOAREA is to be kept for improved efficiency.
This CVAFFILT call returns the following DSCBs:
CVAF filter produces return code = 4, CVSTAT = X'40' (RESUME
recommended), and FCLDSCBR = 3. (CVAF returns a total of three DSCBs
for the two data sets.) CVAF would not return DSCBs for data set SYS2.B
because its chain contains more DSCBs than the total number of buffers
provided. To retrieve the DSCBs for SYS2.B, you need to specify at
least five buffers and execute another ACCESS=READ. (Even though CVAF
allows you to specify a different buffer list for each READ or RESUME,
or to modify the existing list between READ and RESUME calls, modifying
the FCL would cause unpredictable results.) Buffer entry 4 does not
have any DSCBs returned, because SYS4.D's DSCB chain size is larger
than the number of remaining buffers. The FCL status information would
be as follows:
Because this CVAFFILT invocation recommends RESUME, and you specified
FLTAREA=KEEP, you could use the following execute form of CVAFFILT
to obtain more DSCB chains:
This CVAFFILT call returns DSCBs as follows:
CVAF filter produces return code = 0, CVSTAT = 0 (request completed),
and updates the FCL status as follows:
FCLDSCBR would contain 4. (This CVAFFILT call returns a total of four DSCBs.) CVAF filter does not return any DSCBs for SYS6.F, because its format-1 DSCB cannot be found on the volume (FCLDSNST = '2'). Because this status indicates that CVAF filter has returned all
requested DSCBs, and you requested FLTAREA=KEEP and IOAREA=KEEP on
the previous call, request the RLSE function as follows:
|
Copyright IBM Corporation 1990, 2014
|