Tags

, , , , , , , , , , , , ,

EASYTRIEVE – REPORT STAEMENT

The syntax of the REPORT statement is diagrammed below.

REPORT report-name +

[SUMMARY] +

LABELS ([ACROSS literal-1] + Format

[DOWN literal-2] + Determination

[SIZE literal-3] +

[NEWPAGE]) +

[PRINTER file-name] + File Directing

[PAGESIZE ({literal-6a} [literal-6b])] +

[LINESIZE literal-5] +

[SPREAD] + Spacing

[NOSPREAD] + Control

[NOADJUST] +

[NODATE] +

[NOPAGE] +

[LIMIT literal-6] + Testing

[EVERY literal-7] Aids

Report-name – It is the name of the report that you provide at PRINT statement

SUMMARY – This is used if you want to print only the summary lines (CONTROL statement has the fields on which you want to total) and not the detail lines.

LABELS ([ACROSS literal-1] + Format

[DOWN literal-2] + Determination

[SIZE literal-3] +

[NEWPAGE]) +

LABELS are made use of when you want your output to look something as mentioned above. Here

  1. ACROSS – mentions number of labels side by side
  2. DOWN – Number of lines for each LABEL
  3. SIZE – specifies the width of the LABEL
  4. NEWPAGE – Specifies that each LABEL should be printed in a new page.

PRINTER file-name – This filename specifies your output file name. Ensure that you provide the PRINTER parameter after your filename in FILE section as well.

Ex: FILE OUTPUT1 PRINTER

PAGESIZEThe PAGESIZE option establishes the length of each printed page. Literal-6a specifies the page length for LINE statements. Literal-6b specifies the page length for REPORT procedure DISPLAY statements.

LINESIZE – Specifies the size of your line

SPRERAD/NOSPREADThis option adjusts the spacing of the columns of your report. SPREAD specifies to maximize the number of spaces between columns. NOSPREAD deactivates the SPREAD option. In most cases, NOSPREAD is the default, which puts three characters between columns and centers the report on the printer page.

NOADJUSTThis option left-justifies your report on the printer page. Centering is usually the default.

NODATE – No date is displayed in the first line of your report

NOPAGE – This option suppresses displaying PAGE with page number

LIMITThis option specifies the number of PRINT statements accepted for this report and is useful for testing. The value of literal-6 sets the maximum number of lines desired. For example, you could limit the output of your report to the first 50 PRINT statements to make sure your column spacing is what you want.

EVERYThis option is also used for testing. Literal-7 specifies the occurrence value for processing every Nth PRINT command directed to the report. If you specified LIMIT 50 EVERY 10, you could sample the output from the first 500 PRINT statements for your report.

——————————————————————————————————–

In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog

——————————————————————————————————–

You may also like to look at:

Working on Mainframes – Is Change to a different technology necessary
Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
EASYTRIEVE – A023 ABEND
EASYTRIEVE – SORT and FILE COMPARISION
EASYTRIEVE – Special-name Report Procedures
EASYTRIEVE – REPORT STAEMENT
EASYTRIEVE – Sample Program – Table And Search
EASYTRIEVE – Sample Program – Display Totals and Summary
EASYTRIEVE – Sample Program – Display Employee Data
CA-Easytrieve/Plus – Basics
REXX TOOL # 02 – FSAVE – Save member opened in VIEW mode
REXX TOOL # 01 – O – Open Any Mainframe Element from any ISPF Screen
REXX – INDEX, POS, SUBSTR, COMPARE
REXX – READ THE DSN PROVIDED AS DD IN JCL
REXX – SEND MULTIPLE ARGUMENTS THROUGH JCL
REXX – HOW TO COMPILE YOUR REXX EXEC
REXX – CHANGE UPPER TO LOWER CASE
REXX – GET LAST 4 DAYS FROM GIVEN DATE
REXX – PANEL Definition
REXX – READ, CREATE AND WRITE DATA TO A DATASET
REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC

 

Advertisement