1. IBS Enterprise Home
  2. >
  3. Panel Help
  4. >
  5. Cross Application
  6. >
  7. Program structure enquiry (ASGD0211)

Program structure enquiry (ASGD0211)

In this program you can view the structure of your objects (programs, files, modules, procedures, service programs, etc.) in your IBS Enterprise system, as well as edit and print. The following two modes are available when viewing the information:

  • Normal mode: In this mode you view the programs that are called from programs. When you have made a selection the heading section, above the dotted line, will display the referencing object and description of what is displayed in the listing. All options listed at the top of the panel, (e.g., edit, display, print, etc.), are also valid for this main referencing object.
  • Module mode: In this mode you can obtain an overview of the Business Objects (procedures, modules and service programs) that are used in IBS Enterprise. Procedures, which are similar to black box programs, are operations that perform certain tasks and can return values to the caller. Modules are a collection of procedures that usually perform similar or related tasks and Service programs bundle everything together. This modularisation of code simplifies RPG development by eliminating duplicate code and allowing externalisation of the logic. For a more detailed overview of IBS Business Objects, see the following Guides:

Per module you can do the following:

  • view the procedures that have been imported from other modules
  • view the procedures that have been exported into other modules
  • drill down to see where these procedures are used.

Options

Edit Select this option to edit the object.
Display Select this option to view the object.
Print Select this option to print the object.
Imp procedures Select this option to view the procedures that have been imported into this module from other modules.
Exp procedures Select this option to view the procedures that are exported from this module into other modules.
Find Only applicable in the 5250 environment. Select this option to scan the source program combined with the value entered in Search argument.

Function keys

Normal/Module mode Toggle between Normal and Module mode.
Print list Only displayed in Module mode. Print a list with the items displayed on the panel.

From pgm
In Normal mode, enter a program name to display a listing of all the programs that can be called from that program. If you also enter a random character in the E/I field, you will get an explosion of the calls, drilling down to the lowest level of called-programs.

When you perform an explosion, the result on the panel might look like a loop. This will happen for programs that are part of a loop, possibly order entry programs in IBS Distribution.

To pgm
In Normal mode, enter a program name to display a listing with all the programs that can call that program. If you also enter a random character in the E/I field, you will get an implosion of the calls, drilling down to the lowest level of called-programs.
E/I
In Normal mode, enter a random character to get an explosion (for From program) or implosion (for To program) of calls to/from other programs.
Pgm
In Normal mode, enter a program name to display a listing of all the files used by that program.
File
In Normal mode, enter a file name to display a listing of all the programs using that file.
Format (PF)
In Normal mode, enter the name of a physical file to display all files that are dependent upon this physical file via DDS keyword FORMAT.
Module
In Module mode, enter the name of the module to position in the listing.
Search argument
In Normal mode, use this field, together with at least one of the other fields in the bottom part of the panel, to find a specific record in a list. Enter a search argument consisting of one or several characters. All records that hold the search argument and additional value(s) that you have entered will be displayed.

In Module mode, use this field to find a specific record in a list. Enter a search argument consisting of one or several characters. All records that hold the search argument that you have entered will be displayed.

If you select the Find option for a record in the list, in combination with the entered search argument, then the system scans the source program to find the string.

Program structure enquiry, Imported or exported procedures (ASGD0214)

Depending on the option you chose to access this panel, you could view the imported or exported procedures for this module.

Options

Where used Select this option to view the modules in which the procedure is used.

Procedure
Displays the procedures used in the selected module.
Module
Displays the module into which the procedure is imported or from which the procedure is exported.
Service pgm
Displays the name of the service program that bundles the module and procedure to which the module and procedure belongs.