Download presentation
Presentation is loading. Please wait.
1
XINFO – Programming Languages zOS – Cobol
2
What is this presentation about?
This PowerPoint gives you a short overview about XINFO’s Cobol Interface. This button can be used to jump to specific slides in this presentation. General program information Click on this symbol to jump to the overview slide
3
Table of Contents General program information
Copy (which program uses which copy member) Call (which program calls which program) Graphics (“inter language” call graph) Select/Asign, file access, file section (file usage) DB2 access (EXEC SQL Statements) CICS access (EXEC CICS) DLI access (IMS, EXEC DLI and CBLTDLI) Variable declarations, variable usage Unused code Comments
4
The entry point to XINFO’s Cobol data
Cobol – General Info The entry point to XINFO’s Cobol data
5
Cobol – General Info Search for programs by specifying attributes, e.g. - uses SQL more than 1000 lines of code was changed after a certain date
6
Cobol – General Info Load module name: source member or program id or
external translation SQL, CICS, DLI etc. Y/N Code line qty Program names Comments qty
7
Which programs are using this copy member?
Cobol – Copy Which programs are using this copy member?
8
Nesting Level (Copy in Copy)
Cobol – Copy SQL include Y/N Copy statement found Nesting Level (Copy in Copy) Replacing Y/N Programs
9
Right mouse click e.g. shows copy member
Cobol – Copy Right mouse click e.g. shows copy member
10
Declaration of a program name
Cobol – Copy Next example: Declaration of a program name
11
Cobol – Call Select option 3 - CALL
12
Which programs are calling this program?
Cobol – Call Which programs are calling this program?
13
Section within the program (not used in this example)
Cobol – Call Calling programs Called program Variable name Parameters Section within the program (not used in this example)
14
Right mouse click e.g. shows source member
Cobol – Call Right mouse click e.g. shows source member
15
Source with dynamic call.
Cobol – Call Source with dynamic call. A previous “MOVE pgmname to varname” was translated by XINFO’s scanner.
16
Cobol – Call Question: Which programs are called by “DSN8CC0”?
17
DSN8CC0 calls two programs (which may contain more program calls)
Cobol – Call Answer: DSN8CC0 calls two programs (which may contain more program calls)
18
Which programs are called by DSN8CC0?
Programs Call Which programs are called by DSN8CC0? Program call shows all calls over multiple levels, independently of the used program language!
19
All calls over all levels
Program Call All calls over all levels
20
Program Call Graph Click on All - GRAPH - Programs Call Diagram…
… or right click on any record - GRAPH - Programs Call Diagram
21
This chart shows all program calls clearly
Program Call Graph This chart shows all program calls clearly
22
Cobol – Files Here you can get information about: file definitions
file access (read/write) etc
23
Search for Main Program “DSN8*” and Assignment-Name “*-S-*”
Cobol – SELECT/ASSIGN Search for Main Program “DSN8*” and Assignment-Name “*-S-*”
24
Cobol – SELECT/ASSIGN FILE-CONTROL. SELECT REPOUT ASSIGN TO UT-S-REPORT. File/DD name ”assignments” and the parameters (taken from File-Control).
25
Select option 6 – File Section
Cobol – File Section Select option 6 – File Section
26
Cobol – File Section File attributes from file description, eg record length, record mode etc. FILE-CONTROL. SELECT REPOUT ASSIGN TO UT-S-REPORT. FILE SECTION. FD REPOUT RECORD CONTAINS 120 CHARACTERS LABEL RECORDS ARE OMITTED DATA RECORD IS REPREC. 01 REPREC PIC X(120).
27
Search for Main Program “DSN8*” and Assignment-Name “*-S-*”
Cobol – File Access Search for Main Program “DSN8*” and Assignment-Name “*-S-*”
28
“File access” shows all file operations
Cobol – File Access “File access” shows all file operations
29
Cobol – File Access Right mouse click e.g. to show JCL DD statements
(XINFO’s JCL scanner is needed)
30
DSN and other JCL-parameters
JCL – DSN DSN and other JCL-parameters
31
Select option 7 – DB2 Access
Cobol – DB2 Access Select option 7 – DB2 Access
32
Question: Which programs are using DB2 table “VDEPT”?
Cobol – DB2 Access Question: Which programs are using DB2 table “VDEPT”?
33
In case of "Type=Table" column "Object" shows the name of the table
Cobol – DB2 Access SQL action In case of "Type=Table" column "Object" shows the name of the table Programs
34
Search for Main Program “DSN8CC2”
Cobol – DB2 Access Search for Main Program “DSN8CC2”
35
All used columns are shown
Cobol – DB2 Access All used columns are shown
36
Search programs by “used columns”
Cobol – DB2 Access Search programs by “used columns”
37
The column “DEPTNO” is used in several tables by several programs
Cobol – DB2 Access The column “DEPTNO” is used in several tables by several programs
38
Select option 11 – Variable Declarations
Cobol – Variable Select option 11 – Variable Declarations
39
Cobol – Variable Question: In which programs is the variable “DEPTNO” defined?
40
Cobol – Variable Left double mouse click shows the complete record
In this example “DEPTNO” is defined in two programs
41
Cobol – Variable The details of the record
42
Cobol – Variable usage
43
Cobol – Variable usage “Variable usage” shows exactly “where and how” variables are used in your programs.
44
Right mouse click to browse the “Member with Var-Ref”
Cobol – Variable usage Right mouse click to browse the “Member with Var-Ref”
45
Cobol – Variable usage The result
46
Example: Search for all “EXEC CICS” in programs “DSN8C*”
Cobol – CICS Access Example: Search for all “EXEC CICS” in programs “DSN8C*”
47
Cobol – CICS Access “CICS Access” shows all CICS actions and the parameters. LINK and XCTL is shown in the call table as well as in the call graph
48
Cobol – DLI Access Search for DLI calls
49
Cobol – DLI Access Search for strings in DLI statements
IMS actions and parameters.
50
Cobol – Unused Code
51
Cobol – Unused Code Shows program lines that are never called Program
From line, to line
52
Cobol – Comments Comment Program Division Line
53
Search for strings, e.g. “*CICS*” in all comments
Cobol – Comments Search for strings, e.g. “*CICS*” in all comments
54
All comments with “*CICS*”
Cobol – Comments All comments with “*CICS*”
55
Any questions about XINFO and Cobol?
Yes?
56
Many thanks for your attention!
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.