Print Script Technical Data (ttadv2450m000)

Use this session to print technical data of program scripts or libraries and their associated scripts such as includes and libraries.

The report that is offered after running this session gives you a deeper understanding of the usage in the selected program scripts or libraries of:

  • Includes
  • Libraries
  • Tables
  • Defines
  • Variables
  • Functions

You can also print the scripts and libraries themselves that are selected in the given range on the From/To Prog.scr/Libr fields.

Field Information

Package

The package for which you want to print the technical script data.

VRC

The version of the specified package.

VRC

The release of the specified package.

VRC

The customization code of the specified package.

Print Includes

If this check box is selected, Tools prints a list of includes used by the selected program scripts or libraries.

Print Function Tree

If this check box is selected, a function tree of the source is printed.

The function tree indicates which function are used in which event (section). The event used in the script has level 0. Every function call in this event gets level 1. If a function is called in a function the level will be 2 and so on.

Example

The report can give you the following result:

Function Call Tree

Level Script Function
0 pttadv3180 choice.mark.delete: before.choice:
1 pttadv3180 set.lock.on.query
1 pttadv3180 delete.lock.on.query
0 pttadv3180 choice.modify.set: before.choice:
1 pttadv3180 set.lock.on.query

If you selected the Also Parse in Includes field, you can specify to continue to print the function tree of includes by also selecting the Continue in Include field.

Print Libraries

If this check box is selected, Tools prints a list of libraries that are used by the selected program scripts or libraries.

Continue in Include

If this check box is selected, Tools prints a function tree for the selected program scripts or libraries for all the included files.

Note: This field can only be selected if the Also Parse in Includes field has been selected.
Repeat Printed Func's

If this check box is selected, the function tree is printed several times.

Note: 
  • If you select this field for a big program script, it can take a long time. In that case, Tools recommends you not to select this field.
  • A function can occur more than once in a script. Mostly the call of the function is in a different event (section). The function tree is the same.
Print Table Usage

If this check box is selected, Tools prints a list of table usage that are used by the selected program scripts or libraries.

If this field is selected and the Table Usage by Source field is not selected for each table, the resulting table usage is printed for the whole object (included the includes). There is no specification given per program script and per include.

To specify the table usage per script or include, you must also select the d@ttadv2450m0001tbs.yn field.

Example

If you select this field and the Print Table Usage by Source field is not selected, the report can contain:

Tables
Table Table Description Script Table Usage
ttadv111 Package VRC's Resulting object Read/Insert/Modify/Delete

If you also select the Print Table Usage by Source field To, the result will be:

Tables
Table Table Description Script Table Usage
ttadv111 Package VRC's ittadv0007 Read
    ittadv0037 Read
    ittadv3180 Read/Insert/Modify/Delete

In the last example, the table usage is specified per script.

Table Usage by Source

If this check box is selected, Tools prints the table usage per script or include instead of the whole object.

Print Source

If this check box is selected, Tools prints the selected program scripts or libraries.

Print Defines

If this check box is selected, the report gives you an overview of the macros that are used in the selected program scripts or libraries.

If you also select the Also Parse in Includes field, the report also gives you information about the scripts in which the macro is defined and the scripts in which the macro is called. In both situations the line numbers are given.

Print Func. Line No's.

If this check box is selected, the line number of the function declaration is placed in the script after the function call.

Note: You must have selected Print Source field.
Print Global Variables

If this check box is selected, Tools prints the global variables of the selected script.

You get the following information about the variables:

  • Type
  • Name
  • Comment (if any)
  • Script name in which the variable is declared with the corresponding line number(s)
  • Script name in which the variable is called with the corresponding line number(s)

If you select the Also Parse in Includes field, Tools also prints the global variables of the include files used by the selected program scripts or libraries.

Example

If you do not select the Also Parse in Includes field, the report can be give the following list:

Global Variables
				Type Name Comment Declaration in Call from Script Line Script Line long
				currency.changed pttaad1100 24 pttaad1100 77,111 long zoomparm pttaad1100 21
				pttaad1100 72 

If the Also Parse in Includes field is selected, the result can be:

Global Variables
				Type Name Comment Declaration in Call from Script Line Script Line long
				currency.changed pttaad1100 24 pttaad1100 77,111 long zoomparm pttaad1100 21
				pttaad1100 72 long iadv0001.compnr ittadv0001 7 ittadv0001 13,24 string
				ttseq.last.mess ittadv0026 5 ittadv0026 45 
Indentation Tab Length

The length of a TAB in characters that is used in the report.

Print Function Data

If this check box is selected, Tools prints a list of functions that are used in the selected program scripts or libraries.

The report gives you the following information about functions:

  • Return Type
  • Name
  • Arguments
  • Script in which the function is declared with line number
  • Script in which the function is called with line number

If the Also Parse in Includes field is selected, the list also contains functions used in the include files of the selected program scripts or libraries.

Also Parse in Includes

If this check box is selected, Tools must print defines, global variables or function data for each include file used in the selected program script or library.

Print Techn. Docu.

If this check box is selected, Tools prints the technical documentation used by the selected program scripts or libraries.

Print Include Tech.Doc

If this check box is selected, Tools also prints the include technical documentation for the selected range.

Print Library Tech.Doc

If this check box is selected, Tools prints the library technical documentation for the selected range.

Pr/Libr

The program script or library.

Line

The number of lines of the program script which have been processed.