FDREPORT EXECUTE Statement


EXECUTE statement

The EXECUTE statement reads pre-established FDREPORT report statements from a control statement library. You can setup canned report specifications that any user can execute.

The control statements read by EXECUTE can also be combined with statements in the input stream. For example, you might have XSELECT statements to select the data sets to be reported, followed an EXECUTE to read and execute the REPORT and PRINT statements defining the report.

The control statement library must be a data set that has the attributes: RECFM=FB,LRECL=80. It may be either sequential (DSORG=PS) or partitioned (DSORG=PO). The EXECUTE statement uses the presence or absence of the REPORT= operand to differentiate between sequential or partitioned data sets. If REPORT= is specified, the data set is assumed to be partitioned and REPORT= provides the member name. If REPORT= is omitted, the data set is assumed to be sequential.

Important

The ISPF SRS dialog, documented in FDRSRS-Search-Report-and-Services-Dialog, is another way to save selection and/or formatting parameters in a library that can then be executed under TSO or submitted for batch execution.

EXECUTE statement syntax

EXECUTE



ECHO|NOECHO


,FDRLIB=FDRLIB|ddn


,MAXEXECUTE=400|nnnnn


,REPORT=rptname

ECHO

NOECHO

Specifies that the control statements read by this EXECUTE statement are to be printed ECHO on SYSPRINT or not NOECHO.

Default: ECHO in batch environment, NOECHO in TSO environment.

FDRLIB=

ddn

Specifies the FDRLIB DD Statement name FDREPORT scans for the control statements to be processed.

If REPORT is specified this FDRLIB DD Statement must point to a partitioned data set. If REPORT is not specified FDREPORT reads this data set sequentially.

The format of this data set must be fixed blocked with an LRECL of 80. The blocksize is set at user discretion.

Default: FDRLIB.

MAXEXECUTE=

nnnnn

Specifies the number of control statements that can be present in a single predefined report. The number may be from 10 to 32766, inclusive.

Default: 400. If more than 400 control statements are present, it is dynamically adjusted upwards to a design limit of 32,766.

REPORT=

mem

Specifies the name of the report. This name must be a member in the library specified by FDRLIB. This member must contain the control statements defining this report in 80-byte images. The user can specify any of the FDREPORT statements in this member except for EXECUTE. If the last statement in the member is PRINT, the user need not specify any other control statements after this statement.

If REPORT is not specified, FDREPORT assumes that the data set pointed by FDRLIB is a sequential data set.

A 1 to 8 character name may be specified.

 

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