03.03.2015 Views

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

CA Dynam for VSE User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General Reporting−DYNPRINT<br />

The DYNREAD Interface<br />

DYNREAD is the user module supplied with DYNPRINT. It is used by all<br />

programs operating under DYNPRINT control to access data from the <strong>CA</strong><br />

<strong>Dynam</strong> Catalog, disk VTOCs and to obtain access to <strong>CA</strong> <strong>Dynam</strong> System<br />

Adapter services. In order to create your own custom or as-needed reports,<br />

you need to understand how to use it.<br />

DYNREAD operates as a single interface between the <strong>CA</strong> Earl program and the<br />

various service providers. The <strong>CA</strong> Earl program, <strong>CA</strong> Earl runtime routines and<br />

DYNREAD communicate with each other through two data areas. These are the<br />

first two parameters passed by <strong>CA</strong> Earl to a file module. They are the function<br />

parameter list, also referred to by <strong>CA</strong> Earl as the record area, and the<br />

communications area. The first eight bytes of the function parameter list<br />

contain the function code and indicate the service required.<br />

On entry, DYNREAD analyzes the function code and invokes the service<br />

provider in the appropriate manner, passing the function parameter list<br />

according to the conventions supported by the service provider.<br />

Upon return, DYNREAD analyzes the function return code and sets indicators in<br />

the <strong>for</strong>m required by <strong>CA</strong> Earl to indicate whether the operation succeeded.<br />

These indicators and other return in<strong>for</strong>mation maintained by DYNREAD are all<br />

contained in the <strong>CA</strong> Earl/DYNREAD communications area. While it isn't<br />

required <strong>for</strong> <strong>CA</strong> Earl to analyze or process the <strong>CA</strong> Earl/DYNREAD<br />

communications area, a <strong>CA</strong> Earl-language definition of this area is supplied<br />

with DYNPRINT and is called EARLCOMM.<br />

The version of <strong>CA</strong> Earl supplied with <strong>CA</strong> <strong>Dynam</strong> does not support the use of<br />

any user modules other than DYNREAD. Nor does this version of <strong>CA</strong> Earl allow<br />

access to, or creation of, any data files other than through DYNREAD. If you<br />

have the fully functional version of <strong>CA</strong> Earl, then these restrictions do not<br />

apply to you. In all other respects the functioning of the <strong>CA</strong> Earl version<br />

supplied with DYNPRINT is identical to that of the fully functional version.<br />

DYNREAD is invoked as a standard <strong>CA</strong> Earl file module in the following<br />

manner:<br />

filename: FILE DYNREAD 300 RECORD = plist-size<br />

..<br />

..<br />

GET filename<br />

When <strong>CA</strong> Earl is invoked under the control of DYNPRINT, and DYNREAD is<br />

invoked by the <strong>CA</strong> Earl program with a function code equal to spaces,<br />

DYNREAD checks to see whether a request has been generated by DYNPRINT<br />

from report control statements. If so, DYNREAD copies the DYNPRINT request<br />

into the function parameter list area and uses it <strong>for</strong> processing as if it had<br />

been passed from the <strong>CA</strong> Earl program.<br />

9–14 <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!