Professional Documents
Culture Documents
https://community.bmc.com/s/question/0D53n00007aDtMeCAK/controld-backup-mission-not-
flagging-reports-to-backed-up
--------------------------------------------------------------------------------------------------------------------------
I have to create a list of all reports that have been loaded during the last days for a
specific user. So I search the user reports (Active/Migrated) for user = xy and date from
281116 to 011216.
Use utility such as CTDUFPRT. Check the manuals for all the available options.
e.g.:
//STEP010 EXEC CTDUFPRT
//DAREPORT DD DSN=dsname,DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
FILE=ACT
RECORD=U
USER=xy
DECFROM=28/11/16
DECTO=01/12/16
PRINTFORM=REPORT
FIELD=JOBNAME
FIELD=REPORT
FIELD=DATE
FIELD=PAGES
JCL Example:
https://community.bmc.com/s/question/0D53n00007aDn09CAC/controldv-export-index-result-to-
dsn
--------------------------------------------------------------------------------------------------------------------------------
IMP POINTS:
For more information about moving reports to the History file, check out utility
CTDDELRP
For more information about removing reports from the History file, check out
utility CTDCLHST.
PRINT/CDAM PARMS = ALLOCOPT=JOBSDSN1
Combines all Sysout gathered by this mission into one CDAM file.
DO NAME= %%JOBNAME(1,8)
Sets the report name to the first eight characters of the job name for each report.
DO INDEX= JOBNAME_DDNAMES
Creates a special index structure that consists of a primary index named JOBNAME and a sub-index
named DDNAMES. The primary index has a single value comprised of fixed-length fields separated
by blanks, as listed in the next table below.
Assign Defaults
First define the default parameters for the job. The job defaults apply to all the reports that
you are handling from the batch job. If you want different default values for specific reports
within the job, you can override job defaults with report defaults.
CDAM KA:
1. By default, the CTDPARM member with parameter JB1PREF is used to create CDAMs in
the following format:C900DJ1.JOBSDB.J05768.D2420943.S91.N000500
2. The other place to use is the PRINT/CDAM PARMS parameter in the Decollation
Definition.
Example: PRINT/CDAM PARMS = PREFIX=C123DJ1
The CDAM will look like: C123DJ1.JOBSDB.J05768.D2420943.S91.N000500
Note: You should have an Alias for the prefixes that will be created.
------------------------------------------------------------------
When the CDAM file is initially created the space allocation is not 1000 blocks so lots of small
CDAMS are being created by these generic missions.
CAUSE
Optional - Specific technical discrepancy if known, only if it will help reader determine if the
article applies.
Incorrect setting of parameter EAVUSE#D in CTDPARM
SOLUTION
Numbered list of steps to perform to resolve issue.
The problem is parameter EAVUSE#D=OPT in CTDPARM. After changign it to NO and re-cycling
the CDAM subsystem (IOATERM/IOASINIT) the CDAM datasets went back to being 1000 blocks
and multi-job.
Noted that the dataset attributes have changed too, with OPT they have the SMS extended
attribute flag set to OPT and this is blank when EAVUSE#D=NO.
The EAVUSE parameter initiates the special primary space calculation for the CDAM files. The size
of the primary space is calculated to include the entire decollated sysout. The special primary
space calculation is not initiated if the BLOCKS parameter is explicitly specified for the
corresponding ON CLASS or ON TRNCLASS block.
As a workaround you can specify BLOCKS=1000 in the mission until you can make the change to
the EAVUSE parameter.
-----------------------------------------------
Figure 11 Default Parameter Lines
DEF COPIES LVL USER DEST MAX COPIES
===========================================================================
If there are any unidentified pages, you can assign them to recipient UNIDENT (defined during Phase
2). The UNIDENT recipient can act as a central collection point for all unassigned pages. If you do not
specify a default recipient name for unidentified pages (here or in the report defaults), then your
decollating mission will be flagged as ended NOTOK in the Active Missions file (although it may have
decollated the output successfully), and any unidentified pages will be assigned to the user in the top
level of the tree.
Printing to an Email:
Pre-requisites:
1. SMTP should be configured
2. Logical mail printer should be defined in CTDPARM like below
DEFPRTS PRINTER=(PRT6,SMTPC2,2000,OPEN,00000,MAIL,000)
3. Email Address should be defined in Recipient Definition of a particular user (in ADDRESS
field)
The reports are produced in class D. If this class is not convenient, change it to a different
output class. Be sure to choose a class whose reports are not printed or purged before
Control-D gains control. Do not use the same class that was used for the generic decollating
mission.
1. Category: Category can be anything like PROD, TEST, DAILY etc. You can use the CATEGORY
parameter to create multiple decollating mission definitions for the same job. This helps in
identification. E.g. if JOB6 running on different schedules like daily, weekly and monthly, we
can set up three different decollating mission definitions to handle the various reports:
DAILY (Handles daily reports)
WEEKLY (Handles weekly reports)
MONTHLY (Handles monthly reports)
1. CLASS: Name of the report class
2. User: Recipient User
3. WHEN LINE: Used to specify the start line and end line to search a string
4. COL: Used to specify the start col and end col to search a string
5. STRING: Used to specify string to be searched