Professional Documents
Culture Documents
Field Type
Field Type
Field Type
Agenda
1. Field Types
2. Field conditions
3. Field Usage
4. Access Path
5. Select/Omit criteria
6. Virtual Fields
7. Hands on - Creating fields and Access Paths
Field Types
Field has a Name and a Field Type
Classification depends on the type of
values
Broadly classified as alphanumeric,
numeric & special field types
Field Usage
Two types: Database fields and Function
fields
Database fields
Code (CDE) fields:- used for key fields e.g.
Company Code
Data attribute (ATR) fields: used for nonkey fields e.g. Company Name
Function fields
These are used only in EDTTRN, DSPTRN, PRTFIL and
PRTOBJ functions
They allow for common arithmetic operations on a subfile
of records in a transaction, or a group of records in a
report's key level
SUM - Summing a field value throughout a subfile
CNT - Counting the records in the subfile
MAX - Returning the maximum value of a field in the
subfile
MIN - Returning the Minimum value of a field in the
subfile
DRV Contain any amount of processing. Parameters may
be specified. The result of the user-defined calculation, or
processing
USR - Ofers a simple method of adding a work field to a
device design or action diagram. No default processing
Field Conditions
Specifies the values or set of values a field may take
Condition has a Name, a type and an associated value
The two sets of condition types, VAL and LST for STS
fields, and CMP and RNG for other field types, can be
used in four primary ways:
Access Path
An access path defines the physical file and/or the logical
views of that file
The order in which you want to retrieve records from a
file.
Which fields will be present ?
Your select/omit criteria for deciding which records from
the file will be retrieved by the access path.
Six types of Access Paths
Physical (PHY)
Update (UPD)
Retrieval (RTV)
Resequence (RSQ)
Query (QRY)
Span (SPN)
Select/Omit
Present a subset of the records from the physical
file
If more than 1 set is used, the 'Seq' field can be
used to specify the order in which the checks are
carried out, and the lines are logically OR d
together:
The field and conditions names may be selected
using the '?' prompt.
If more than one condition is entered on this
screen, they are logically ANDed together before
including a record for selection.
Virtual Fields
When a file is referenced by another file by
means of a Refers to relation, entries are
automatically created on the referencing
file for the key fields of the referenced file.
To include a non-key field from the
referenced file in the referencing file, you
need to specify it as a virtual field. This
makes the field available for use in the
functions that operate upon the
referencing file.
Part 2 Hands on
Thank You