Report Printing and Report Restoring

This chapter includes the following topics:

Overview

This chapter shows you how to request the immediate printing of your reports and how to restore archived reports so they can be viewed or printed. In this chapter you will:

  • Select a report for printing.

  • Display the Print Option window and learn some print control parameters.

  • Modify certain print control parameters and request immediate printing of the selected report.

  • Learn how to restore a report from the History User Report list.

Printing a Report

You have already learned how to select a report for Online viewing. In this exercise you will re-enter the Active User Report List screen and select a report for immediate printing.

  1. Enter the Control-D Online Viewing facility and display the entry panel.

    The entry panel is displayed.

  2. Type DEMO in the USER field and press Enter to display the Active User Report List screen.

    Figure 60 Active User Report Screen before Printing

    Copy
    ACTIVE LIST    <D> JOB          REP                      USR DEMO           (U)
    COMMAND ===>                                                    SCROLL===> CRSR
    O USER     REPORT               ODATE     PAGES    LINES V N STATUS
    DEMO     INVENTORY REPORT     05/05/00      9      427 V   Decollated
    DEMO     EMPLOYEES-MANAGMENT  05/05/00      1       18     Decollated
    DEMO     EMPLOYEES-MARKETING  05/05/00      3      131 V T Decollated
    DEMO     EMPLOYEES-DEVELOPMEN 05/05/00      1       10     Decollated
    DEMO     EMPLOYEES-PRODUCTION 05/05/00      3      169     Decollated
    DEMO     BANKING REPORT       05/05/00      5      256     Decollated
    ====== >>>>>>>>>>>>>>>   B O T T O M    O F    L I S T   <<<<<<<<<<<<<<< ======
    P PRINT     V VIEW     U UPDATE     I INSERT     A ADD INFO     E EDIT
    X INDEX     N NOTE     G GIVETO     D DELETE     Q QUICK ACCESS       10.24.32

Print Option Window

When you enter P (Print) in the OPTION field of a report on the Active User Report list, the Print Option window is displayed. The request for immediate printing of the report is made from this Print Option window.

Begin

  1. Type P (Print) in the OPTION field for the Employees-Marketing report and press Enter.

    The Print Option window is displayed on the Active User Report List screen.

    Figure 61 Print Option Window

    Copy
    ACTIVE LIST    <D> JOB          REP                      USR DEMO           (U)
    COMMAND ===>     +----------------------------------------------------------+
    O USER     REPOR |                                                          |
      DEMO     INVEN |  PRINT OPTION ===>                                       |
      DEMO     EMPLO |                                                          |
    P DEMO     EMPLO |    1  Immediate Printing                                 |
      DEMO     EMPLO |    2  Deferred Printing (by Print Mission)               |
      DEMO     EMPLO |    X  Exit (no action)                                   |
      DEMO     BANKI |                                                          |
    ====== >>>>>>>>> |    COPIES  001             FORM STD       CLASS          |
                     |                                                          |
                     |    DEST LOCAL              WTR                           |
                     |                                                          |
                     |    FROM PAGE 00000002 TO PAGE 00000003 RULER DEFAULT     |
                     |                                                          |
                     |    PRINT MISSIONS VENAPRT                                |
                     |                                                          |
                     |    PAGEDEF          FORMDEF                              |
                     |                                                          |
                     |  USER DEMO     REPORT EMPLOYEES-MARKETING  JOB JDEMO     |
                     |                                                          |
                     +----------------------------------------------------------+
    P PRINT     V VIEW     U UPDATE     I INSERT     A ADD INFO     E EDIT
    X INDEX     N NOTE     G GIVETO     D DELETE     Q QUICK ACCESS       10.24.32

Control-D normally allocates and prints the sysout to spool, using default values for printing parameters such as DEST, WTR, CLASS and PRIORITY that are defined for the sysout during decollation.

However, you can use the Print Option window to manually enter individual print requests. The fields of the Print Option window displays the printing parameter defaults, but you can change the values in the window to override the defaults.

The following options are displayed in the Print Option window: Immediate Printing, Deferred Printing and Exit.

Immediate Printing

You will now use the Immediate Printing option. This exercise demonstrates the following printing parameter fields:

Table 8 Parameters of the Print Option Window

Parameter

What it does

COPIES

Specifies how many copies of the report are to be printed.

DEST

Specifies the remote printer (node and userid) on which the report is to be printed. If this field is blank, the report prints on the default printer.

WTR

In this field you can specify the name of an external writer for printing the report. If your data center is using TS-PRINT, specify the VTAM name of the printer in this field.

FROM PAGE and TO PAGE

Specifies a page range (inclusive) for printing part of a report.

PAGEDEF and FORMDEF

These fields specify PAGEDEF and FORMDEF parameters for AFP reports.

The Immediate Printing option sends a report to the JES spool with the printer parameters specified in the fields in the window.

In this exercise, you will immediately print two copies of only the first page of the report at the desired printer.

Begin

  1. Type 1 (Immediate Printing) in the Print Option field.

  2. Request two copies of the report instead of one, by changing the value in the COPIES field from 001 to 002.

  3. If you want to use a different printer than the default printer, type the desired printer details in the DEST and/or WTR fields.

    If you do not know the name of your printer, leave the DEST field blank.

  4. To print only page 1 instead of the entire report, change the TO PAGE value from 00000003 to 00000001.

    The Print Option window should look like the example below, where printer represents your target printer.

    Figure 62 Completed Print Option Window

    Copy
    ACTIVE LIST    <D> JOB          REP                      USR DEMO           (U)
    COMMAND ===>     +----------------------------------------------------------+
    O USER     REPOR |                                                          |
      DEMO     INVEN |  PRINT OPTION ===> 1                                     |
      DEMO     EMPLO |                                                          |
    P DEMO     EMPLO |    1  Immediate Printing                                 |
      DEMO     EMPLO |    2  Deferred Printing (by Print Mission)               |
      DEMO     EMPLO |    X  Exit (no action)                                   |
      DEMO     BANKI |                                                          |
    ====== >>>>>>>>> |    COPIES  002             FORM           CLASS D        |
                     |                                                          |
                     |    DEST printer            WTR                           |
                     |                                                          |
                     |    FROM PAGE 00000001 TO PAGE 00000001 RULER DEFAULT     |
                     |                                                          |
                     |    PRINT MISSIONS                                        |
                     |                                                          |
                     |    PAGEDEF          FORMDEF                              |
                     |                                                          |
                     |  USER DEMO     REPORT EMPLOYEES-MARKETING  JOB JDEMO     |
                     |                                                          |
                     +----------------------------------------------------------+
    P PRINT     V VIEW     U UPDATE     I INSERT     A ADD INFO     E EDIT
    X INDEX     N NOTE     G GIVETO     D DELETE     Q QUICK ACCESS       10.24.32
  5. Press Enter to send the report to the specified printer for immediate printing.

  6. The Print Option window is no longer displayed on the Active User Report List screen. The message line at the top of the screen displays the following message:

    CTD947I REPORT report name / job# / user PRINTED OK

If you get an error message, type X in the Print Option field to exit this window, and the report will not be printed.

Restoring a Report

Suppose you want to view or print a report that had been produced a few days before, but that report no longer appears on the Active User Report list and is no longer available on disk.

During regular Control-D maintenance, reports no longer actively needed are backed up to cartridge or tape before they are removed from disk and from the Active User Report list.

Backed up reports appear on the History User Report list. By using History User Report list options, they can be restored (retrieved) from cartridge or tape to disk. Once restored, they re-appear on the Active User Report list and can then be viewed and/or printed.

History User Report List

Begin

  1. To leave the Active User Report list and enter the History User Report list, press the END key (PF03/PF15).

    The entry panel is displayed. The History User Report list is Option 3.

  2. Type 3 in the COMMAND or OPTION field, depending on the display type selected for the entry panel, and press Enter.

    The History User Report List screen is displayed.

    Due to the special characteristics of the Online Viewing Guide's DEMO environment, the History User Report list for user DEMO contains no entries.

    A hypothetical History User Report list containing entries is shown below.

    Figure 63 History User Report List with Entries

    Copy
    HISTORY LIST   <D> JOB          REP                      USR DEMO           (U)
    COMMAND ===>                                                    SCROLL===> CRSR
    O USER     REPORT               ODATE     PAGES    LINES     STATUS
      DEMO     INVENTORY REPORT     05/05/00        9      427   Backed up
      DEMO     EMPLOYEES-MANAGEMENT 05/05/00        1       18   Backed up
      DEMO     EMPLOYEES-MARKETING  05/05/00        3      131   Backed up
      DEMO     EMPLOYEES-DEVELOPMEN 05/05/00        1       10   Backed up
      DEMO     EMPLOYEES-PRODUCTION 05/05/00        3      169   Backed up
      DEMO     BANKING REPORT       05/05/00        5      256   Backed up
    ====== >>>>>>>>>>>>>>>   B O T T O M    O F    L I S T   <<<<<<<<<<<<<<< ======
    OPTIONS: R RESTORE  C NO-RESTORE U UPDATE  D DELETE  A ADD INFO        5.15.21

    The History User Report list and Active User Report list display the same fields, but the available options are different.

    The R (Restore) option and the C (No-restore) option are the two options you will now learn.