Contents of XRef Data

The following information is stored for each Natural program cataloged:

  • References to programs that are invoked, how they are invoked (for example CALLNAT, FETCH, FETCH RETURN, PERFORM, RUN, STACK, SEND EVENT, SEND METHOD) and the type of program (such as: main program, subroutine, subprogram, help routine, map or data area);

  • References to data areas and variables, with additional information on usage of variables: use, modification or use for dynamic source code creation (described in the Natural Statements documentation in relation to the RUN statement). Additionally, library, DBnr and Fnr of the referenced data areas are stored.

  • References to views and data area views, with additional information about their usage (for example definition in a data area, delete, read, or update);

  • References to fields of views, with additional information about their usage: definition in a data area, count, read, search or update. For 3GL: precompiled by Adabas SQL Server, Adabas Native SQL;

  • References to files used in the program and the type of file use (deleting, reading or updating);

  • References to Natural copy code (source code), library, DBnr and Fnr of the copy codes used are stored.

  • References to maps and help routines used in the program;

  • References to SQL stored procedures via the Natural statement CALLDBPROC;

  • References to Natural error numbers used in the program and the types of error messages (system-wide or application-specific);

  • References to Natural printers;

  • References to Natural workfiles used in the program and the type of use (whether read from, written to or close);

  • References to Natural classes;

  • References to Natural methods;

  • References to Natural interfaces;

  • References to External resources;

  • References to external programs invoked from a program;

  • References to entry points or functions defined in the program which can be invoked by other programs;

  • References to retained sets used in the program and the type of use (build, use, or release a retained set);

  • References to processing rules used in a map and their type of use (automatic, free, or inline processing rules);

  • Reference to a DBRM (DB2 request module) for programs using static SQL;

  • Use of EXPERT Models via the Natural statement INVESTIGATE;

  • Use of the Natural command processor via the statement PROCESS COMMAND;

  • Statistical information:

    • Date and time the program was cataloged/precompiled;

    • ID of the user who cataloged/precompiled the program;

    • ID of the terminal from which the program was cataloged/precompiled (in batch mode: the job name);

  • Language.

Note:
In Predict, the term "External resource" refers to the Natural object type "Resource". Further information on this object type can be found in the section Ressource of Objects for Natural Application Management in the Natural Programming Guide.