Professional Documents
Culture Documents
Datacom
Datacom
An Introduction
What is Datacom?
Datacom is a Database Manager developed by
Computer Associates for MVS
Data is stored in the form of databases, which can
have one or more keys
Access is through ‘embedded” datacom calls in
high level languages, or through dataquery
Datacom
This is NOT a Relational Database Manager or
even a sophisticated database manager
This is a filing system, for better organization of
data
It has the basic features of a filing system - keys,
indexes etc.
It has locking features, to prevent “lost updates”
01 A20-REQ-AREA.
05 A20-REQ-COMMAND PIC X(05) VALUE SPACES.
05 A20-REQ-FILENAME PIC X(03) VALUE 'A20'.
05 A20-REQ-KEYNAME PIC X(05) VALUE SPACES.
05 A20-REQ-RETURNCD PIC X(02) VALUE SPACES.
05 A20-REQ-DBID PIC X(02) VALUE SPACES.
05 A20-REQ-REC-ID PIC X(07).
05 A20-REQ-KEY-VALUE PIC X(180).
Declaration
01 A20-WORK-AREA.
05 A20-WORK-AREA-0 PIC X(274).
05 A20-WORK-AREA-6 PIC X(300).
01 A20-ELEMENT-LIST.
05 A20-ELM-1 PIC X(05) VALUE 'A20A0'.
05 FILLER PIC X(01).
05 A20-ELM-2 PIC X(05) VALUE 'A20A6'.
05 FILLER PIC X(01).
05 FILLER PIC X(05) VALUE SPACES.
Declaration
01 A20A0-A20A6.
03 A20A0 COPYDD BRANCH.A20A0(PROD),2,N.
03 A20A6 COPYDD BRANCH.A20A6(PROD),2,N.