Tags
easytrieve, every, label, limit, linesize, mainframe, nodate, nopage, pagesize, printer, report, spread, statement, summary
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
- ACROSS – mentions number of labels side by side
- DOWN – Number of lines for each LABEL
- SIZE – specifies the width of the LABEL
- 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
PAGESIZE – The 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/NOSPREAD – This 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.
NOADJUST – This 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
LIMIT – This 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.
EVERY – This 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 |