Chowdary S Page 3
Defining a Constant Field:
To define the report title as a constant field using the Define Constant (DC) command, type DC besidethe report title in the sequence number area, and press Enter. A message indicating that an unnamed(constant) field is created in the record format and a field line appears immediately above the field youjust created.
Centering the Report Title:
To center the report title by using the Center Field (CF) line command, type CF beside the report title inthe sequence number area on the Design Report display, as shown in the following display, and pressEnter. The field is centered relative to the report page width you specified when you started RLU, and thisnew position appears in the definition.
dding Database Fields to a Report:
ow that your report design has a title field, the next step is to add some fields by referencing a databasefile. To add the next five fields to your report, use the source physical file CUSDATA in library QPDA. Thisfile contains fields for a customer report and is shipped with Application Development ToolSet for AS/400.To add the EMPADD , EMP
UM and EMPPH to your report:1. Press F10 (Database fields)(B). The Work with Database Fields display appears.2. Select option 1 (Add field) in the Option prompt, and type QPDA in the Library prompt, SIMEMPPF inthe File prompt, EMPRCD in the Record prompt, and press Enter. The Select Database Fields displayappears showing the fields available for selection into your report.3. To select the EMPADD , EMP
UM and EMPPH for your report, type option 1 (Select) inthe Opt column next to each field, and press Enter. The field
AME is on the next page of the display.The selected fields are identified by the > symbol to the left of the field name.4. Press Enter again. The Work with Database Fields display is shown with a list of the selected fields.5. Press Enter again to return to the Design Report display. The selected database fields appear at thebottom of the display.6. To show the selected database fields on your report design, create a second record using the Insert (I)line command. Type I2 in the sequence number area beside the report title, and press Enter. Two newblank lines are added. The first blank line remains as a filler line.7. To define the second record, type DR in the first position of the second blank line, and press Enter. Thesecond record is defined.
Creating a Field Line:
To create a field line using the View Field (VF) line command:1. Type VF in the sequence number area of the second record, and press Enter. The FLD1 field lineappears, which is used to add the selected database fields to your report design. The fields are placed onthe FLD1 field line in the order that you want them to appear on the report.