Advanced C Ics
Advanced C Ics
COBOL
File Handling
File Handling
Sequential Processing using BROWSE
commands
VSAM Alternate Index
Generic Key
Mass Insert
CICS Data Tables
EXEC CICS
STARTBRDATASET(‘CUSTMAS’)
RIDFLD(CUSTOMER-NO)
RESP(RESPONSE-CODE)
END-EXEC
EXEC CICS
READNEXT DATASET(‘ACCOUNT’)
INTO(ACCOUNT-RECORD)
RIDFLD(AR-ACCUONT-NUMBER)
RESP(RESPONSE-CODE)
END-EXEC
Terminal Handling
Terminal Handling
Logical Message Building
– Concepts & Terminology
– SEND TEXT
– SEND PAGE
Printer Output
Message Routing
RECEIVE Command
SEND Command
March 18,2000 BNG Version 2.0 36
Logical Message Building
SEND TEXT
SEND TEXT Syntax
SEND TEXT
FROM(data-area)
LENGTH(data-value)
ACCUM
PAGING
ERASE
HEADER(data-area)
TRAILER(data-area)
March 18,2000 BNG Version 2.0 45
SEND TEXT Syntax
FROM Name of the field that contains the data to be
added to the logical message
LENGTH Length of the FROM field.
ACCUM Build a logical page
PAGING Pages to be written to temporary storage for
later retrieval under operator control
ERASE Erase terminal buffer as each page is sent
during page retrieval
HEADER Name of the field containing header
information
TRAILER Name of the field containing trailer information
SEND MAP
Map Definition
Format
name DFHMDI SIZE=(lines,columns),
[LINE=line number | NEXT,]
[COLUMN=col.no,]
[JUSTIFY=FIRST | LAST,]
[HEADER=YES | TRAILER=YES]
Example
MAP4 DFHMDI SIZE=(2,80),
LINE=NEXT,
COLUMN=1,
TRAILER=YES
March 18,2000 BNG Version 2.0 53
Map Definition
Logical message consideration
Line positioning is done mostly by making use of
LINE=NEXT
Map positioning is done mostly by specifying
JUSTIFY=FIRST (normally for header map) or
JUSTIFY=RIGHT (normally for trailer map)
JUSTIFY parameter controls the positioning of
header & trailer map
HEADER & TRAILER parameters are used to
control overflow processing
March 18,2000 BNG Version 2.0 54
SEND MAP Command
Format
SEND MAP(map name)
[MAPSET(map set name)]
[FROM(data area)] [MAPONLY | DATAONLY]
[ACCUM] [PAGING] [ERASE]
Example
SEND MAP(‘MAP4)
MAPSET(‘MAPSET4)
FROM(LASTMAP4)
ACCUM PAGING ERASE
Temporary Storage
&
Transient Data
Temporary Storage
Temporary Storage
Temporary storage is divided into Temporary Storage
queues (TS Queues)
Each TS queue can contain one or more records
Each TS Queue is identified by a queue name (of 1 to 8
characters)
Each record is assigned an item number
Access could be
– Sequential (in item number sequence)
– Random (by specifying the item no)
Records can be re-written
Interval Control
and
Task Control
Interval Control
ASKTIME Command
Syntax
ASKTIME [ABSTIME(data-area)]
Syntax
RETRIEVE INTO(data area)
[LENGTH(data-area)]
[RTRANSID(name)]
[RTERMID{name)]
[QUEUE(name)]
Error Processing
ABEND Processing
HANDLE ABEND Command
Syntax
HANDLE ABEND PROGRAM(name) |
LABEL(proc-name) |
CANCEL
RESET
Example
HANDLE ABEND PROGRAM(‘ABEND1’)
Inter communication
Inter Communication
Transaction Routing
Function Shipping
Distributed Program Link
Asynchronous Processing
Distributed Transaction Processing