cool2e trg ppt1
Post on 06-Apr-2018
224 Views
Preview:
TRANSCRIPT
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 1/192
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 2/192
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 3/192
Accenture-Internal Use Only 3
COOL:2E Training
Contents
•Introduction to COOL:2E
•Getting Started
•Data Modeling
•Building Access Paths
•Building Applications
•Generating Applications
•COOL:2E/1E Utilities
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 4/192
Accenture-Internal Use Only 4
Introduction to COOL:2ECOOL:2E Objectives
– An application development tool
– Allows efficient design, development,implementation & maintenance of applicationsoftware
– Better than third generation development methods
– Knowledge of programming language not required
– Platform independent application design
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 5/192Accenture-Internal Use Only 5
Introduction to COOL:2ECOOL:2E Objectives
– Design closer to user requirements
– Higher quality applications
– Ease of maintenance and enhancement
– Language independent design – Applications that make effective use of platform
– Increased Productivity
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 6/192Accenture-Internal Use Only 6
Implementation independenceApplication design developed as high level business logic and
design
Applications stored as COOL:2E design model
Same application design can generate application to run on
AS/400, IBM mainframes, RS/6000
Introduction to COOL:2ECOOL:2E Design Principles
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 7/192Accenture-Internal Use Only 7
Data-driven DesignApplication design starts with the identification of business
entities and their relationship
Entity-Relationship modeling is used to create the COOL:2E
data model
Functions for the end user are subsequently built on the datamodel
Introduction to COOL:2ECOOL:2E Design Principles (contd..)
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 8/192
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 9/192Accenture-Internal Use Only 9
• COOL:2E Rapid Prototyping Methodology (RPM) is adata-driven, pragmatic approach to ApplicationDevelopment
• Rapid Prototyping Methodology
– Analyze
• System analysis, E-R diagram, COOL:2E Datamodel, Primary access paths, function flows anddevice designs
Introduction to COOL:2EApplication Development
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 10/192
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 11/192Accenture-Internal Use Only 11
– Change design model as necessary
– Update the function design for above changes
– Regenerate dependant elements
Introduction to COOL:2EApplication Maintenance
I d i COOL 2E
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 12/192
Accenture-Internal Use Only 12
COOL:2E
Application development tool for AS/400
Includes COOL:2E/1E
COOL:2E/2G
Provides PC based GUI for COOL:2ECOOL:2E/CSG (Client Server Generator)
Option to COOL:2E which allows distributed functionality
on multiple platforms
Introduction to COOL:2ECOOL:2E Products
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 13/192
Accenture-Internal Use Only 13
– Entity Relationship Specification
• Automatic creation of a data dictionary
• Free format text to describe any design object
• Automatic documentation of the design model
• Specification of domain checks
– Access Paths
• Logical views to support functions
• Retrieval of existing DB2/400 descriptions (assimilation)
Introduction to COOL:2ECOOL:2E Features
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 14/192
Accenture-Internal Use Only 14
– Functions
• Auto creation of action diagram & panel/report design
• Modular design
– Panels & Reports
• Automatic design of panel & report layouts• Interactive painting facilities
• Panel design prototyping facilities
Introduction to COOL:2ECOOL:2E Features (contd…)
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 15/192
Accenture-Internal Use Only 15
– HLL code generation
• DDS or SQL for database
• DDS for panels & reports
• RPG/COBOL for AS/400 stand alone programs
• RPG/COBOL for server and COBOL/2 for client
• Automatic help text generation
Introduction to COOL:2ECOOL:2E Features (contd…)
COO
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 16/192
Accenture-Internal Use Only 16
– Other features• Automatic implementation of object naming standards
• Automatic implementation of panel design standards
• Automated documentation of generated systems
• Cross reference facilities
• Integration of user source code in generated functions
• Regeneration of source code after changes in design
• Facilities for commitment control, journaling & errorhandling
• Automatic referential integrity & domain checks
Introduction to COOL:2ECOOL:2E Features (contd…)
Getting Started
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 17/192
Accenture-Internal Use Only 17
Contain the files and objects needed to use COOL:2E products – Y1SY COOL:2E/1E Products
– Y1SYVENG COOL:2E/1E National Language Library
– Y2SY COOL:2E Base products
– Y2SYVENG COOL:2E National Language Library – Y2SYMDL COOL:2E null model
– Y2SYCBL COOL:2E COBOL generators
– Y2SYRPG COOL:2E RPG generators
– Y2SYSRC COOL:2E source
Getting StartedCOOL:2E Product Libraries
G tti St t d
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 18/192
Accenture-Internal Use Only 18
It is the model in which the development team creates anapplication and in which initial generation takes place.
Objects are tested in the development environment.
Getting StartedDevelopment Environment
Getting Started
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 19/192
Accenture-Internal Use Only 19
Model Library – Library in which the model resides
Generation Library
– Associated with each model library
– Contains source files, compiled programs, help text, access
paths (created using DDS) and journals SQL Collection
– Exists only if SQL is used for data definition
– Contains files, journals, data dictionaries & SQL access paths
Getting Started
Development Libraries
Getting Started
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 20/192
Accenture-Internal Use Only 20
YCRTMDLLIB command creates a modelYCRTMDLLIB Command Parameters
Model Library Name (MDLLIB)
Generation Library Name (GENLIB)
Design Standard (DSNSTD) like *CUATEXT etc.
File generation method : DDS/SQLSQL Collection Library (SQLLIB)
Naming Prefixes
Object Prefix (OBJPFX)
Message Prefix (MSGPFX)
Getting Started
Creating/Using a Model
Getting Started
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 21/192
Accenture-Internal Use Only 21
YCRTMDLLIB Command Parameters (contd…) Message File Name (MSGVNM)
Default HLL (HLLGEN)
HLL Naming Convention (HLLVNM)
Build Library List using YBLDLIBLST
Change job’s library list to contain COOL:2E DevelopmentLibraries and Product Libraries
Run command YBLDLIBLST <LIBL-Name>
Getting Started
Creating/Using a Model (contd…)
Getting Started
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 22/192
Accenture-Internal Use Only 22
User Can go through the menu options in ADR1, selectingSYNON/2E option
User can Enter/update the COOL:2E/2 model as
Designer(*DSNR) or as a Programmer (*PGMR) or (*USER)
Getting Started
Creating/Using a Model (contd…)
Getting Started
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 23/192
Accenture-Internal Use Only 23
MAIN COOL:2E Main Menu
Level . : 1System: XXXX
Select one of the following:
Design Model 1. Display Designer (*DSNR) menu2. Display Programmer (*PGMR) menu3. Display User (*USER) menu
8. Work with Model Object Lists9. Change to work with another model
Commands 50. COOL:2E commands in alphabetical order
51. Commands to set up or alter a model52. Commands to copy a model53. Commands to create an application
54. Commands to document a model More...Selection or command _________________________________________===>
Getting Started
Creating/Using a Model (contd…)
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 24/192
Accenture-Internal Use Only 24
•A Data Model is a structured description of a set of data and its
relationships which can be used to represent the business of an
organization
•Entity-Relation (E-R) modeling techniques are used to build a
conceptual data model•Conceptual data model is then entered in the COOL:2E/2 to build
COOL:2E/2 data model
Data Modeling
What is a Data Model?
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 25/192
Accenture-Internal Use Only 25
Data Modeling
Entity-Relationship (E-R) Modeling
•Identify Primary Entities and their attributes
•Identify Relations between Entities and between Entities and
the Attributes
•Normalize the Data Model
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 26/192
Accenture-Internal Use Only 26
Entity-Relationship (E-R) Modeling
Identifying Primary EntitiesReview the data items from the analysis of business
information
Select objects that are important to the business e.g. entities
important to end users
Select objects about which information must be storedIdentify the business dimensions
Generalize or differentiate Entities
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 27/192
Accenture-Internal Use Only 27
Entity-Relationship (E-R) Modeling
Identifying Primary Entities - example
Sales Order Entry form of ABC Inc. is shown belowABC Inc. Customer Copy
Customer Code:
Name: Phone:
Address: Order No.:
Date:
Product Code Description Qty Price Total
________ ____________ ____ ____ ___
________ ____________ ____ ____ ___
The following primary entities can be identified
a) Company b) Customer c) Order d) Product
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 28/192
Accenture-Internal Use Only 28
g
Entity-Relationship (E-R) Modeling
Identifying Primary Entities - example
Further study of business of ABC Inc. revealed that products
are purchased from vendors for which purchase orders are
generated. Therefore the following additional entities were
identified
a) Vendor b) Purchase OrderGeneralize Entities
Combine two entities representing different types of the same
thing into one entity
Differentiate Entities
Differentiate different types of the same thing as twodifferent entities
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 29/192
Accenture-Internal Use Only 29
Data Modeling
Entity-Relationship (E-R) Modeling
Identifying Entity AttributesIdentify informational details of an entity
Each informational detail of an entity can form the attribute
of the entity
Example - Customer has the following attributes
Customer Code
Customer Name
Customer Address
Identify Domains which are the possible values of theidentified attributes
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 30/192
Accenture-Internal Use Only 30
Data Modeling
Entity-Relationship (E-R) Modeling
Identifying RelationsIdentify relations between Entity and its attributes and
between different Entities
Categorize relationship types by
Optional/Mandatory
CardinalityInvolution
Select Primary Key or Unique Identifier for an Entity
Data Modeling
E tit R l ti hi (E R) M d li
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 31/192
Accenture-Internal Use Only 31
Entity-Relationship (E-R) Modeling
Identifying RelationsOptional/Mandatory - Is the relationship Mandatory or
Optional?
Cardinality - Is the connection one-to-one, one-to-many or
many-to-many?
Number of entity instances for a relationshipInvolution - Does the connection exist between two
different entities or from the same entity to itself?
e.g. relation between employee and a manager when
manager himself is an employee.
Data Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 32/192
Accenture-Internal Use Only 32
Entity-Relationship (E-R) Modeling
Identifying Relations
One-To-One Relation - each instance of one entity is related to
one instance of another entity
assigned to
e.g. Salesperson Territory
has
One-To-Many Relation - One instance of an entity is related tomultiple instances of another entity
places
e.g. Customer Order
placed by
Data Modeling
Entity Relationship (E R) Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 33/192
Accenture-Internal Use Only 33
Entity-Relationship (E-R) Modeling
Identifying RelationsMany-To-Many Relation - each instance of one entity is
related to more than one instance of another entity and vice
versa
e.g.
orders
ordered byOrder Product
Data Modeling
E i R l i hi (E R) M d li
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 34/192
Accenture-Internal Use Only 34
Entity-Relationship (E-R) Modeling
Identifying RelationsSelect Primary Key or Unique Identifier
Primary Key - An attribute or group of attributes
assigned to an entity to uniquely identify an instance of
the entity e.g. Customer
K Customer Code
Customer Name
Customer Address
Primary Key can be a single attribute, a relationship or a
combination of attributes and relationships
Data Modeling
E tit R l ti hi (E R) M d li
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 35/192
Accenture-Internal Use Only 35
Entity-Relationship (E-R) Modeling
Identifying RelationsImplement Entity to Entity Relationship using Foreign
Key
Foreign Key - An attribute or group of attributes of an
entity which connects this instance with an instance of
another entity
The primary key of one entity when used in another
entity is called a Foreign key
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 36/192
Data Modeling
Entity Relationship (E R) Modeling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 37/192
Accenture-Internal Use Only 37
Entity-Relationship (E-R) Modeling
Identifying Relations - Foreign Key
example: Many-To-Many relationworked on by
Project Employeeworks on
worked on by has
Project Project Team Employeeworks on part of
Project Employee
K Project Code K Employee Code
Project Name Employee Name
Project TeamK Project Code
K Employee Code
Data Modeling
Normalizing the Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 38/192
Accenture-Internal Use Only 38
Normalizing the Data Model
Normalization Involvesregrouping attributes
splitting entities
reassigning primary keys
Functionally Dependent Attribute
for each value of the key, there is only one value of non-keyattribute
Full Functional Dependent Attribute
non-key attributes are dependent on all the key attributes of
a composite key
Data Modeling
N li i th D t M d l
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 39/192
Accenture-Internal Use Only 39
Process of NormalizationCreating First Normal Form (1NF)
eliminate repeating data groups
e.g. Order splits into Order Header & Order Detail
Creating Second Normal Form (2NF)
entity is 1NFevery non-key attribute is fully functionally dependent
on primary key
Creating Third Normal Form (3NF)
entity is 2NF
each non-key attribute is not dependent on another non-key attribute
Normalizing the Data Model
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 40/192
Accenture-Internal Use Only 40
COOL:2E Data Model
COOL:2E Objects (design elements)File
represents an entity e.g. Order
Field
describes an item of data e.g. Order Number
Conditiondescribes the values or set of values (domains)
Relation
describes connection between two files or between file and
field e.g. refers to, owned by
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 41/192
Accenture-Internal Use Only 41
COOL:2E Data Model
Conceptual Model COOL:2E Data(E-R Model) Model
---------------------------------------------------------------
Entity File
Attribute Field
Relationship RelationDomain Field Conditions:
Reference field types
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 42/192
Accenture-Internal Use Only 42
COOL:2E Data Model
•Model can be accessed as designer (*DSNR) or as programmer(*COOL:2E provides facilities to enter / update the data model
•PGMR)
•Edit Database Relations panel allows the entry of data model to
COOL:2E
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 43/192
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 44/192
Accenture-Internal Use Only 44
COOL:2E Data Model
COOL:2E Files
Each COOL:2E File has a Name and a File TypeCOOL:2E File Naming rules
must be valid COOL:2E Name
unique within the model
up to 25 characters including embedded blanks
e.g. Purchase Order is a valid COOL:2E file NameCOOL:2E File Types
File Attribute Description Example
Database CPT Capture file Order Entry
REF Reference file Company file
Non database STR & RCD Structure file Audit date ×tamp
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 45/192
Accenture-Internal Use Only 45
COOL:2E Files
Reference (REF) files
master files that typically contain non-volatile information
e.g. Customer, Product, Area Code
Capture (CPT) files
contain transactional data that is recorded regularlye.g. Order, Ledger Entry
Structure (STR) files
contain group of fields which can be included in other files
using Includes relation
e.g. Audit Stamp file
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 46/192
Accenture-Internal Use Only 46
COOL:2E Data Model
COOL:2E Files
Default functions
standard functions are automatically defined for files
default functions depend on file types
Default functions for REF files
Function Access Path
CRTOBJ - Create Object UPD
DLTOBJ - Delete Object UPD
CHGOBJ - Change Object UPD
SELRCD - Select Record RTVEDTFIL - Edit File RTV
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 47/192
Accenture-Internal Use Only 47
COOL:2E Files
Default functions for CPT files
Function Access Path
CRTOBJ - Create Object UPD
DLTOBJ - Delete Object UPDCHGOBJ - Change Object UPD
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 48/192
Accenture-Internal Use Only 48
COOL:2E Data Model
COOL:2E Files
Creating/Defining
At the Edit Database Relations panel, press F10 to
show Define Objects panel
In the Object type column, enter FIL
Type File Name in Object Name columnType CPT or REF or STR in Object attr column
depending on the file type
Defined as relation for the file is automatically created
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 49/192
Accenture-Internal Use Only 49
Op: XXXXXXXX XXXXXXXXXX 22/05/06 15:31:12
DEFINE OBJECTS XXXXXX
Object Object Object Referenced Field Edittype name attr field usage field
___ ________________________ ___ ________________________ ___ ____ ________________________ ___ ________________________ ___ ____ ________________________ ___ ________________________ ___ _
___ ________________________ ___ ________________________ ___ ____ ________________________ ___ ________________________ ___ _
___ ________________________ ___ ________________________ ___ ____ ________________________ ___ ________________________ ___ ____ ________________________ ___ ________________________ ___ _
+
F3=Exit
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 50/192
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 51/192
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 52/192
Accenture-Internal Use Only 52
COOL:2E Fields
Field Attribute Values
Basic attributes: length, implementation name
Text: Left Hand Side (LHS) text, Right Hand Side (RHS)
Text, Column Headings
Validation attributes: upper/lower case checking,Modulus checking, valid name checking, validation
through a check condition
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 53/192
Accenture-Internal Use Only 53
COOL:2E Fields
Field Usage
Two types: Database fields and Function fields
Database fields
Code (CDE) fields:- used for key fields e.g. Company
CodeData attribute (ATR) fields: used for non-key fields e.g.
Company Name
Function fields
fields used only in functions but do not reside in
database
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 54/192
Accenture-Internal Use Only 54
COOL:2E Fields
Function fields (contd…)
fields used only in functions but do not reside in database
fields can be added to data dictionary and accessed in
device designs and action diagrams
6 function field usage typesCNT (count) DRV (derived)
MAX (maximum) MIN (minimum)
SUM (sum) USR (user-defined)
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 55/192
Accenture-Internal Use Only 55
COOL:2E Fields
Default Condition
supplies the default value for a field
*NONE: no default condition
condition name: COOL:2E condition supplies default
value*DTAARA: Default field value is retrieved from data area
specified for the Data area field
Defining Field as a Data Area
specify *DTAARA as default condition
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 56/192
Accenture-Internal Use Only 56
COOL:2E Fields
Creating/Defining
In the Object type column of Define Objects panel, enter
FLD
Type Field Name in Object Name column
Type COOL:2E field type in the Object attr columnType Referenced field if the field refers to another field for
domain
In the Field Usage column, type CDE (Code) or ATR
(attribute) or a function field usage
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 57/192
Accenture-Internal Use Only 57
Op: XXXXXXXX QPADEV000H 22/05/06 15:31:12
DEFINE OBJECTS XXXXX
Object Object Object Referenced Field Edittype name attr field usage field
FIL DealerFIL Dealer groupFLD Dealer Code CDE
FLD Dealer name ATRFLD Dealer Address 1 ATRFLD Dealer Address 2 ATR
FLD Dealer Group Code CDE
FLD Dealer Group Name ATRFLD Dealer Group Credit Limit ATR
+
F3=Exit
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 58/192
Accenture-Internal Use Only 58
COOL:2E Condition
Specifies the values or set of values a field may take
Condition has a Name, a type and an associated value
Condition Types
VAL (Value) and LST (Value List) are valid condition
types for status fieldsCMP (Compare) and RNG (Range) are valid condition
types for non-status fields
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 59/192
Accenture-Internal Use Only 59
COOL:2E Condition
Value (VAL) Condition
used to specify single values that status field can take
two related values:
internal value - value in the implemented database
external value - value displayed/entered on the
screene.g. Premium paid condition has file value “Y”
List (LST) Condition
used to specify list of values that status field can take
screen functions implement prompt key (F4)
e.g. Invoice Flag can have valid values U, D, P, H, C and thecondition Invoice not due has file value “U”
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 60/192
Accenture-Internal Use Only 60
COOL:2E Condition
Compare (CMP) Condition
defined in terms of a fixed value and an operator
valid operators: *EQ, *NE, *GT, *LT, *GE, *LE
e.g. Order Quantity field can have an associated condition
by name greater than 10 with operator *GT and value 10Range (RNG) Condition
defines range of values that field can take
defined in terms of From and To values
e.g. Stock Quantity field can have an associated condition
by name between 10 and 100 with From value as 10 andTo value as 100
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 61/192
Accenture-Internal Use Only 61
COOL:2E Relation
Expresses association between two files or between a file and
a field
Eight relation types
Defined as, Extended by, Has, Includes, Known by,
Owned by, Qualified by and Refers to3 different relation usage groups
Definition relations - declare files to exist
Key relations - define the keys in files
Attribute relations - declare non-key fields in files
Database relations can be entered using Edit Database Relations panel
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 62/192
Accenture-Internal Use Only 62
COOL:2E Relation
Usage Type Relation Used for
Definition Defined as File-to-file relationship
Key Owned by File-to-file relationship
Known by File-to-field relationshipQualified by File-to-field relationship
Attribute Refers to File-to-file relationship
Includes File-to-field relationship
Has File-to-field relationship
Other Extended by File-to-file relationship
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 63/192
Accenture-Internal Use Only 63
COOL:2E Relation
Defined as Relation
File-to-file relation
declares that a file exists
e.g.
Product Defined as ProductDefined as relation is automatically created for a file if a
reference is made to a non-existing file
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 64/192
Accenture-Internal Use Only 64
COOL:2E Relation
Owned by Relation
File-to-file relation
denotes a parent-child relationship
primary key(s) of owning file become part of primary
key of the owned by filekeys of owning file are incorporated as high order keys in
the owned file
e.g.
Order Detail Owned by Order
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 65/192
Accenture-Internal Use Only 65
COOL:2E RelationKnown by Relation
File-to-field relation
specifies the key field(s) for a file
e.g.
FIL Order Known by FLD Order NumberFIL Order Has FLD Quantity
Qualified by Relation
File-to-field relation
to qualify a file identifier by one or more variable factors like
date, time, sequence number etc
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 66/192
Accenture-Internal Use Only 66
COOL:2E Relation
Qualified by Relation
used for entities which represent continuum of values like
currency rates having effective date
appropriate fields of referring file can be redirected (RDR) to
the effective field in referred file with a possibility of
specifying *PREVIOUS or *NEXT
field in the relation must be ATR and not CDE
e.g.
Product Price Owned by Product Code
Product Price Qualified by Effective dateProduct Price Has Product price
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 67/192
Accenture-Internal Use Only 67
COOL:2E Relation
Refers to Relation
File-to-file relation
specifies that a file refers to another file
Allows access to any of the fields on the referred to file from
a referring file
Primary key of the referred file becomes foreign key in the
referring file
Virtual field is created in the referring file and cannot be
updated from the referring file
e.g.Order Detail Refers to Product
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 68/192
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 69/192
Accenture-Internal Use Only 69
COOL:2E Relation
Extended by Relation
File-to-file relation
declares a file to be extension of another file
If used with Owned by relation, the fields of the extended file
are available as Virtual Fields in the file being extended
It is recommended to use Extended by relation along with
Owned by relation
e.g.
Customer Extended by Customer Detail
Data ModelingCOOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 70/192
Accenture-Internal Use Only 70
COOL:2E Relation
For Text
For Text clause can be added to a relation to further clarify
the description of a relationship
If a file refers to another file more than once, For Text clause
can be used for further clarification
e.g.
Order Refers to Customer
For: Ordering Sharing: *ALL
Order Refers to Customer
For: Invoicing Sharing: *ALL
Data ModelingCOOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 71/192
Accenture-Internal Use Only 71
COOL:2E Relation
Creating/Defining At the Object column of Edit Database Relations panel,
enter the file name
Type the relationship in Relation column
Type the referenced object (File or Field) in the Referenced
Object column
Edit File Entries
Type E in front of any relation to display Edit File Entries
panel
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 72/192
Accenture-Internal Use Only 72
• *DSNR XXXXXX Op: XXXXXXXX QPADEV000H 22/05/06 15:25:26• EDIT DATABASE RELATIONS XXXXXX• => Rel lvl:
• ? Typ Object Relation Seq Typ Referenced object• FIL Dealer Owned by FIL Dealer group• FIL Dealer Known by FLD Dealer Code• FIL Dealer Has FLD Dealer name
• • FIL Dealer Has FLD Dealer Address 1• FIL Dealer Has FLD Dealer Address 2
• • FIL Dealer Group Known by FLD Dealer Group Code•
FIL Dealer Group Has FLD Dealer Group Name• FIL Dealer Group Has FLD Dealer Group Credit Limit
• •
•
• • •
• +• SEL: Z(n)-Details, N(n)-Narr, S(n)-Select, E(n)-Entries, V-Virt.fields, F-Funcs
• F3=Exit F5=Reload F7=Fields F9=Insert F10=Define obj. F17=Services• 'Dealer' type FIL not found.
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 73/192
Accenture-Internal Use Only 73
• Op: XXXXXXXX QPADEV000H 22/05/06 16:11:55• EDIT FILE ENTRIES XXXXXXX• • File . . . . . . : Dealer
• • ? Field Type Ocr Et Ksq GEN name Length Renamed• • Dealer Group Code CDE K 1 AICD 6• Dealer Code CDE K 2 AHCD 6• Dealer name TXT A AJTX 25• Dealer Address 1 TXT A AKTX 25• Dealer Address 2 TXT A ALTX 25• • • • • • • • • • SEL: Z-Details, R-Replace field, U-Usage, M-Mapped field parameters.• F3=Exit
Data ModelingCOOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 74/192
Accenture-Internal Use Only 74
COOL:2E Relation
Edit Field DetailsType E2 in front of the File-field relation to display Edit
Field Details panel for the field OR
Type Z in front of the field entry in the Edit File Details
panel
Data Modeling
COOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 75/192
Accenture-Internal Use Only 75
Op: XXXXXXXX QPADEV000H 22/05/06 16:11:55
EDIT FIELD DETAILS XXXXXX
Field name . . . . . : Booking payment status Document’n seq . : Type . . . . . . . . : STS REF: Payment Status Field usage . : ATR
Internal length. . . : 1 Data type : A lowercase: GEN name . : BKSTK’bd shift :
Headings . . . . . . : -Text . . . . . . . . : Booking payment statusLeft hand side . . . : Booking payment status
Right hand side. . . : Value
Column headings. . . : Booking: payment
: statusValidation . . . . . : -Default condition. . : *NONECheck condition. . . : *NONE
Mandatory fill . . . : (Y, )Valid System name. . : (Y,’ ‘) Translate cnd vlues : Blank (Y,’ ‘)
F3=Exit no update F8=Change name/type F9=Conditions F20=Narrative
Data ModelingCOOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 76/192
Accenture-Internal Use Only 76
COOL:2E Relation
Edit Field ConditionField condition can be added/modified using the Edit Field
Condition and Edit Field Condition Detail panels
Press F9 on the Edit Field Details panel to display Edit
Field Condition panel
In the Edit Field Condition panel, type condition name and
condition type (VAL, LST, CMP, or RNG) and press Enter
to display Edit Field Condition Details panel
In the Edit Field Condition Details panel, type the
appropriate condition details like value, range etc.
Data ModelingCOOL:2E Data Model
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 77/192
Accenture-Internal Use Only 77
Op: XXXXXXXX QPADEV000H 22/05/06 16:11:55 EDIT FIELD CONDITION DETAILS GXMMDL
Field name . . . . . : Credit status Attr: STS Mode: *ADDLength of file . . . : 1
on display. . : 4
Condition. . . . . . : Blue chip
Type . . . . . . . . : VAL
File value Display valueStatus value A A1
F3=Exit F8=Change name F20=Narrative
Building Access PathsIntroduction
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 78/192
Accenture-Internal Use Only 78
COOL:2E creates default access paths (PHY, RTV & UPD)
when a file is definedAdditional access paths may be created
COOL:2E access paths are implemented as one or more objects
Access path defines a physical file or the logical view of that file
Access path can be used to define order, column selection &
record selection
Building Access Paths
Introduction
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 79/192
Accenture-Internal Use Only 79
Six types of Access Paths
Physical (PHY)
Update (UPD)
Retrieval (RTV)
Resequence (RSQ)
Query (QRY)Span (SPN)
Building Access Paths
Physical (PHY) Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 80/192
Accenture-Internal Use Only 80
•Single format file containing fields derived from resolution of all
relations on the file.Not keyed
No virtual fields
Created automatically for every REF/CPT file
Not referenced directly by functions
No additional PHY access paths allowed for a file
Created if a PF is retrieved through assimilation
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 81/192
Building Access Paths
Retrieval (RTV) Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 82/192
Accenture-Internal Use Only 82
•Uniquely keyed, single format access path used by functions to
retrieve recordsKeyed exactly as the UPD access path
Allows virtual fields
Created automatically for every REF/CPT file
Associated with the UPD access path
Non-key fields can be droppedCan select/omit records
Possible to define multiple RTV access paths for a given file, but
all should have same key fields
Building Access PathsResequence (RSQ) Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 83/192
Accenture-Internal Use Only 83
•Uniquely or non-uniquely keyed single format access path used by
functions to retrieve recordsMust be created explicitly
Defaults to the keys of the based on file
Allows default keys to be changed which need not be unique
Allows virtual fields
Associated with RTV, which points to a UPD
Many RSQ access paths possible for single file
Building Access PathsQuery (QRY) Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 84/192
Accenture-Internal Use Only 84
•Keyed single format access path used by functions to retrieve
recordsMust be created explicitly
Allows virtual fields on key & non-key fields
Available only for Print Object/Print File functions
Defaults to the keys of the based on file
Allows default keys to be changedAssociated with RTV, which points to a UPD
Many QRY access paths possible for single file
Implemented by OPNQRYF or Dynamic SQL
Building Access PathsSpan (SPN) Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 85/192
Accenture-Internal Use Only 85
•Keyed multi-format access path
•Used by Edit & Display transaction functions to retrieve recordsfrom a pair of related files
Must be created explicitly
Defaults to keys of based on files
These keys can be changed
Allows virtual fieldsAssociated with RTV, which points to a UPD
Many SPN access paths possible for single file
Building Access PathsAccess Path Summary
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 86/192
Accenture-Internal Use Only 86
# Access PathType
Real Fields Key Fields VirtualFields
Virtual Keys
1. PHY Yes x x x
2. UPD Relation x x
3. RTV
Relation
x4. RSQ User x
5. QRY User
6. SPN User x
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 87/192
Building Access PathsAdding an Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 88/192
Accenture-Internal Use Only 88
Type Z against any relation on the Edit Database Relations panel
for the file and press Enter On the resulting Edit File Details panel, enter Access Path name
and type and press Enter
Type Z to zoom into the new access path and specify details on
the Edit Access Path Details panel
Type Z on the Edit Access Path Details panel to go to Edit Access Path Format Entries panel
Building Access PathsAdding an Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 89/192
Accenture-Internal Use Only 89
Op: XXXXXXXX QPADEV000H 22/05/06 16:11:55
EDIT FILE DETAILS SYNGXMMDL
File name . . . . . . . . : Customer
Attribute . . . . . . . . : REF Field reference file. : *NONEDocumentation sequence. . : Source library. . . . : SYNGXMGEN
GEN format prefix . . . . : AB Distributed . . . . . : N (Y,N)
Assimilated physical. . . :
Record not found message. : Customer NF Msgid. : USR0001
Record exists message . . : Customer EX Msgid. : USR0002
? Typ Access path Source mbr Key Maint Held
PHY Physical file UUABREP NONE
UPD Update index UUABREL1 UNIQUE IMMED
RTV Retrieval index UUABREL0 UNIQUE IMMED
RSQ Customer by Name
SEL: Z-Details, G/J-Generate, E-STRSEU, D-Delete, N-Narrative,
H-Hold/Release, O-Overrides, U-Usage, F-Function refs., L-Locks.
F3=Exit F5=Reload F7=Functions F8=Change name F17=Services F20=Narrative
Building Access PathsAdding an Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 90/192
Accenture-Internal Use Only 90
Op: XXXXXXXX QPADEV000H 22/05/06 16:11:55
EDIT ACCESS PATH DETAILS SYNGXMMDL
File name . . . . . . . . : Customer Attribute . : REF
Access path name. . . . . : Customer by Name Type. . . . : RSQUnique key. . . . . . . . : (Y, blank)
or Duplicate sequence . . : F (F-FIFO, L-LIFO,
Maintenance . . . . . . . : I (I-IMMED, D-DLY, R-REBLD)
Alternate collating table :
Allow select/omit . . . . : (S-Static, D-Dynamic, ' '-None)
Generation mode . . . : M (M-MDLVAL, D-DDS, E-EXP, S-SQL, X-UNX)
Source member name . . : UUABREL2
Source member text . . : Customer Customer by Name
Format Format text Associated
? Seq name (Based on file) Retrieval access path
1 FABREAO Customer Retrieval index
SEL: Z-Acp.entries, R-Acp.relations, S-Select/omit sets, A-Associated Acps.
F3=Exit F8=Rename F20=Narrative
Building Access Paths
Adding an Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 91/192
Accenture-Internal Use Only 91
Op: XXXXXXXX QPADEV000H 22/05/06 16:11:55
EDIT ACCESS PATH FORMAT ENTRIES SYNGXMMDL
File name . . . . . . . . : Customer Attribute . : REF
Access path name. . . . . : Customer by Name Type. . . . : RSQFormat text . . . . . . . : Customer
Based on. . . . . . . . . : Customer Format No . : 1
GEN Key Altcol Ref
? Field Name Type no. Dsc seq cnt
Customer Code CDE ABCD K 1 1
Customer Name TXT ABTX A 1
Customer Address 1 TXT ACTX A 1
Customer Address 2 TXT ADTX A 1
Customer Address 3 TXT AETX A 1
Customer Credit Limit VAL AAVA A 1Customer Limit Used VAL ABVA A 1
SEL: Z-Field details.
F3=Exit F7=Relations
Building Access Paths
Adding an Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 92/192
Accenture-Internal Use Only 92
Span (SPN) Access Path
A SPN access path can only be specified over files with
Owned by or Refers to relationships
A SPN access path must be created over an owning or referred
to file
Press F9 on Edit Access Path Details panel to first select theprimary format and then the secondary format
Building Access PathsModifying an Access Path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 93/192
Accenture-Internal Use Only 93
Following may be changed from Edit Access Path Details panel
Unique/Duplicate key sequence
Access Path Maintenance (Immed, Rebld, Dly)
Alternate Collating Sequence
Select/Omit Criteria
Generation Mode (DDS/SQL)Source member name & text
Building Access PathsArrays
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 94/192
Accenture-Internal Use Only 94
Arrays have a defined layout with each element having the same
layoutMust have a defined key that acts as an index
Key is any subset of the fields with a maximum composite key
length of 990
Sequence of equally keyed elements in a non-unique array is not
guaranteedEach key in the composite key acts as a different array
dimension
Key can be ascending/descending
For key sequence, signs are ignored
Building Access PathsArrays
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 95/192
Accenture-Internal Use Only 95
Arrays can be used by the following four functions:
CRTOBJ - to add an elementCHGOBJ - to change an element
DLTOBJ - to delete an element
RTVOBJ - to read an element or set of elements
Building Access PathsArrays
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 96/192
Accenture-Internal Use Only 96
Features
Can be used to define a set of fields to be used as a parameter
entry to a function
Arrays are initialized on the first program call
Subsequent calls will not clear the array
Building Access PathsArrays
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 97/192
Accenture-Internal Use Only 97
Adding/Changing/Deleting Arrays
Enter *a in the option field or *ARRAYS in the positional field of Edit Database Relations panel
Enter Z against *Arrays file in the resulting panel to see a list of
arrays
Type an array name and press Enter
Type Z against the array name and press Enter to define fieldsType D against an existing array and press Enter to delete
Building Access PathsGenerating & Compiling
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 98/192
Accenture-Internal Use Only 98
Generate source members and compile the generated source to
produce objects, files & tables
From Edit Database Relations panel, press F17 for services
On Display Services Menu, type 8 at bottom of screen to
display Display All Access Paths panel
Type J (batch generation) or G (interactive generation) andpress Enter
Building Applications
COOL:2E Functions
• COOL 2E f ti i th t t fil & fi ld
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 99/192
Accenture-Internal Use Only 99
• COOL:2E function is a process that operates on files & fields
• COOL:2E Functions can be linked to create larger processes thatbecome the building blocks of an application
• Several COOL:2E functions may be implemented in a single
HLL program
Building Applications
Implementation of Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 100/192
Accenture-Internal Use Only 100
• COOL:2E functions are implemented in two ways
– External - the function is implemented as a separate HLL
program
– Internal - the function is implemented as source code inside
the calling function
Building Applications
COOL:2E Function Types
• 4 COOL:2E functions types
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 101/192
Accenture-Internal Use Only 101
4 COOL:2E functions types
– Standard Functions – Built-In Functions
– Functions Fields
– Message Functions
• Standard functions – specify the entire programs or subroutines
– User-defined processing can be specified
– Provide building blocks of an application
• Standard Functions
Building ApplicationsCOOL:2E Function Types
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 102/192
Accenture-Internal Use Only 102
Standard Functions
– Divided into 3 categories• Database Functions
• Device Functions
• User Functions
• Built-in Functions
– Execute functions like arithmetic operations, string
manipulation, control operations like commitment control
& program exit
Built in Functions
Building ApplicationsCOOL:2E Function Types
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 103/192
Accenture-Internal Use Only 103
Built-in Functions
Specified within action diagramsImplemented as in-line source code within calling functions
The Built-in functions are
1) Add 2) Commit
3) Compute 4) CONCAT -Concatenation
5) CVTVAR - Convert Variable6) DIV - Divide 7) DIV WITH REMAINDER
8) Exit Program 9) Modulo
Building ApplicationsCOOL:2E Function Types
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 104/192
Accenture-Internal Use Only 104
Built-in Functions
The Built-in functions are (contd…)
10) Move 11) Move All
12) MULT - Multiply 13) Quit
14) RTVCND - Retrieve Condition
15) Rollback 16) Set Cursor
17) Substring 18) SUB - Subtract
Function Fields
Building ApplicationsCOOL:2E Function Types
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 105/192
Accenture-Internal Use Only 105
Function Fields
A field whose value is not physically stored in the databaseDerived from other fields or files
One result parameter - the derived field
Variable number of input parameters used to derive the value
COOL:2E provides ready-made function fields
1) SUM - Sum 2) MAX - Maximum 3) MIN - Minimum4) CNT - Count 5) DRV - Derived 6) USR - User
Building ApplicationsCOOL:2E Function Types
Message Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 106/192
Accenture-Internal Use Only 106
Message Functions
Define workstation messagesImplemented using OS/400 message descriptions
Sent by a call to a CL subroutine
Can make direct references to fields in the data model
Building ApplicationsCOOL:2E Function Types
Message Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 107/192
Accenture-Internal Use Only 107
g
The Message functions are1) SNDERRMSG - Send Error Message
2) SNDINFMSG - Send Information Message
3) SNDCMPMSG - Send Complete Message
4) SNDSTSMSG - Send Status Message
5) RTVMSG - Retrieve Message6) EXCMSG - Execute Message
Building Applications
Standard Functions
Database Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 108/192
Accenture-Internal Use Only 108
• Database Functions
– Basic routines for accessing the database
– Implemented as part of an external function
– Can be used in many different functions
– There are 4 database functions
1) CRTOBJ - Create Object
2) CHGOBJ - Change Object
3) DLTOBJ - Delete Object
4) RTVOBJ - Retrieve Object
Building Applications
Standard Functions
• Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 109/192
Accenture-Internal Use Only 109
– Used in interactive & report programs – Consist of panel/report design & action diagram
– All device functions are external functions except for
PRTOBJ function
– Implemented as programs that operate over databases
Building Applications
Standard Functions
• Device Functions (contd…)
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 110/192
Accenture-Internal Use Only 110
– The Device Functions are
1) DSPRCD - Display Record
2) DSPRCD2 - Display Record 2 panels
3) DSPRCD3 - Display Record 3 panels
4) PMTRCD - Prompt Record5) EDTRCD - Edit Record
6) EDTRCD2 - Edit Record 2 panels
7) EDTRCD3 - Edit Record 3 panels
Building Applications
Standard Functions
• Device Functions (contd…)
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 111/192
Accenture-Internal Use Only 111
( )
– The Device Functions are
8) DSPFIL - Display File
9) EDTFIL - Edit File
10) SELRCD - Select Record
11) DSPTRN - Display Transaction
12) EDTTRN - Edit Transaction
13) PRTFIL - Print File
14) PRTOBJ - Print Object
Building Applications
Standard Functions
• U F ti
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 112/192
Accenture-Internal Use Only 112
• User Functions
– Means of incorporating user programs or subroutines into
COOL:2E generated applications
– Processing steps can be specified with action diagrams or
user-written HLL
– Implemented as inline code (internal functions) or call to
programs (external functions)
Building Applications
Standard Functions
User Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 113/192
Accenture-Internal Use Only 113
• User Functions
– The User Functions are
1) EXCINTFUN - Execute Internal Function
2) EXCEXTFUN - Execute External Function
3) EXCUSRPGM - Execute User Program4) EXCUSRSRC - Execute User Source
Building ApplicationsBasic Function Properties
• Function Name
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 114/192
Accenture-Internal Use Only 114
– up to 25 characters long including embedded blanks & mustbe unique within a file
• Function Components
– Function options
• allow the user to customize function features likedatabase changes, display features, exit control,
commitment control, exception routines, generation
options & environment options
Building Applications
Basic Function Properties
Function Components
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 115/192
Accenture-Internal Use Only 115
Function Parametersspecify the input and output parameters. Parameters are
also used to define local variables for the function
Device Designs
specify the visual presentation of the 2 types of devices
used by functions: Panels & ReportsAction Diagrams
specify the processing steps for function logic. This is a
combination of default COOL:2E supplied and optional
user defined processing logic
Building Applications
Basic Function Properties
Function Components
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 116/192
Accenture-Internal Use Only 116
Function class Parameters DeviceDesign
ActionDiagrams
Device Functions
Database Functions
User Functions
x
x
x
, x1
Messages
Function Fields
x
x
x
, x2 Built-In Functions x x
Building Applications
Basic Function Properties
Default Device Function Processing
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 117/192
Accenture-Internal Use Only 117
Default Device functions compile into working programswith default processing
Additional logic required for business processing
Building ApplicationsFunctions & Access Paths
Functions & Access paths
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 118/192
Accenture-Internal Use Only 118
Functions operating on a file are always attached to it by anaccess path
Functions can access many files with access paths based on
several files
A generated program can be made up of several functions each
accessing a different access pathDefault panel/report formats are derived from the function’s
access path
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 119/192
Building Applications
Additional Processing
Automatic additional logic for functions
Linking Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 120/192
Accenture-Internal Use Only 120
Linking Functions
Automatically links certain functions together
External update functions like EDTFIL are automatically
linked to database function like CHGOBJ
Building Blocks Approach
Functions are building blocksBy linking functions together, required functionality can be
achieved
Building Applications
Defining Functions
Accessing Functions
Display All Functions panel
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 121/192
Accenture-Internal Use Only 121
Display All Functions panel
select option from the Services Menu
Display File Functions panel
option F on a file in Edit Database Relations panel
Shipped Files Fields
COOL:2E shipped files contain the default data like built-infunctions, messages etc.
Type * in the Object field & DFN in relations field of Edit
Database Relations panel to access
DISPLAY ALL FUNCTIONS
Application area. : Source library: XXXXXXXX
? File Function Type GEN name
Building Applications
Defining Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 122/192
Accenture-Internal Use Only 122
Commodity Change Commodity CHGOBJ *N/ACommodity Create Commodity CRTOBJ *N/A
Commodity Delete Commodity DLTOBJ *N/A
Commodity Edit Commodity EDTFIL SXACEFR
Commodity Select Commodity SELRCD SXABSRR
Commodity Price Change Commodity Price CHGOBJ *N/A
Commodity Price Create Commodity Price CRTOBJ *N/A
Commodity Price Delete Commodity Price DLTOBJ *N/A
Commodity Price Edit Commodity Price EDTFIL SXAEEFR
Commodity Price Select Commodity Price SELRCD SXADSRR
SEL: Z-Dtls, P-Parms, N-Narr., F-Action diagram, S-Device Design, T-Structure,
A-Acp, G/J-Gen, E-STRSEU(pgm), L-Locks, D-Delete, U-Where used, 3-Doc.
F3=Exit F5=Reload
XXXXXXXX QPADEV000H 22/05/06 16:11:55
EDIT FUNCTIONS SYNSXT
File name. . . : Commodity ** 1ST LEVEL **
Building Applications
Defining Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 123/192
Accenture-Internal Use Only 123
? Function Function type Access pathChange Commodity Change object Update index
Create Commodity Create object Update index
Delete Commodity Delete object Update index
Edit Commodity Edit file Retrieval index
Select Commodity Select record Retrieval index
+
SEL: Z-Details, P-Parameters, F-Action diagram, S-Device design, N-Narrative,
T-Structure, A-Access path, U-Usage, G/J-Generate, D-Delete, C-Copy, L-Lock.
F3=Exit F5=Reload F7=File details F9=Add F17=Services
*DSNR SYNSXT Op: XXXXXXXX QPADEV0012 11/02/06
EDIT DATABASE RELATIONS XXXXX
=> * Rel lvl: DFN
Building Applications Defining Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 124/192
Accenture-Internal Use Only 124
? Typ Object Relation Seq Typ Referenced objectFIL *Arrays Defined as FIL *Arrays
FIL *Built in functions Defined as FIL *Built in functions
FIL *Configuration Table Defined as FIL *Configuration Table
FIL *Distributed File Defined as FIL *Distributed File
FIL *External Data Access API Defined as FIL *External Data Access API
FIL *Field attribute types Defined as FIL *Field attribute types
FIL *Job data Defined as FIL *Job data
FIL *Messages Defined as FIL *Messages
FIL *Program data Defined as FIL *Program dataFIL *Standard header/footer Defined as FIL *Standard header/footer
FIL *COOL:2E reserved pgm data Defined as FIL *COOL:2E reserved pgm data
FIL Audit Information Defined as FIL Audit Information
FIL Commodity Defined as FIL Commodity
FIL Commodity Price Defined as FIL Commodity Price
FIL Company Defined as FIL Company
+
Z(n)=Details F=Functions E(n)=Entries S(n)=Select F23=More optionsF3=Exit F5=Reload F6=Hide/Show F7=Fields F17=Services
Building ApplicationsDatabase Functions
• What are Database functions?
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 125/192
Accenture-Internal Use Only 125
– means of performing actions on database – defined as HLL subroutine
• 4 Database functions
1) CRTOBJ - routine to add a record to a file.
2) CHGOBJ - routine to update a record.3) DLTOBJ - routine to delete a record.
4) RTVOBJ - routine to retrieve one or more records.
• Default versions of CRT, CHG and DLT database
functions are created for all REF & CPT files.
Building Applications
Database Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 126/192
Accenture-Internal Use Only 126
a a a
• RTVOBJ must be created if needed.
• Additional processing before and after database accessmay be specified in the action diagram.
Building Applications
Database Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 127/192
Accenture-Internal Use Only 127
Function Purpose Access PathCRTOBJCHGOBJDLTOBJ
Add a single recordUpdate a single recordDelete a single record
UPDUPDUPD
RTVOBJ Read a record or record(s) RTV, RSQ
• Array Processing
Building Applications
Database Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 128/192
Accenture-Internal Use Only 128
– Even though arrays are not implemented as database files, the4 database functions can be defined over an array and used.
– DLTOBJ with no parameter will clear an array
Building ApplicationsDevice Functions
• What are Device Functions?
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 129/192
Accenture-Internal Use Only 129
– Interactive panels or reports
– Panel device functions for interactive user interface between
end user and application
– Report device functions for written presentation of data
– All device functions except PRTOBJ function are implemented
as external functions
Building ApplicationsDevice Functions
• Interactive device design editor
– Allows defining of
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 130/192
Accenture-Internal Use Only 130
Allows defining of
• field attributes
• positioning
• conditioning
• user function keys
• literals
– Can be accessed from Edit Functions, Edit All Functions, Edit
Function Devices, or the Display All Functions panels
• Device Standard Header device functions
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 131/192
Accenture-Internal Use Only 131
– Define Screen Format (DFNSCRFMT)
• to define standard screen header and footer for use by
other functions with attached screen design
– Define Report Format (DFNRPTFMT)
• to define standard report header and footer for use by
Print File report functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 132/192
• Single record device functions (contd...)
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 133/192
Accenture-Internal Use Only 133
– Display Record 2 panels (DSPRCD2)
• identical to DSPRCD except that it allows the record
details to extend into 2 device pages
– Display Record 3 panels (DSPRCD3)
• identical to DSPRCD except that it allows the record
details to extend into 3 device pages
• Single record device functions (contd…)
– Edit Record (EDTRCD)
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 134/192
Accenture-Internal Use Only 134
• defines a program to maintain (add, change or delete)records one at a time.
• If no key is specified, a key panel prompts for a key.
– Edit Record 2 panels (EDTRCD2)
• identical to EDTRCD except that it allows the recorddetails to extend into 2 device pages.
– Edit Record 3 panels (EDTRCD3)
• identical to EDTRCD except that it allows the record
details to extend into 3 device pages.
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 135/192
• Multiple record device functions (contd…)
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 136/192
Accenture-Internal Use Only 136
– Select Record (SELRCD)
• defines a program to display the records in a file
many at a time, using a subfile
• allows the user to select one record which is returned
to the calling program
• called from a function that requests a selection list.
• Single & multiple record device functions
– Display Transaction (DSPTRN)
d fi di l h d f
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 137/192
Accenture-Internal Use Only 137
• defines a program to display the records from aselected pair of database files
• the pair must be connected by an Owned by orRefers to relation
– Edit Transaction (EDTTRN)
• defines a program to maintain the records from aselected pair of database files
• the pair must be connected by an Owned by or
Refers to relation.
• Printer device functions
– Print File (PRTFIL)
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 138/192
Accenture-Internal Use Only 138
• defines a program to print records from a specified
access path.
– Print Object (PRTOBJ)
• defines a particular report fragment which will printthe records from a specified access path at any point
within a PRTFIL function
• can be embedded within other PRTOBJ functions.
• Standard Features of Device Functions
– Diagnostic messages
t t ’
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 139/192
Accenture-Internal Use Only 139
• message sent to program’s message queue • message subfile to show the pending messages
• allows second level text and substitution variables
– Highlighting of Errors
• a field in error is highlighted in reverse image
• cursor is positioned at first such field
– On-line Help Text
• pressing HELP key or F1 key results in call to ahelp program
• Standard Features of Device Functions
– Print Key
i t k i bl d t ll l i t
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 140/192
Accenture-Internal Use Only 140
• print key is enabled to allow panel prints
• print file is controlled by YPKYVNM model value
– Selection Columns
• Selection subfiles have selection column on the left
– Function key Usage
• CUA standards are followed e.g. F3 is exit
– Positioning facilities
• subfile programs have a positioning field
• Standard Features of Device Functions
– Single Page Subfile load up
bfil l d d d d b i
Building Applications
Device Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 141/192
Accenture-Internal Use Only 141
• subfiles are loaded on demand basis
• only when F8 or ROLLUP keys are pressed
– Concurrency checking and record locking
• updation programs do not hold locks upon database
while changes are entered or validated
• includes logic at the point of update to check forrecord lock by other users
– Overflow Handling
• report functions include handling of page overflow
• What are User Functions?
means of implementing additional user processing within
Building Applications
User Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 142/192
Accenture-Internal Use Only 142
– means of implementing additional user processing within
an existing function or as an independent implementation
along with an existing function
– e.g. batch functions for updating database having no
associated device or a user-written HLL program whichhas to be integrated to COOL:2E generated application
• Two types of User Functions
Free Form User functions
Building Applications
User Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 143/192
Accenture-Internal Use Only 143
– Free-Form User functions• specify actions that can be used within a function or
called from a function
• processing logic is defined through the Action
Diagram editor – User Coded User functions
• functions are user-written in HLL
• can be called or embedded
• Free-Form User Functions
Execute Internal Function (EXCINTFUN)
Building Applications
User Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 144/192
Accenture-Internal Use Only 144
– Execute Internal Function (EXCINTFUN)• allows specification of a section of an action diagram
for repeated use in other functions
• implemented as Internal function
– Execute External Function (EXCEXTFUN)
• allows specification of an HLL program using an
action diagram
• implemented as External function
• User Coded User Functions
Execute User Program (EXCUSRPGM)
Building Applications
User Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 145/192
Accenture-Internal Use Only 145
– Execute User Program (EXCUSRPGM)• describes interface to a user written HLL program
• parameters can be specified on the call
– Execute User Source (EXCUSRSRC)
• specifies that user-written HLL code be includedwithin the HLL source generated by COOL:2E for
an external function
• What are Message Functions?
means of defining messages of various types specifyingdiff fil f h if i
Building Applications
Message Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 146/192
Accenture-Internal Use Only 146
– means of defining messages of various types, specifyingdifferent message files for the message, specifying
substitution variables and changing message identifiers
– can be accessed by looking at functions of *MESSAGES file
• 6 Message Functions
– Send Error Message (SNDERRMSG)
• error message to be sent to a calling function
Building Applications
Message Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 147/192
Accenture-Internal Use Only 147
• error message to be sent to a calling function
• used for diagnostic messages arising from uservalidation
– Send Information Message (SNDINFMSG)
• information message be sent to the messagequeue of the calling program
– Send Completion Message (SNDCMPMSG)
• completion message to be sent to a calling
function
• 6 Message Functions
– Send Status Message (SNDSTSMSG)
• status message to be sent to a calling function
Building Applications
Message Functions
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 148/192
Accenture-Internal Use Only 148
• status message to be sent to a calling function
• informs of the progress of a long-running process
– Retrieve Message (RTVMSG)
• to retrieve message text from message in messagefile
– Execute Message (EXCMSG)
• specifies that a request message has to be executed
• What are Function Fields?
– Special types of fields that can be used in device designs
Building Applications
Function Fields
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 149/192
Accenture-Internal Use Only 149
Special types of fields that can be used in device designsand action diagrams
– based on other fields
– processing can be specified for a function field
• Function field Usages
– Sum (SUM)
• contains sum of values of another field
Building Applications
Function Fields
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 150/192
Accenture-Internal Use Only 150
• contains sum of values of another field
• Input Parameter is the field whose sum is to be calculated
• Result Parameter is the field containing the sum
– Count (CNT)
• defines count of a set of records in EDTTRN, DSPTRN,PRTFIL & PRTOBJ functions
• Input Parameter is field on the detail or subfile record
• Output field contains the count
• Function field Usages
– Maximum (MAX)
• contains the highest value of another field
Building Applications
Function Fields
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 151/192
Accenture-Internal Use Only 151
contains the highest value of another field
• Input Parameter is the field whose maximum is to be calculated
• Result Parameter is the field containing the maximum
– Minimum (MIN)
• contains the lowest value of another field• Input Parameter is the field whose minimum is to be calculated
• Result Parameter is the field containing the minimum
• Function field Usages
– Derive (DRV)
• performs user-defined action to derive result
Building Applications
Function Fields
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 152/192
Accenture-Internal Use Only 152
performs user defined action to derive result• action diagram is attached where processing can be specified
for deriving the result
• Multiple input Parameters can be specified
• One Resulting Parameter
– User (USR)
• reserved for work fields needed in device design or actiondiagram e.g. menu options, command string
• can be input-capable or output only
• What are Function Options?
– Function options control the features of functions
– Function Options for
Building Applications
Function Options
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 153/192
Accenture-Internal Use Only 153
p• Database Changes
• Display Features
• Exit Control
• Commitment Control• Exception Routine
• Generation
• Environment
• Database Changes Function options
– determine if program allows add, change or delete capabilities or
a combination
Building Applications
Function Options
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 154/192
Accenture-Internal Use Only 154
• Display Features Function options
– Confirmation - function prompts for confirmation
– Initial value for Confirmation
– Standard Header/Footer selection – Subfile Selection Column
– Dynamic Program Mode - function determines initial mode of execution
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 155/192
• Exit Control
– Determines execution characterstics of programs
– Closedown Program - whether program will terminate or
Building Applications
Function Options
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 156/192
Accenture-Internal Use Only 156
Closedown Program - whether program will terminate or
remain invoked but inactive
– Reclaim Resources - whether RCLRSC command will be
invoked after program call
– CopyBack Messages - whether pending messages in program
message que to be copied to program message queue of calling
program
• Commitment Control
– Determines commitment control regime for a program namelyMASTER SLAVE or NONE
Building Applications
Function Options
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 157/192
Accenture-Internal Use Only 157
g p g yMASTER, SLAVE or NONE
– MASTER - program contains commit points and the program
ensures that commitment is active
– SLAVE - program contains commit points but the program does
not ensure that commitment is active
– NONE - program does not run under commitment control
• Exception Routine
– Generate Exception Routine - specifies whether code forexception routine (*PSSR) should be generated
Building Applications
Function Options
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 158/192
Accenture-Internal Use Only 158
exception routine ( PSSR) should be generated
• Generation Options
– Generation Mode - specifies database access used for functions
D for DDS access method; S for SQL access method
E for External Source Format; M for model value
A if generation value of primary path to be used
• Generation Options
– Generate Help - specifies whether help is generatedScreen Text Constants
Building Applications
Function Options
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 159/192
Accenture-Internal Use Only 159
– Screen Text Constants
L results in panel literals being hard coded in source
M results in panel literals to be stored in message file
D means model value to be used
• What are Function Parameters?
– Specifies the fields passed between functions
• Basic properties of function parameters
Building Applications
Function Parameters
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 160/192
Accenture-Internal Use Only 160
– Name
– Usage Type
• Input only, Output only, Both, Neither
– Flag Error Status• specifies error in the called function
• allowed in SNDERRMSG, EXCMSG or any externalfunction
• Neither parameters
– No value passed or returned for a parameter
– Neither parameters are available for use as local variables withinthe function
Building Applications
Function Parameters
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 161/192
Accenture-Internal Use Only 161
the function
• Default parameters of functions
Function default parameters usage
CHGOBJ all fields of update index I
CRTOBJ all fields of update index I
DLTOBJ key fields of update index I
RTVOBJ key fields of attached acc. Path I
SELRCD key fields of update index B
• Return Code Parameter
– Informs the calling program of the state under which calledprogram was exited
Building Applications
Function Parameters
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 162/192
Accenture-Internal Use Only 162
p g
– All functions except EXCUSRPGM & EXCUSRSRC have
implicit return code parameter as first parameter
– The values of Return Code parameter are
*DBF error; *Normal; *Record already exists;
*Record does not exist; *Substring error;
*User Quit requested
• Parameter Roles
– Specifies the use of parameter in function
– Following are the parameter roles
Building Applications
Function Parameters
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 163/192
Accenture-Internal Use Only 163
Map Parameter - the parameter is added automatically to thecorresponding field on the receiving function’s panel design.Map Neither parameter adds field to panel design withoutpassing a value
Restrictor Parameter - the parameter restricts the pupation of field by making it input only field
Positional Parameter - the parameter is used to position afunction to start reading records from a particular record
• Parameter Roles
Vary Parameter - the parameter can have a varying length.
Useful for interfacing with user-written functions• Defining Function Parameters
Building Applications
Function Parameters
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 164/192
Accenture-Internal Use Only 164
• Defining Function Parameters
– in the Edit Functions panel, type P next to the selectedfunction
– specify a field or a set of fields in Edit Function Parameters
panel
– Type Z for a parameter to specify Role/Usage through Edit Function Parameter Details panel
Building Applications
Function Parameters
Op: XXXXXX QPADEV0012 11/02/06 7:52:36
EDIT FUNCTION PARAMETERS SYNSXT
Function name. . : Delete Commodity Type : Delete object
Received by file : Commodity Acpth: Update index
Passed? File/*FIELD Access path/Field as Seq
Commodity Update index KEY
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 165/192
Accenture-Internal Use Only 165
Commodity Update index KEY
|
Values
FLD: One parameter per field
RCD: One parameter for all fields
KEY: One parameter for key fields only
SEL: Z-Details (field selection).
F3=Exit F5=Reload
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 166/192
Building Applications
Device Designs
• What are Device Designs?
– Specifies the layouts of fields and constants on the panels or
report designs for a function• Basic properties of Device Designs
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 167/192
Accenture-Internal Use Only 167
• Basic properties of Device Designs
– Device Design Standard
• depends on the function type and associated standardheader/footer functions
– Device Design Format
• Formats are created from the fields of the based-on accesspath and their associated text
Building Applications
Device Designs
• Basic properties of Device Designs
– Device Design Field
• fields come from access path, function parameters andHeader/Footer
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 168/192
Accenture-Internal Use Only 168
Header/Footer
• Editing Device Design
– in the Edit Functions panel, type S next to the selected functionto display the device design
– use function keys to edit the device design
• F1 moves the field 40 columns
• F3 exits the panel
Building Applications
Device Designs
• Editing Device Design
– use function keys to edit the device design
• F4 move the field 40 columns to the right
• F5 edits device format details
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 169/192
Accenture-Internal Use Only 169
• F5 edits device format details
• F6 cancels the pending operations
• F7 displays Edit Device Design Format Relations
• F8 moves the selected field to the cursor position• F9 wraps text onto next line
• F10 moves text one column to the right
• F11 removes the line
• F12 aligns text below cursor position
Building Applications
Device Designs
• Editing Device Design
– use function keys to edit the device design
• F13 fast exits the panel• F15 moves panel window to left margin
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 170/192
Accenture-Internal Use Only 170
• F15 moves panel window to left margin
• F16 moves window to right margin
• F17 displays a list of device formats
• F18 displays the Edit Field Attributes panel• F19 adds new function field to the device
• F20 edits function field on the device
• F21 adds a line above cursor
• F22 moves text one column to the left
Building Applications
Device Designs
• Editing Device Design
– use function keys to edit the device design
• F23 adds constant field to the device design
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 171/192
Accenture-Internal Use Only 171
• F25 aligns all fields under the cursor position
Building Applications
Action Diagrams
• What are Action Diagrams?
– Action Diagrams record the basic constructs that make up a
procedure
th d l t li t f ti lik ll t
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 172/192
Accenture-Internal Use Only 172
– the procedural steps encompass a list of actions like call to
another function or a low-level built-in function
• Displaying Action Diagram of a function
– Type F next to the selected function in the Edit Functions panel
Building Applications
Action Diagrams
EDIT ACTION DIAGRAM Edit Y2MDLP25 Commodity
FIND=> Edit Commodity
.--
. ...Initialize <--
. .=REPEAT WHILE
. |-*ALWAYS
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 173/192
Accenture-Internal Use Only 173
. | ...Load first subfile page <--
. | PGM.*Reload subfile = CND.*NO
. | > Conduct screen conversation
. | .=REPEAT WHILE
. | |-PGM.*Reload subfile is *NO
. | | Display screen
. | | ...Process response <--
. | '-ENDWHILE
. '-ENDWHILE
. ...Closedown <--
'--
F3=Prev block F5=User points F6=Cancel pending moves F23=More options
F7=Find F8=Bookmark F9=Parameters F24=More keys
Building Applications
Action Diagrams
User Points
COOL:2E/2 functions except EXCUSRSRC & EXCUSRPGM
have default action diagramsome portions of default action diagrams which depict essential
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 174/192
Accenture-Internal Use Only 174
p g p
processing are not alterable
areas which can be modified and where business logic can be
entered are called User Points
Press F5 on the action diagram to display user points for thefunction
Building Applications
Action Diagrams
EDIT ACTION DIAGRAM Edit Y2MDLP25 Commodity
FIND=> Edit Commodity
..............................................................
> Edit : ACTION DIAGRAM EXIT POINTS F3=Exit SEL:X,Z-Select. :
.-- : USER: Initialize program :
. ...I : USER: Initialize subfile header : <--. .=RE : USER: Initialize subfile record (existing record) :
. |-*A : USER: Initialize subfile record (new record) :
| : CALC: Subfile control function fields : <
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 175/192
Accenture-Internal Use Only 175
. | .. : CALC: Subfile control function fields : <--
. | PG : USER: Validate subfile control :
. | > : USER: Validate subfile record fields :
. | .= : CALC: Subfile record function fields :
. | |- : USER: Validate subfile record relations + :
. | | :............................................................:
. | | ...Process response <--
. | '-ENDWHILE
. '-ENDWHILE
. ...Closedown <--
'--
F3=Prev block F5=User points F6=Cancel pending moves F23=More options
F7=Find F8=Bookmark F9=Parameters F24=More keys
Building Applications
Action Diagrams
Action Diagram Constructs
Sequential - specify a list of actions or other constructs that are
executed in a sequential order. Denoted by brackets enclosingdotted lines
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 176/192
Accenture-Internal Use Only 176
___
: ….
: ….
:___
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 177/192
Building Applications
Action Diagrams
Action Diagram Constructs
Iterative - represents repetitive logic. Denoted by REPEAT
WHILE and ENDWHILE statements
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 178/192
Accenture-Internal Use Only 178
_ REPEAT WHILE
: ….
: ….
:_ ENDWHILE
Building Applications
Action Diagrams
Context
instances of a field that are available for use at a particular
processing step
Database Contexts - instances of same database field available
in more than one file
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 179/192
Accenture-Internal Use Only 179
in more than one file
Device Contexts - instances of same device field available in
more than one format
Literal Contexts - instances of field available from literals likecondition etc.
System Contexts - instances of fields available from various
system values
Building Applications
Action Diagrams
Context
Function Contexts - instances of field available from function
attributes like parameterDatabase Contexts
DB1 fi ld i th fi t th l f t f th b d
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 180/192
Accenture-Internal Use Only 180
DB1 - fields are in the first or the only format of the based-on
access path
DB2 - fields are from second format of the based on access path
e.g. in SPN access path
Building Applications
Action Diagrams
Device Contexts
KEY - fields are from the key panel display in case of EDTRCD
or DSPRCD functionsDTL - fields are from the first panel of EDTRCDn or
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 181/192
Accenture-Internal Use Only 181
DSPRCDn functions
2ND - fields are from the second panel of EDTRCDn or
DSPRCDn functions
3RD - fields are from the third panel of EDTRCDn or
DSPRCDn functions
Building Applications
Action Diagrams
Device Contexts
CTL - fields are from the subfile control record format
RCD - fields are from the subfile record formatCUR - fields are from the current report format in PRTOBJ and
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 182/192
Accenture-Internal Use Only 182
PRTFIL functions
NXT - fields are from the next active report format in PRTOBJ
and PRTFIL functions
Building Applications
Action Diagrams
Literal Contexts
CND - particular field condition is specified as a value
CON - constant context contains a literal value for non-statustype fields
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 183/192
Accenture-Internal Use Only 183
System Contexts
JOB - contains system fields having execution time
information of the job e.g. *USER, *JOB
PGM - contains system fields that control the execution like
*Program Mode, *Return Code
Building Applications
Action Diagrams
Function Contexts
PAR - parameter fields as field values
WRK - program variables not declared as any context as fieldvalues e.g. any field in data dictionary
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 184/192
Accenture-Internal Use Only 184
Action Diagram Editor
allows modification of Action Diagram
line commands allow the modification
Building Applications
Action Diagrams
Action Diagram Editor
Line Commands
* Activate/Inactivate construct (Comment out)** Place block Activate/Inactivate boundary
A Place copied or moved construct after this line
B Place copied or moved construct before this line
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 185/192
Accenture-Internal Use Only 185
B Place copied or moved construct before this line
C Copy construct to a point indicated by 'A' or 'B'
CC Place block Copy boundary
D Delete this construct
DD Place block Delete boundary
F Edit action or condition details for lineFF Edit action parameters
H Hide construct
I+ Insert *ADD built-in function
I+F Insert and Prompt *ADD built-in function
I* Insert Comment
I*F Insert and Prompt Comment
Building Applications
Action Diagrams
Action Diagram Editor
Line Commands
I- Insert *SUB built-in functionI-F Insert and Prompt *SUB built-in function
I= Insert *MOVE built-in function
I=A Insert and Prompt *MOVE ALL built in function
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 186/192
Accenture-Internal Use Only 186
p
I=F Insert and Prompt *MOVE built-in fucntion
IA Insert Action
IAF Insert and prompt Action
IC Insert Case condition
ICF Insert and Prompt Case conditionII Insert Iteration
IIF Insert and Prompt Iteration
IM Insert Message function
IMF Insert and Prompt Message function
IO Insert *OTHERWISE condition
IOF Insert and prompt *OTHERWISE condition
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 187/192
Generating Applications
COOL:2E Generator
Generation
Data Model is translated into either DDS sources or SQL
collectionsAccess Paths into Physical and Logical files
COOL:2E functions are translated into HLL programs -
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 188/192
Accenture-Internal Use Only 188
COOL:2E functions are translated into HLL programs
COBOL, RPG or both
Device designs attached to functions are generated as DDS
sources of Display and Printer filesCompilation of generated code is automatically submitted
Generating Applications
COOL:2E Generator
Generating Code
from the Services Menu, take option for displaying all access
paths or all functionsTake option J(batch) or G(online) for the item that has to be
generated
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 189/192
Accenture-Internal Use Only 189
generated
COOL:2E/1E Utilities
Menus
COOL:2E/1E Menus
dynamic menu system
removes the need of individual OS/400 display file for eachapplication menu
Menus stored in special form and displayed using COOL:2E
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 190/192
Accenture-Internal Use Only 190
Menus stored in special form and displayed using COOL:2E
commands YWRKMNU & YGO
Menus are stored in a database file member
YDSNMNU is the default menu file supplied withCOOL:2E/1E
COOL:2E/1E Utilities
Menus
COOL:2E/1E Menus
YCRTDSNF command can create a new design file
YADDDSNFM adds new member to design file2 types of COOL:2E menus
Single option
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 191/192
Accenture-Internal Use Only 191
Single option
Multiple option
COOL:2E/1E Utilities
Menus
8/3/2019 COOL2E TRG ppt1
http://slidepdf.com/reader/full/cool2e-trg-ppt1 192/192
Accenture-Internal Use Only 192
Thank you
top related