FDRABRP Scratch Report
PRINT SCRATCH statement
The report generated by the PRINT SCRATCH statement gives you critical information that has been captured by the ABR DADSM Pre-processing exit for data sets that have been scratched or renamed, including: data set name, DASD volume ID and type, generation and cycle number, backup date, backup file number and volume serial numbers.
PRINT SCRATCH statement syntax
SCRATCH | |
|---|---|
,DSG=dsg|(dsg,…,dsg) | |
,DSN=dsn|(dsn,…,dsn) | |
,FORMAT=CRT|PRT | |
,LINECNT=58|nn | |
,OLDBACKUP=ALL|CUR|n|(n,…,n) | |
,SELTERR=NO|YES | |
,VOL=vol|(vol,…,vol) | |
,VOLG=volg|(volg,…,volg) | |
,XREF |
VSAM
VSAM files are reported by cluster name. The individual components are not recorded in the SCRATCH catalog.
PRINT SCRATCH statement operands
Only data sets or clusters with a name matching one of the names given are selected (1 to 44 characters). Multiple values are specified in parentheses separated by commas.
Only data sets or clusters beginning with one of the prefixes given are selected (1 to 44 characters). Multiple values are specified in parentheses separated by commas.
There is a special form of the DSG operand. Leading periods “.” after DSG= indicate that the group name starts after one or more index levels. Each period indicates that one index level is to be bypassed.
Example: DSG=..TST selects any data set with a third index level starting with “TST”.
Produces a 79-character line formatted for a TSO terminal.
Produces a 121-character line formatted for a printer.
Default: CRT if executing under TSO; PRT otherwise.
nn
Specifies the maximum number of lines each report page can contain, from 10 to 99, inclusive.
Default: 58.
Specifies the relative backup numbers that are to be printed when processing entries from the SCRATCH catalog.
Requests all backups associated with the data set to be printed.
Requests the current backup only to be printed.
n
A numeric value of 0 through 3 permits you to select relative backups for printing, where 0 is the current backup and 3 is the oldest.
Default: CUR.
Specifies that a condition code of 12 is not set if there are no entries in the ABR SCRATCH catalog that match the selection criteria on this PRINT command.
Specifies that a condition code of 12 is set if there are no entries in the ABR SCRATCH catalog that match the selection criteria on this PRINT command.
Default: YES.
Only data sets that were scratched from the specified volume serial “VOL=” or volume serial prefix “VOLG=” are selected. Multiple values are specified in parentheses separated by commas.
Specifies that the report is to include backup information, including the backup data set name, file number, and tape volume serial numbers.
Default: Only the ABR generation and cycle numbers of the backup is printed.
The FDRABRP program has been functionally stabilized, but is still available; however, this report can be produced with FDREPORT and enhanced with all the features available in FDREPORT and the flexibility to modify the reports as desired. This is the JCL and control statements to produce the equivalent FDREPORT for FDRABRP “PRINT SCRATCH,XREF,OLDBACKUP=ALL” report.
This FDREPORT example can be found in the JCL library installed with FDR. The member name is EX5305A.
Sample reports for FDRABRP
ABR Scratch Report
FDRABR LIST OF SCRATCHED DATA SETS
*--DISK VOLUME--* BK BACKUP TAPE DSN TAPE
**----DATA SET NAME----** SERIAL TYPE SEQ GEN CYC NO DATE SUFFIX FILE TAPE VOLUME(S) REQUIRED TO RESTORE
AGK.UPSTREAM.TEST IDPLB2 3390 001 148 0 00 2008.214 C1014800 0043 ST0057
147 14 01 2008.205 C1014714 0876 ST0063
147 0 02 2008.186 C1014700 0043 ST0472
146 0 03 2008.158 C1014600 0043 ST0008
AJM.ISR0001.BACKUP IDPLB0 3390 001 92 11 00 2008.294 C1009211 0666 ST0179
C2009211 0666 ST0178
92 10 01 2008.291 C1009210 0591 ST0457
C2009210 0591 ST0455
92 6 02 2008.287 C1009206 0383 ST0457
C2009206 0383 ST0455
92 5 03 2008.284 C1009205 0308 ST0323
C2009205 0308 ST0282
AJM.ISR0002.BACKUP IDPLB0 3390 001 92 21 00 2008.308 C1009221 1234 ST0573
C2009221 1234 ST0518
AJM.UPSTREAM.GDGTEST1. USTWK4 3390 001 72 0 00 2008.186 C1007200 0016 ST0472
G0002V00 71 0 01 2008.158 C1007100 0016 ST0552
70 0 02 ******** C1007000 **** CAUTION -- OLD BKUP NOT CATALOGED
69 0 03 ******** C1006900 **** CAUTION -- OLD BKUP NOT CATALOGED
…
XTRXXX.ISPF4.PROFILE IDPLBA 3390 001 73 0 00 2007.152 C1007300 0033 ST0503
C2007300 0033 ST0508
72 0 01 2007.124 C1007200 0033 ST0443
C2007200 0033 ST0466
71 0 02 2007.096 C1007100 0033 ST0016
70 0 03 2007.061 C1007000 0033 ST0406
FDR499 FDRABRP PROCESSING COMPLETED
FDR492 SCRATCH REPORT FUNCTION ENDED - 12.04.14
Sample scratch report from TSO
********------BACKUP INFORMATION------********
BKD(00)-2008.277 SFX-C1077800 FN-0041 VOLS-ST0140
BKD(00)-2008.277 SFX-C2077800 FN-0041 VOLS-ST0461
BKD(01)-2008.259 SFX-C1077705 FN-0347 VOLS-ST0218
BKD(02)-2008.249 SFX-C1077700 FN-0041 VOLS-ST0006
BKD(03)-2008.214 SFX-C1077600 FN-0041 VOLS-ST0057
DSN-JSB.V5462.OUTLIST VOL-IDPLB8 3390 VSEQ---1
********------BACKUP INFORMATION------********
BKD(00)-2008.165 SFX-C1005906 FN-0356 VOLS-ST0525
BKD(01)-2008.158 SFX-C1005900 FN-0011 VOLS-ST0456
BKD(02)-******** SFX-C1005800 FN-**** VOLS-CAUTION -- OLD BKUP NOT CATALOGED
BKD(03)-******** SFX-C1005714 FN-**** VOLS-CAUTION -- OLD BKUP NOT CATALOGED