Chapter 75: Working with Report Controls (WRPT)

Purpose: Use Work with Report Controls to create or change settings for reports and other printed output, such as pick slips, confirmations, checks and acknowledgments.

The system requires certain control information to process a report, such as which output queue to use, the number of copies to print and whether to save the report after you print it. The first time you generate a particular report, the system checks the Report Control file to see if you have already defined report controls. If there is no record in the file, the system creates one using the system control values:

Default OUTQ (A38)

Default # Copies (A39)

Hold Listing Default (A40)

Save Listing Default (A41)

 

Note: When you print pick slips, the system uses the printer defined as the warehouse Device rather than the system control value.

If you want to create a new report control or change any of the settings of an existing one, you must use the Work with Report Controls function.

Note: For documentation purposes, all sample reports indicate the current product name of CWDirect, regardless of the date when the report sample was prepared.

In this chapter:

Work with Report Controls Screen

Create Report Control Screen

Change Report Control Screen

Display Report Control Screen

Work with Report Controls Screen

How to display this screen: Enter WRPT in the Fast path field at the top of any menu or select Work with Report Controls from a menu.

MSR0216 DISPLAY Work With Report Control 11/12/97 16:43:45

The KL Mail Order Company

Opt Program Output Queue Copies Hold Save Form Type

Type options, press Enter.

2=Change 4=Delete

AAR0008 QPRINT 1 Y N

Pick/Authorization ListPF Print file

AAR0063 QPRINT 1 Y N

CC Auth Listing PF Print file

AAR0072 QPRINT 1 Y N

Address Verification PF Print file

ACR0047 QPRINT 1 Y N

Prt Bill To Open Items PF Print file

ACR0111 QPRINT 1 Y N

A/P Ledger PF Print file

ACR0138 QPRINT 1 Y N

A/P Due List PF Print file +

F3=Exit F6=Create F12=Cancel F21=Print list

F22=User defined option F24=Select company

Information is provided on each field that takes a default value from the System Control file. Additional information on each field is provided at the Create Report Control Screen.

Field

Description

Program

The name of the program that prints the report.

Alphanumeric, 10 positions; optional.

Output queue

The name of the printer or other output queue where the report should be sent. The system uses the Default OUTQ (A38) defined in the System Control file for report control records it creates. If no default is defined in the System Control file, the system searches the following list for a defined output queue, using the first output queue it finds:

• The output queue defined at the Work with Report Controls Screen.

• The output queue defined in the Output queue field for the user in Working with User Records (WUSR).

• The output queue defined for the user class in Setting Up User Classes (WUCL) or in the Output queue field on the Work with Users Screen.

• The default output queue defined for the iSeries.

Alphanumeric, 10 positions; display-only.

Copies

The number of copies of the report to produce. The system uses the Default # Copies (A39) defined in the System Control file for report control records it creates.

Numeric, 3 positions; display-only.

Hold

Indicates whether the report generates in a held status or is released for printing. Valid values are:

Y = the report is held.

N = the report is not held.

The system uses the Hold Listing Default (A40) defined in the System Control file for report control records it creates.

Alphanumeric, 1 position; display-only.

Save

Indicates whether the report will be saved or deleted after you print it. Valid values are:

Y = the report will be saved.

N = the report will be deleted.

The system uses the Save Listing Default (A41) defined in the System Control file for report control records it creates.

Alphanumeric, 1 position; display-only.

Form type

The name of the form type for the report, if any. If a form type is hard-coded for the report, the systems fills in this name when it creates a report control record.

Alphanumeric, 10 positions; display-only.

Description (Unlabeled field below the other report control fields)

The description associated with the report control. The system fills in the description hard-coded for the report, if any, when it creates a report control record.

Screen Option

Procedure

Change a report control

Enter 2 next to a report control to advance to the Change Report Control Screen.

Delete a report control

Enter 4 next to a report control to delete it.

Create a report control

Press F6 to advance to the Create Report Control Screen.

Create Report Control Screen

Purpose: Use this screen to create a report control. You might want to create a report control before the system creates one using the defaults in the System Control file, or to replace the system-created control after you have deleted it.

How to display this screen: Press F6 on the Work with Report Controls Screen.

MSR0218 ENTER Create Report Control 11/12/97 17:00:22

The KL Mail Order Company

Program . . . . .

Output Queue . . .

Copies . . . . . .

Hold . . . . . . . (Y,N)

Save . . . . . . . (Y,N)

Description . . .

Forms Type . . . .

F3=Exit F12=Cancel

Field

Description

Program

The name of the program that prints the report. The system verifies that the program name you enter is in a valid format.

Alphanumeric, 10 positions.

Create screen: required.

Change screen: display-only.

Output queue

The name of the printer or other valid output queue where the report should be sent. If no Default OUTQ (A38) is defined in the System Control file, the system searches the following list for a defined output queue, using the first output queue it finds:

• The output queue defined at the Work with Report Controls Screen.

• The output queue defined in the Output queue field for the user in Working with User Records (WUSR).

• The output queue defined for the user class in Setting Up User Classes (WUCL) or in the Output queue field on the Work with Users Screen.

• The default output queue defined for the iSeries.

However, the system does not write this value into the Output queue field for report control records you create.

Note: The system ignores the value in this field for pick slips, and uses the printer defined for the warehouse. See Warehousing Chapter 43: Creating and Maintaining Locations (WLOC) for more information on defining printers and other devices for a warehouse.

Alphanumeric, 10 positions; required.

Copies

The number of copies of the report to produce.

Numeric, 3 positions; required.

Hold

Indicates whether to generate the report in a held status or released for printing. Valid values are:

Y = the report is held.

N = the report is not held.

The system uses the Hold Listing Default (A40) defined in the System Control file for each report control record it creates.

Alphanumeric, 1 position; required.

Save

Indicates whether to save or delete the report after you print it. Valid values are:

Y = the report will be saved.

N = the report will be deleted.

The system uses the Save Listing Default (A41) defined in the System Control file for report control records it creates.

Alphanumeric, 1 position; required.

Description

The description associated with the report control.

Descriptions you create, unlike those the system creates, are in all uppercase.

Alphanumeric, 50 positions; required.

Form type

The name of a valid form type for the report.

Alphanumeric, 10 positions; optional.

Change Report Control Screen

To change: Enter 2 next to a report control at the Work with Report Controls Screen to advance to the Change Report Control screen. You can change any of the information on this screen except the program name. See Create Report Control Screen for field descriptions.

Display Report Control Screen

To display: Enter 5 next to a report control at the Work with Report Controls Screen to advance to the Display Report Control screen. You cannot change any of the information on this screen. See Create Report Control Screen for field descriptions.

SO08_01 CWDirect 18.0 August 2015 OTN