Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

Reporting on Application Backups


All examples in this section are found in the JCL library installed with FDR. The member names are EX5220x.

You can report on the data sets recorded in an Application Control File using:

Each displays the data set names, data set information, and the location and expiration of the backup files. SRS can also be used to restore data sets from the Application Backup; see the SRS example in ISPF-Support-for-Application-Backups.

FDRABRP

The ABR report utility, FDRABRP, can produce a fixed-format report on data sets recorded in a single Application Control File. This example shows details of every data set in the ACF. See FDRABRP-Catalog-Report for additional operands that you might use to limit the scope of the report. The ARCHIVE DD statement points to the Application Control File. Since SORT=YES is the default in batch, to display information in data set name order, SORT DD statements may be required as shown, depending on your system SORT product.

//PRINT EXEC PGM=FDRABRP,REGION=0M //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //ABRMAP DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //ARCHIVE DD DSN=PAYROLL.APPL.BACKUP,DISP=SHR //SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR //SORTWK01 DD SPACE=(TRK,50,,CONTIG),UNIT=DISK //SORTWK02 DD SPACE=(TRK,50,,CONTIG),UNIT=DISK //SORTWK03 DD SPACE=(TRK,50,,CONTIG),UNIT=DISK //SYSIN DD * PRINT ARCHIVE /*

The report produced is similar to:

*-DSK VOL-* *--DATE OF--* D/S REC BLOCK LBP BK **---DSN TAPE INFO---**

**---DATA SET NAME---** SERIAL S TY ARCHIVE EXPDT ORG FM SIZE LRECL ALLOC R/TRK* TY CN SUFFIX FN VOL-SERIAL(S)

TEMPEST.EXTRACT.GDG0X. SMS812 2 0E 20.189 98.189 PS FB 23440 80 1C 9 84 1 B120189A 1 AB0003

G0002V00

TEMPEST.MASTER SMS812 2 0E 20.189 98.189 PS FB 23440 80 1C 9 84 1 B120189A 1 AB0003

FDREPORT

The ABR generalized reporting utility, FDREPORT, can report on data sets recorded in a single Application Control File. The format of the report and the information included in it are customizable. This example reports on the basic descriptive data of each data set (VOLUME, DSORG, SIZE, and so on), plus information on the backup of each data set (backup data set name, volume, file, and date of backup).

//PRINT EXEC PGM=FDREPORT,REGION=0M //SYSPRINT DD SYSOUT=* //ABRMAP DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //ARCHIVE DD DSN=PAYROLL.APPL.BACKUP,DISP=SHR //SYSIN DD * REPORT FIELD=(DEFAULTS,BKINFO) PRINT DATATYPE=ARCHIVE /*

The generated report looks similar to the PRINT ARCHIVE report above. Please see FDREPORT-Generalized-Report-Writer for information on further customizing this report.

Reporting on multiple application control files example

The preceding examples reported only on the contents of one Application Control File at a time. You may wish to produce a combined report on the contents of multiple ACFs. For example, if you create the ACF for an application as a GDG, and you retain more than one generation on DASD (LIMIT for the GDG base greater than one), you might want to report on all backups in all of those ACFs. This special FDREPORT step does this.

FDREPORT first identifies all the generations that exist for a specified Application Control File name, extracts the data from each into a combined reporting file, and then reports on that combined data. It sorts on data set name and DASD volume serial. RPTYPE=ARCHIVE requests the same report format as produced by the PRINT ARCHIVE function of FDRABRP (see earlier example) but you may choose to customize the report as shown in FDREPORT-Generalized-Report-Writer.

//REPTAPPL EXEC PGM=FDREPORT,REGION=0M //SYSPRINT DD SYSOUT=* //ABRMAP DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSUT2 DD UNIT=SYSALLDA,SPACE=(CYL,(10,5)) //SYSPUNCH DD UNIT=SYSALLDA,SPACE=(TRK,(2,1)) //SYSIN DD * DEFAULT SORTALLOCATE=YES,ENABLE=MODOUTPUT * FIND ALL GENERATIONS OF THE SPECIFIED Application Control File * GENERATE FDREPORT STATEMENTS TO PROCESS THEM. XSELECT XDSN=PAYROLL.APPL1.BACKUP.G++++V++,DSORG=DA PUNCH FDRLIB=MASK PRINT RPTYPE=SELPCH,DATATYPE=CATVTOC CANCEL * EXECUTE THE GENERATED FDREPORT STATEMENTS TO CREATE A COMBINED * EXTRACT FILE EXECUTE FDRLIB=SYSPUNCH CANCEL * GENERATE THE COMBINED REPORT FROM THE EXTRACT FILE SORT FIELD=(DSN,VOL) PRINT DATATYPE=EXTRACT,RPTYPE=ARCHIVE /* //MASK DD * DEFAULT ARCDSN=<DSN>,COPY=BOTH PRINT DATATYPE=ARCHIVE,RPTYPE=DATA /*

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware FDR 5.04