This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
MainView Infrastructure: What is Best Practice to generate MainView Batch Reports?
The panel “Generate MainView Batch Reports JCL” gives you 16 lines to enter commands – but each line has a limit of 66 characters.
JCL Member name ===> MVBATCH1 Replace (Y/N)? YES
JCL Member Description ===> Example <===
Report format: ===> ASIS (ASIS or CSV)
Lines/Page: ===> 60 (ASIS format only)
PRODUCT ===> MVCICS (Prompt = PF4)
===> CON CAGA;CREGION;TIME * * 4H;INCL TIME;SORT JACT$INT.A)
===> CON ALL PLEXMGR;ALARMS;TIME * * *)
===> CON ALL PLEXMGR;ALHIST)
===> CON BMCB ICAP;LOGRALL;TIME * * 24H;WHERE LOREEVTC = 'DC*'
The common sequence for composing commands is:
- product (for command line one the product usually is determined by the initial prompt)
- determination time frame (TIME)
- selection criteria (WHERE)
- additional inclusions (DATE, TIME, SYSTEM, TARGET)
- SORT criteria
The behavior is comparable to using the same commands as in a MainView online terminal session.
===> TIME *-1 23:59 1D
===> INCL DATE
===> INCL TIME
If the 66-character limit is not sufficient to enter all the necessary commands and you don’t want to produce the output more than once, there is one more option:
Create a user customized view with the desired attributes
- Selection criteria (WHERE)
- Additional inclusions (DATE, TIME, SYSTEM, TARGET)
- SORT criteria
Another way to circumvent the limit of 66 characters is modifying the generated JCL statements. Example:
SETS LOGNUMREC 3000;SETS LOGSEARCHDIR 'FWD';+
SETS LOGSTARTDATE 2019/03/25;SETS LOGSTARTTIME 00:00;+
SETS LOGENDDATE 2019/03/25;SETS LOGENDTIME 23:59)
Here are some further examples of how to use the MVBATCH Utility:
===> SYSOVER;TIME *-1 23:59 24H;INCL TIME;INCL DATE;SORT JACT$INT.A
===> CSAREM;TIME * * *;WHERE CDRECSAU > 0;SORT CDRECSAU.D
===> CON ALL MVCICS;CREGION
===> CON SSP1 MVAO;AOEVENTS;WHERE AA20CNT >10000
===> CON SYSP CMF;JCPU;TIME 22MAR2019 06:00 12H;WH ASGNAME = 'HSM'
===> CON SYSP CMF;JCPU;WH ASGNAME = 'HSM';SORT JACT$INT.A
===> CON SYSP PLEXMGR;ALARMS;TIME * * *