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 />

Value EACSELOP Bit EACSELOP Value<br />

REPORT5 11 16<br />

REPORT6 10 32<br />

REPORT7 9 64<br />

REPORT8 8 128<br />

In addition, SELECT=ALL used with a custom report turns on all EACSELOP<br />

bits. To see how to take account of EACSELOP in your custom report, look at<br />

any of the standard report source books.<br />

To compile and execute the updated program under the control of DYNPRINT,<br />

replace the REPORT command with COMPILE. In all other respects the<br />

DYNPRINT syntax is identical. The source program must then be included or<br />

copied into the job stream immediately following the /* that terminates the<br />

DYNPRINT control statement stream. The DYNPRINT library must be in the<br />

source search list when DYNPRINT is executed and the COMPILE facility is used<br />

and the <strong>CA</strong> Earl source deck contains a COPY statement.<br />

Example<br />

Compile and execute a simple custom report.<br />

// EXEC DYNPRINT,SIZE=256K<br />

COMPILE CUSTOM01 REQ=SV<br />

/*<br />

USER '<strong>CA</strong> INTERNATIONAL, INC' !Top Report Heading<br />

<strong>CA</strong>I<strong>CA</strong>TL: FILE DYNREAD 300 RECORD=3232<br />

!Identifies the Catalog<br />

DEFINE INFOREC 1-3232 X<br />

!Defines the function PLIST<br />

COPY DYNINFOE USING INFOREC<br />

!Copies data definition<br />

SET DYNRQLEN = DYNINFLN<br />

GET <strong>CA</strong>I<strong>CA</strong>TL<br />

GOTO EOJ <strong>CA</strong>I<strong>CA</strong>TL = 'E'<br />

REPORT 'READ/WRITE ERRORS BY VOLUME' !Report # 1<br />

SELECT DYNRTCOD = 0 AND<br />

! Only successful retrieves<br />

DYGCDVCL = 'TAPE '<br />

! Only want tapes, not disks<br />

PRINT DYVVOL DYVSTAT DYGCCUU (DYVOOPNS) (DYVOERRS) (DYVIOPNS)<br />

(DYVIERRS) DYVDRINT DYVTCLN DYVDCLN DYVADAT DYVREELS DYVMODE2<br />

REPORT 'ERRORS BY CUU'<br />

SELECT DYNRTCOD = 0 AND ! Only successful retrieves<br />

DYGCDVCL = 'TAPE ' AND<br />

! Only want tapes, not disks<br />

(DYVOERRS > 0 OR DYVIERRS > 0)<br />

! Volumes with errors<br />

CONTROL DYGCCUU DYVOERRS DOWN DYVIERRS DOWN<br />

PRINT DYGCCUU (DYVOOPNS) (DYVOERRS) (DYVIOPNS) (DYVIERRS) DYVDRINT<br />

DYVTCLN DYVDCLN DYVADAT DYVREELS DYVMODE2 DYVVOL DYVSTAT<br />

END<br />

/*<br />

/&<br />

Chapter 9: <strong>CA</strong> <strong>Dynam</strong> Reporting Utilities 9–9

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

Saved successfully!

Ooh no, something went wrong!