CA Dynam for VSE User Guide

CA Dynam for VSE User Guide CA Dynam for VSE User Guide

supportcontent.ca.com
from supportcontent.ca.com More from this publisher
03.03.2015 Views

Reporting Commands Note that if you separate the fields onto individual lines, you are limited to defining the title for the first FIELDS statement. The second report puts data set name, volser and unit on one line; volser and unit are separated by 5 spaces. This line is followed by two blank lines. The report will look like this: NAME VOLUME UNIT (title) TEST.FILE1 SYSWK1 0160 (record 1) (blank line) (blank line) TEST.FILE1 SYSWK2 0167 (record 2) The third report puts data set name, volser and unit on one line. Fields are separated by 1 space by default. The report will look like this: VOLUME ----- D A T A S E T N A M E ------ SERIAL UNIT (default title) TEST.FILE1 SYSWK1 0160 (record 1) TEST.FILE1 SYSWK2 0167 (record 2) Note: • You cannot issue the FIELDS command for predefined reports. • Fields are printed in the order in which you specify them in the FIELDS command. • The length of each field differs and is listed along with the field definitions in the section "Report Fields." • Indicate spaces between fields with $SPn, where n is the number of spaces to insert. • If two fields are specified with no intervening $SPn, spaces are inserted between the fields. • To insert a blank line into the report, issue a FIELDS command with the single field name '$SP'. For example, FIELDS DSNAME VOLSER FIELDS $SP This prints the data set name and volser on one line. This is followed by one blank line. • If all or part of any field falls outside position 120, the field will be completely omitted. • Each FIELDS command defines a separate report line. If you issue more than one FIELDS command, each audit entry will have more than one output line on the report. 12–16 User Guide

Reporting Commands GENERATE Command The GENERATE command executes the report generation function using all commands issued since the previous REPORT command. No operands are required with this command. Note: GENERATE is required to print a report. It must be the last command entered for a given report. Example // JOB REPORTS // EXEC AUDTUTIL,SIZE=128K PROGRAM DYNAM/T REPORT DATASET MAINT GENERATE PROGRAM DYNAM/D REPORT TITLE 'VOLUME AUDIT REPORT' TITLE DSNAME 'NAME' TITLE VOLSER 'VOLUME' FIELDS DSNAME VOLSER SELECT (DSNAME TEST.FILE1) SELECT (DSNAME TEST.FILE3) GENERATE /* /& (2 predefined reports printed) (a customized report printed) INPUT Command The INPUT command specifies which Audit Trail data file is to be used for generating a report. If you omit all operands, the default is INPUT DATASET. The format of the command is shown below. INPUT [ DATASET ] [ ] [ TAPE=[SYSnnn] [MULTITAPE=nn] ] DATASET Optional parameter. Uses the Audit Trail file on disk for generating a report. DATASET is the default if no parameters are specified, or if the entire INPUT statement is omitted. Note: DATASET and TAPE are mutually exclusive. Chapter 12: Maintaining and Reporting on the Audit Trail 12–17

Reporting Commands<br />

Note that if you separate the fields onto individual lines, you are limited to<br />

defining the title <strong>for</strong> the first FIELDS statement.<br />

The second report puts data set name, volser and unit on one line; volser and<br />

unit are separated by 5 spaces. This line is followed by two blank lines. The<br />

report will look like this:<br />

NAME VOLUME UNIT (title)<br />

TEST.FILE1 SYSWK1 0160 (record 1)<br />

(blank line)<br />

(blank line)<br />

TEST.FILE1 SYSWK2 0167 (record 2)<br />

The third report puts data set name, volser and unit on one line. Fields are<br />

separated by 1 space by default. The report will look like this:<br />

VOLUME<br />

----- D A T A S E T N A M E ------ SERIAL UNIT (default title)<br />

TEST.FILE1 SYSWK1 0160 (record 1)<br />

TEST.FILE1 SYSWK2 0167 (record 2)<br />

Note:<br />

• You cannot issue the FIELDS command <strong>for</strong> predefined reports.<br />

• Fields are printed in the order in which you specify them in the FIELDS<br />

command.<br />

• The length of each field differs and is listed along with the field definitions<br />

in the section "Report Fields."<br />

• Indicate spaces between fields with $SPn, where n is the number of spaces<br />

to insert.<br />

• If two fields are specified with no intervening $SPn, spaces are inserted<br />

between the fields.<br />

• To insert a blank line into the report, issue a FIELDS command with the<br />

single field name '$SP'. For example,<br />

FIELDS DSNAME VOLSER<br />

FIELDS $SP<br />

This prints the data set name and volser on one line. This is followed by<br />

one blank line.<br />

• If all or part of any field falls outside position 120, the field will be<br />

completely omitted.<br />

• Each FIELDS command defines a separate report line. If you issue more<br />

than one FIELDS command, each audit entry will have more than one<br />

output line on the report.<br />

12–16 <strong>User</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!