Escolar Documentos
Profissional Documentos
Cultura Documentos
APPLICATION DEVELOPMENT
SYSTEM / ONLINE
1
INTRODUCTION
2
Typical steps when creating a CA-ADS application
• Data analysis
Analyze the system • User requirements
• System requirements
• Implement production
application
3
ADS Application Components
Application
Functions (A named procedure or activity
within an application)
Dialogs (A dialog enables interaction
between the user and the application)
4
ADS Application Components
Responses
A named entity that establishes a relationship
between two functions
Processing control is directed by the valid
responses of a function
The screen may list valid responses
A response can be a control key or
A response value entered in the response field by
the user
5
Processes
Maps
Sub-schemas
Data Records
Tables
6
ADS Application Structure
7
ADS Features
Scratch Management
Temporary storage
Access by Name, Record Id
Currency maintenance
Queue management
Recoverable across system shutdown
Sequentially, Randomly accessible
Automatic Trigger Initiation
Randomly Delete-able
Both-end insertion
8
ADS Features
Different types of Control flow
Execute next function
Invoke dialog
Link dialog
Transfer dialog
Return [dialog]
Leave
Display
Continue
Subroutines
Include modules
9
ADSA
Add Modify Compile Delete Display Switch
._______________________________________________________________________.
Command ===>
Enter F1=Help F3=Exit F10=Action
10
ADSA
Add Modify Compile Delete Display Switch
._______________________________________________________________________.
| |
CA-A | 1 1. Browse | ler
| 2. Summary |
Computer |----------------| onal, Inc.
| F3=Exit |
|________________|
Command ===>
Enter F1=Help F3=Exit F10=Action
11
ADSA General Options Page 1 of 2
12
ADSA
Response/Function List Page 1 of 70
13
ADSA Global Records Page 1 of 1
2. DC-ADS-PASSED-DATA 1 _
3. CLCED999-PASSED-DATA 1 _
4. ________________________________ ____ _
5. ________________________________ ____ _
6. ________________________________ ____ _
7. ________________________________ ____ _
8. ________________________________ ____ _
14
ADSA Task Codes Page 1 of 1
2. AFSOMGR MMENU-F _
3. VRU MMENU-F _
4. ________ ________ _
5. ________ ________ _
6. ________ ________ _
7. ________ ________ _
8. ________ ________ _
15
Dialog components
Maps
Format of screen
A dialog can have only one map
Contains literal fields, associated with variable fields
Dialogs can be map less too
Processes
consists of procedural code
can have one premap process & no. of response processes
subschemas
provide a view of database
16
Dialog components
Record Definitions
Database records
map records
work records
17
ADSC
Add Modify Compile Delete Display Switch
.________________________________________________________________________.
Command ===>
Enter F1=Help F3=Exit F10=Action
18
ADSC
Add Modify Compile Delete Display switch
.________________________________________________________________.
DC498104 Dialog does not exist. Use the ADD action to create or copy the
dialog.
Command ===>
Enter F1=Help F3=Exit F10=Action
19
ADSC
Add Modify Compile Delete Display Switch
._______________________________________________________________________.
| |
| Copy from dialog | CA-ADS Online Dialog Compiler
| Name ________ |
| Version ____ |puter Associates International, Inc.
|---------------------|
| F3=Exit |
|_____________________|
Dialog name . . . . . . . PARA0001
Dialog version . . . . . 1
Dictionary name . . . . . CNIDICDB
Dictionary node . . . . . ________
DC498104 Dialog does not exist. Use the ADD action to create or copy the
dialog.
Command ===>
Enter F1=Help F3=Exit F10=Action
20
ADSC
Add Modify Compile Delete Display Switch
.____________________________________________________________________.
Command ===>
Enter F1=Help F3=Exit F10=Action
21
ADSC
Add Modify Compile Delete Display Switch
.______________________________________________________________________.
| |
| _ 1. Checkout | Online Dialog Compiler
| 2. Release |
| 3. List Checkouts |ssociates International, Inc.
|-----------------------|
| F3=Exit |
|_______________________|
Dialog name . . . . . . . PARA0001
Dialog version . . . . . 1
Dictionary name . . . . . CNIDICDB
Dictionary node . . . . . ________
Command ===>
Enter F1=Help F3=Exit F10=Action
22
ADSC
Add Modify Compile Delete Display Switch
._______________________________________________________________________.
| |
| _ 1. Compile | Dialog Compiler
| 2. View messages |
|----------------------|es International, Inc.
| F3=Exit |
|______________________|
Command ===>
Enter F1=Help F3=Exit F10=Action
23
ADSC
Add Modify Compile Delete Display Switch
.____________________________________________________________________.
| |
| _ 1. Delete changes | piler
| 2. Delete dialog |
|-----------------------| ional, Inc.
| F3=Exit |
|_______________________|
Command ===>
Enter F1=Help F3=Exit F10=Action
24
ADSC
Add Modify Compile Delete Display Switch
.______________________________________________________________________.
| |
| 2 1. Delete changes | piler
| 2. Delete dialog | .__________________.
|-----------------------| io | |
| F3=Exit | | Confirm Delete |
|_______________________| | 2 1. Reject |
| 2. Confirm |
Dialog name . . . . . . . PARA0001 |------------------|
Dialog version . . . . . 1 | F3=Exit |
Dictionary name . . . . . CNIDICDB |__________________|
Dictionary node . . . . . ________
Command ===>
Enter F1=Help F3=Exit F10=Action
25
ADSC
Add Modify Compile Delete Display Switch
.____________________________________________________________________.
| |
CA-AD | _ 1. Browse |
| 2. Summary |
Computer | 3. Map image | Inc.
| 4. Print Summary |
|----------------------|
| F3=Exit |
Dialog name . . . . . . . |______________________|
Dialog version . . . . . 1
Dictionary name . . . . . CNIDICDB
Dictionary node . . . . . ________
Command ===>
Enter F1=Help F3=Exit F10=Action
26
ADSC
Map Specifications
|
Map name . . . . PMGCC0MM | Input map . . . . . ________
Version . . . . . 1 | Version . . . . . . ____
| Label . . . . . . . ________
Paging options _ 1. Wait |
2. No Wait | Output map . . . . ________
3. Return | Version . . . . . . ____
| Label . . . . . . . ________
Paging mode . . . _ Update |
_ Backpage | Suspense file label ________
_ Auto display |
|
27
ADSC
Database Specifications
Subschema . . . . . . . . . . . . CISSPMXA
Schema . . . . . . . . . . . . . CISCPMX0
Version . . . . . . . . . . . . . 1
28
ADSC
Records and Tables Page 1 of 2
Dialog PMGCC0DS Version 1
Name Version Work New copy Drop
1. PMBKG61R 1 / _ _
2. PM0001CR 1 / _ _
3. PMB000CR 1 / _ _
4. PMGCC0WR 1 / _ _
5. PM0004CR 1 / _ _
6. PMAUTM0C 1 / _ _
7. PM0012CR 1 / _ _
29
ADSC Process Modules Page 1 of 3
30
MAPC
Add Modify Compile Delete Display Switch
._____________________________________________________________________.
Command ===>
Enter F1=Help F3=Exit F10=Action
31
MAPC General Options Page 1 of 2
Map name: PMBDZ0MM Version: 1
Description. . . ________________________________________
32
MAPC Associated Records Page 1 of 1
Map name: PMBDZ0MM Version: 1
2 PMBKG61R 1 ________________________________ _
3 ________________________________ ________________________________ _
4 ________________________________ ________________________________ _
5 ________________________________ ________________________________ _
6 ________________________________ ________________________________ _
7 ________________________________ ________________________________ _
33
MAPC
-PMBDZ0MM -BOOKING SUBSYSTEM -DATE-__________
-MAINTAIN BOOKING DATA - DATES/GUARANTORS -TIME-_____
-ACCOUNT SCHEDULE:-_______---___
--------------------------------------------------------------------------------
-CUST-______________________________-OFFICE-______-PROD US-______-LOCAL-______
--------------------------------------------------------------------------------
34
ADSL
Release 14.1 E1GJ1B
CA-ADS and MAPPING Checkout Lists
Tool . . _ 1. ADSC
2. ADSA
3. MAPC
4. ALL
User . . __________________
35
ADSM
Release 14.1 E1GJ1B
CA-ADS and MAPPING Checkout Modification
Action . . . . . . _ 1. Delete
2. Reassign
Tool . . . . . . . _ 1. ADSC
2. ADSA
3. MAPC
36
DME
CA-IDMS/DME R14.1 --- DME Main Menu ---------------- 06:05 11/09/00
OPTION ===> USEAMEN
37
DME
CA-IDMS/DME R14.1 --- Dialog Selection ------------------ 10:56
11/09/00
COMMAND ===>
USEADSL
MASK ==>
-or-
PREFIX ==>
38
DME
CA-IDMS/DME R14.1 --- Process List ------------------------ 11:04
11/09/00
COMMAND ===> USEAPSL
DATE DATE PF
PROCESS NAME VERS CREATED UPDATED TYPE KEY
PMBDZ0PM 0001 06/10/88 05/10/00 PREMAP
PGMREXIT 0001 05/18/84 02/09/93 RESPONSE PA2
PMBDZCPR 0001 05/07/85 03/23/00 RESPONSE PF3
PMBDZLPR 0001 06/10/88 10/18/00 RESPONSE ENTR
PMBNXTPC 0001 06/04/85 02/09/93 RESPONSE PF5
PMBPREPC 0001 06/04/85 01/26/94 RESPONSE PF4
PMCLERPC 0001 04/19/84 08/04/93 RESPONSE CLR
PMEXITPC 0001 05/16/84 08/09/99 RESPONSE PF12
PMINFOPC 0001 04/24/84 10/30/97 RESPONSE PF9
PMLVL6PC 0001 05/28/85 02/09/93 RESPONSE PF10
U800FRST 0001 04/10/84 10/30/97 INCLUDE
U801INIT 0001 05/11/84 10/30/97 INCLUDE
**END**
39
DME
CA-IDMS/DME R14.1 --- Module Selection --------------- 11:08 11/09/00
COMMAND ===> USEAMSL
If the "Execute" Action has been selected, enter the compiler to execute:
COMPILER ==>
40
IDD
IDD 14.1 ONLINE NO ERRORS DICT=CNIDICDB 1/965
DISPLAY RECORD PMBDB0MR
*+ ADD
*+ RECORD NAME IS PMBDB0MR VERSION IS 1
*+ DATE CREATED IS 10/19/93
*+ DATE LAST UPDATED IS 03/23/00
*+ TIME LAST UPDATED IS 00545768
*+ PREPARED BY G1NXLMT
*+ REVISED BY G1NX18T
*+ RECORD LENGTH IS 762
*+ PUBLIC ACCESS IS ALLOWED FOR ALL
*+ RECORD NAME SYNONYM IS PMBDB0MR VERSION 1
*+ PREFIX IS BDBM-
*+ COPIED INTO MAP PMBDB0BW VERSION 1 WITHIN PANEL PMBDB0BW-OLMPANEL
*+ VERSION 1
*+ COPIED INTO MAP PMBDB0MM VERSION 65 WITHIN PANEL
*+ PMBDB0MM-OLMPANEL VERSION 65
*+ COPIED INTO MAP PMBDB0MM VERSION 1 WITHIN PANEL PMBDB0MM-OLMPANEL
*+ VERSION 1
*+ COPIED INTO PROGRAM PMBDB0DI VERSION 1
*+ TEXT IS W
*+ COPIED INTO PROGRAM PMBDB0DS VERSION 1
*+ TEXT IS ' M'
*+ COPIED INTO PROGRAM PMBDB0DU VERSION 1
41
IDDM COMPUTER ASSOCIATES INTERNATIONAL CAGJE1
IDD REL 14.1 *** MASTER SELECTION *** TOP
->
USER NAME.........:
PASSWORD..........:
42
IDDM COMPUTER ASSOCIATES INTERNATIONAL CAGJE1
IDD REL 14.1 *** MASTER SELECTION *** TOP
->
USER NAME.........:
PASSWORD..........:
43
OLQ
SIGNON SS=CISSPMXA
44
OLQ
SIGNON SS=CISSPMXA
45
OLQ
OBTAIN R7270-ACCT-SCHED WHERE CALC=4111061001
R7270-ACCT-SCHED
R7270-ACCT-SCHED-DBKEY : 4784113:17
AS-R7270-KEY :
AS-NBR-ACCT-SCHED :
AS-NBR-ACCT : 4111061
AS-NBR-SCHED : 1
AS-R7270-DATA :
AS-TYPE-PRODUCT : NITRLS
AS-LOCATION : MNCLNI
AS-CODE-CORP : 001
AS-NBR-PAYEE : 00980A
AS-IND-PART-ELIM-ACCT : N
AS-SSN :
AS-SSN-1 : 343
AS-SSN-2 : 46
AS-SSN-3 : 3621
AS-CODE-DOC : 04
AS-CODE-RECOURSE-PLAN : 04
AS-CODE-MARKET-PLAN : ZZY
... CONTINUED
46
OLQ
OBTAIN NEXT R7483-AR-OPEN WITHIN R7270-R7483
R7483-AR-OPEN
R7483-AR-OPEN-DBKEY : 4914973:2
ARO-R7483-DATA :
ARO-TIMESTAMP :
ARO-TIMESTAMP-DATE :
ARO-TIMESTAMP-YR : 2000
ARO-TIMESTAMP-MO : 10
ARO-TIMESTAMP-DAY : 19
ARO-TIMESTAMP-TIME :
ARO-TIMESTAMP-HR : 9
ARO-TIMESTAMP-MIN : 21
ARO-TIMESTAMP-SEC : 48
ARO-CODE-FEE : 100
ARO-AMT-ORIG : 65116.31
ARO-AMT-REMAIN : 65116.31
ARO-IND-INVOICE : Y
ARO-NBR-INVOICE-CURR : 7411652
ARO-NBR-INVOICE-ORIG : 7411652
ARO-DATE-INVOICE :
... CONTINUED
47
OLQ
OBTAIN OWNER WITHIN R7270-R7483
R7270-ACCT-SCHED
R7270-ACCT-SCHED-DBKEY : 4784113:17
AS-R7270-KEY :
AS-NBR-ACCT-SCHED :
AS-NBR-ACCT : 4111061
AS-NBR-SCHED : 1
AS-R7270-DATA :
AS-TYPE-PRODUCT : NITRLS
AS-LOCATION : MNCLNI
AS-CODE-CORP : 001
AS-NBR-PAYEE : 00980A
AS-IND-PART-ELIM-ACCT : N
AS-SSN :
AS-SSN-1 : 343
AS-SSN-2 : 46
AS-SSN-3 : 3621
AS-CODE-DOC : 04
AS-CODE-RECOURSE-PLAN : 04
AS-CODE-MARKET-PLAN : ZZY
... CONTINUED
48
Typical ADS/O Process
Premap process
Premap
Mapout process
Map
Mapin process
Response selection
Pf1 Pf2 Pf3 Pf3
Response process
Response
process-1 Response Response Response
process-2 process-3 process-4
49
ADS/O Process commands
50
ADS/O Process Commands
Arithmetic commands
Add
Compute
Divide
Move
Multiply
Subtract
51
ADS/O Process Commands
Conditional commands
IF/THEN/ELSE - NEXT Conditional testing
WHILE/EXIT repeats the commands
DO/END executes the group of commands
Subroutine Control Commands
CALL passes control to predefined subroutines
DEFINE defines subroutine
GOBACK terminates subroutine
INCLUDEincludes source code in a process
52
ADS/O Process Commands
53
ADS/O Process Commands
Queue Commands
Delete queue delete queue
records
Get queue retrieve queue
records
Put queue stores queue
records
54
ADS/O Process Commands
Scratch Commands
Delete scratch
Get scratch
Put scratch
Data base access Commands
Accept, Commit, Connect, Disconnect, Erase, Find, Get,
Keep, Modify, Obtain, Ready, Return DB-Key, Rollback, Store,
Map Commands
Display Map
Modify Map
55
ADS/O Process Commands
Utility Commands
Abort - aborts an application
Accept - retrieves runtime status info like
user-id, dialog name, terminal identifiers
Commit Task - writes a check point & releases
locks
Initialize records - reinitializes record buffers
Rollback Task - initiates task recovery procedures
Snap - requests a snapshot dump
Write printer - transmits data to a printer
56
Map display Commands
Display
to display Map on the terminal screen
mapout function
normally premap process ends with display command
can be used in response process too
Display continue
used in response process to display the map by
reexecuting the premap
DISPLAY MESSAGE TEXT IS 'INVALID PF KEY - REENTER'
57
Dialog control Commands
Invoke
passes control to a lower level dialog in the application structure
INVOKE “dialog name”
Return : passes control back in invoking dialog (map is displayed)
Return continue : passes control back in invoking dialog premap
process
Link
passes control to another dialog or program ( lower level )
Return : passes control to the next command in sequence
58
Dialog control Commands
Transfer
passes control to another dialog at same level,
first dialog becomes non operative
second dialog becomes operative
to go back to first, need to use Link/Invoke/Transfer
Leave
to terminate ADS/O application
control is passed back to Runtime system
59
Map Commands
Attribute commands
To change the attributes of the map fields
Ex: Brighten, Normalize, Protect & Unprotect
Modify Map
a single command to change no. of map fields
60
Do-end
if ’’’condition’’’
then
do.
--------------
--------------
end.
Else
do.
--------------
--------------
end.
61
While ‘’’ condition’’’
repeat.
-----------------------
----------------------
end.
Call subrtn-name.
Goback.
62
Queue & Scratch
management
Like work records
allows to pass info between dialogs or programs
Maintained in data dictionary
Scratch records
data stored from dialogs executed at same terminal
cleared at the time of system start
Queue records
data stored from dialogs executed from any terminal
data maintained for few days even across system shutdowns
commands : PUT/GET/DELETE
63
Q & A ?
64
THANK YOU
65