Sei sulla pagina 1di 23

Application Development Toolset

ADTS
Source Entry Utility (SEU) Screen Design Aid (SDA) Report Layout Utility (RLU)

Starting SEU
from the Programming Development Manager
option 2 (Edit) or option 5 (Display) on the Work with Members Using PDM display

from the Programmer Menu


option 8 (Edit a source file member).

from the Command Line


STRSEU Ex. STRSEU SRCFILE(LIBRNAME01/FILENAME01) SRCMBR(MEMBNAME05) TYPE(TXT) OPTION(2) TEXT('Customer data file for mailing list')
4

SEU Options Display


Change Session Defaults Use the Change Session Defaults display to specify the characteristics of your edit or browse session. Browse/Copy Options Used to look at another member or spooled file, copy another member or spooled file into the member you are editing Find/Change Options Use the Find/Change Options display to search for a specified string in some or all records, change a specified string in some or all records, or search for records that contain syntax errors.
5

SDA
Used to create Screens and Menus Creates DDS for Display files Display files contains records Each record is a screen Each record contains fields that are Input, Output or Both and constants STRSDA from WRKMBRPDM
6

SDA Functions
Add constants to the work screen Change constants on the work screen Change the length of a constant Display attribute positions Center fields Delete fields Move fields Copy fields Make multiple changes Specify display attributes Remove display attributes Delete display attributes Specify color Remove color from a field.

Display database fields on the work screen Switch between multiple and singlefield mode Delete fields on the bottom row Use symbols to place database fields on the work screen Display field name, length, and text description Change a field name Change the length of an unreferenced named field Change the length of a referenced name field Add fields to the work screen Define field length and the number of decimal positions Delete multiple fields Specify color keywords.

SDA Functions
Enclosed in single quotation *DATE, *TIME, *USER, *SYSNAME AC to center a field D to delete the field (-) and (=) to move a filed or block of fields (-) and (==) to copy a filed or block of fields

Display Attributes
B for Blink H for Highlight R for Reverse Image N for Non-Display U for Underline

* in the attributes position to select field level keywords

Colors
C in the attributes position followed by the first letter of the valid color CB Blue CG Green CP Pink CR Red CT Turquoise CW White CY Yellow -C and the color code to remove the color. Ex. -CB

10

SDA Functions
F10 to select the fields from a database F6 to shift between single and multiple mode F6 and Y in the delete all fields at the bottom, in the Condition Work Screen display &n, &nL, , &nR, &nC and &nP ? in the attributes position to display the Name, length & column Heading ? in the attributes position or F4 to change the field names ? for unreferenced fields and * for reference fields To change the length
11

Adding/Removing fields
3,6,9 for adding numeric fields +3(7,2) to define a field of 5 integer positions and two decimal positions I, O, B for adding Character fields F4 and then F6 to sort the fields (--) in the beginning of the block and (--) in the end of the block to remove multiple fields To specify colors, * and Y in the colors column
12

RLU
Design the report by defining the layout on the display Creates the DDS source Prototype can be printed at any time Database fields can be used STRRLU or Option 19 from WRKMBRPDM screen
13

Sequence line commands


Change the edit session environment F13 Position the display line number, TOP, BOTTOM Exclude lines on the display X, Xn, XX Show excluded lines on the display SF, SFn, SL, SLn, F5 Shift lines without truncating data L, Ln, LL, LLn, R, Rn, RR Shift lines and truncate data LT, LTn, Show format lines COLS, IF (to insert a blank line below FMT)

Horizontal Windows - W, Wn

Prompt for a record P, IP Define and insert skeleton lines S, IS, ISn Show and set tabs - TABS
14

Sequence line commands


Copy C, Cn, CC, CR, CCR, A, An, B, Bn, O, On Move M, Mn, MM, A, An, B, Bn, O, On Repeat RP, RPn, RPP, RPPn Insert I, In Delete D, Dn, DD

15

Creating a simple report


1. Start RLU 2. Define a record format 3. Define a constant field 4. Center the report title 5. Add database fields to a report 6. Create a field line 7. Create sample data for a report 8. Save the report design and create a printer file 9. Print the report
16

Creating a simple report

17

Creating a simple report


STRRLU Type the title in the first line and Type DR in the seq line area Type DC to make it as a constant Type CF to center it Insert the database fields Save the file by pressing F3 and create the report and print the prototype WRKSPLF to view the report
18

Selecting Database fields


Press F10 to add database fields. Use CUSDATA file from QPDA library. Choose the required field The selected fields appear at the bottom Create another record to place the fields by typing DR after inserting a blank line Create a field line by typing VF in the seq line Place fields by typing the field no followed by C to include the column Heading Type SD5 in the second record for inserting 5 sample lines
19

More functions of RLU


Add Headings to the Report Define fields in the heading line Rename a record format Underline the report title Space Record formats Highlight a field List the fields Move fields Condition fields
20

More functions of RLU


Insert Blank lines and add the text for the column Heading and the fields Define it as a record Define the text as constant field by placing the cursor on the first character and type F11 and conver to constant field Use DF to define the fields
21

More functions of RLU


To rename a record, position the cursor in RCD001 and press F18 and press F10 F18 to give line spacing (SPACEB) To underline, position the cursor on the constant and press F23 and type 2 in the opt beside Underline To view the list of fields in a record format, position the cursor in the record format name and press F4 F13 and F15 to mark and move the fields
22

Working with Records


To define Record Format DR, DRn, DRR To rename F18 and F10 To specify Page Breaks NP To remove Page Break D Changing the line type to merge record formats CLR, CLC, CLF, CLS To specify record level keywords F18 and F9
23

Working with Fields


To define the fields using Function keys F11 Specifying Field name and length Working with Field level keywords

24

Potrebbero piacerti anche