FDREPORT REPORT Statement


REPORT statement

The REPORT statement specifies the fields that are included in the output generated by the PRINT statement. The fields are placed on the report in the order specified. The appropriate heading is automatically generated for each FIELD selected unless the HEADING statement is present. One blank is inserted between adjacent fields unless overridden by SPn. If the fields selected generate a line greater than the page width, FDREPORT truncates the line and issues a warning message. If ENABLE=AUTOSTACK is specified on the PRINT or DEFAULT statement, FDREPORT stacks as many related fields with matching print length and data type as needed to fit the report within the page width. If stacking does not generate a line within the page width, FDREPORT truncates the line and issue a warning message.

REPORT statement syntax

REPORT



FIELDS=(field[,field,…])


,RESET|NORESET

Default report

If the REPORT statement is not specified, FDREPORT generates a report with the following fields: SPLDSN, VOL, DSORG, RECFM, BLKSIZE, LRECL, SIZE, SIZEFREE, and %FREE.

If DATATYPE=VOLDATA, the default report is: VLVOLSER, VLDEVTYP, VLUNIT, VLINDSTA, VLUSEATR, VLUSERS, VLALOTRK, VL%UTRKS, VLFREETRK, VLLRGCYL, VLLRGTRK, VLFREEXT, and VLFRAGIN.

REPORT statement operands

FIELDS=

Specifies one or more names of the fields to be printed. Hundreds of field names are available, in eight groups: VTOC, VSAM, SMS, PDS, IAM, ABR BACKUP, GENERATED, and VOLUME. Fields from any group may be specified. Any that do not apply to a given report line are blank or zero.

All of the field names that are documented in the tables in FDREPORT-Field-Names are valid.

If SPn is specified as one of the field operands, FDREPORT inserts the number of spaces specified by n (from 0 to 9) between the previous field specified and the next field.

The following example specifies that three blanks be inserted between the fields VOL and DATES.

REPORT FIELDS=(DSN,VOL,SP3,DATES)

Default: One blank between fields.

RESET

NORESET

NORESET

Indicates that these fields should be added to the list of fields currently in effect from preceding REPORT statements.

RESET

Indicates that the list of fields on this REPORT statement completely replaces the values on any preceding REPORT statement.

Default: RESET.

 

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