XINFO – Programming Language zOS - C
About this Presentation This PowerPoint gives you a short overview about how to work with XINFO - C scanner. This button can be used to jump to specific slides in this presentation. General Information Click on this symbol to jump to the overview slide
Table of Contents Displays General Info Includes System Functions Function Call Files DB2 Access Variables Types
XINFO and C The XINFO C scanner delivers following information: Which proprams are using which includes ? Which programs are using which functions ? Which programs are using a certain type ? Which programs are calling external programs ? Which programs are using which variables ? Which programs are deleting rows from a DB2 table ? ….
C - Displays The displays for C
C – General Info Selection panel “General Info” ..scroll up/down for more selection fields…
Resulting “General Info” C – General Info Resulting “General Info”
Search for Includes, e.g. all programs that include “errno.h” C - Includes Search for Includes, e.g. all programs that include “errno.h”
C - Includes These programs are using “assert.h” Direct read access to several sources
Search for all programs that are using system calls C - System Search for all programs that are using system calls
These programs are using “getKundename ” C - System These programs are using “getKundename ”
Function “getKundename” causes problems. Where is it defined? C - Functions Function “getKundename” causes problems. Where is it defined?
The function is defined in member “MINXI01” C - Functions The function is defined in member “MINXI01”
C – Function Call And now you want to know which programs are using this function: “Called Function” gives you the answer:
Ok, no problem: The function is only used in two members C – Function Call Ok, no problem: The function is only used in two members
C – Files And now you want to know which programs are using this function: “Called Function” gives you the answer:
These programs are writing to the console C - Files These programs are writing to the console
Use the “group” function to get the members (and not all lines) C - Files Use the “group” function to get the members (and not all lines)
All members where “stdout” is used, column Count shows you how often C - Files All members where “stdout” is used, column Count shows you how often
Which programs are updating table “VCONA”? C – DB2 Access Which programs are updating table “VCONA”?
Program DSN8CC1 is the only program that updates table “*Konto” C – DB2 Access Program DSN8CC1 is the only program that updates table “*Konto”
C - Variables Which variables are declared, but not used?
C - Variables The result shows all members (lines) where unused variables are declared
Which programs are using streams? C - Types Which programs are using streams?
Here are all lines where bool are used… C - Types Here are all lines where bool are used…
…use the group functions to get a list of all members… C - Types …use the group functions to get a list of all members…
…here is a list of all members where streams are used C - Types …here is a list of all members where streams are used
Many thanks for your attention!