Program Relationship Projections

Statement Format Relationship Entities
CALL
DCL name ENTRY; ... 
CALL name ...
Program Calls Program Entry Point

ProgramEntry.Name = <name>

CALL (dynamic)
DCL varname ENTRY 
VARIABLE; ... CALL varname ...
Program Calls Program Entry Decision

Decision attributes:

  • Name = <program-name@ <internal-name>
  • #Also Known As = <program-name>. Calls.<varname>
  • Decision Type = PROGRAMENTRY…
ENTRY
name: ENTRY ...
Program Has Program Entry Point

ProgramEntry.Name = <name>

ProgramEntry. MainEntry = False

PROCEDURE
name: PROC [(parms)] 
[options(...)] ...
Program Has Program Entry Point

Program.Name = <name>

ProgramEntry. MainEntry = True

File Description

DCL name FILE; 
OPEN FILE (name);
DCL name FILE; 
OPEN FILE (name) TITLE (‘title’);
See CRUD statements below.

external-file-name = <name>

external-file-name = <title>

File attributes:

  • Name = <program-name>. external-file-name
  • DD Name = external-file-name
  • File Type = FILE
Note: A File object is generated only when the first CRUD statement for the file is encountered. File attributes do not depend on the CRUD statement itself.
File Description (dynamic)
DCL varname FILE VARIABLE; 
OPEN FILE (varname);
DCL name FILE; 
OPEN FILE (name) TITLE (vartitle);
See CRUD statements below.

decision-var = <varname>

decision-var = <name>

Decision attributes:

  • Name = <program-name>@ <internal-name>
  • #Also Known As =<program-name>. <decision-rel>. <decision-var>
  • Decision Type = DATAPORT
Note: A Decision object is generated only when the first CRUD statement for the file is encountered. Only the Also Known As attribute depends on the CRUD statement itself.
DELETE
DELETE FILE (name) … 
Program Deletes From File

See File Description for File attributes.

DELETE (dynamic)
DELETE FILE (varname) …
Program Deletes From File Decision

See File Description (dynamic) for Decision attributes.

GET
GET FILE (name) …
Program Reads File

See File Description for File attributes.

GET (dynamic)
GET FILE (varname) …
Program Reads File Decision

See File Description (dynamic) for Decision attributes.

PUT
PUT FILE (name) …
Program Inserts Into File

See File Description for File attributes.

PUT (dynamic)
PUT FILE (varname) …
Program Inserts Into File Decision

See File Description (dynamic) for Decision attributes.

READ
READ FILE (name) …
Program Reads File

See File Description for File attributes.

READ (dynamic)
READ FILE (varname) …
Program Reads File Decision

See File Description (dynamic) for Decision attributes.

REWRITE
REWRITE FILE (name) …
Program Updates File

See File Description for File attributes.

REWRITE (dynamic)
REWRITE FILE (varname) …
Program Updates File Decision

See File Description (dynamic) for Decision attributes.

WRITE
WRITE FILE (name) …
Program Inserts Into File

See File Description for File attributes.

WRITE (dynamic)
WRITE FILE (varname) …
Program Inserts Into File Decision

See File Description (dynamic) for Decision attributes.