HP Integrity NonStop J-Series User Manual

Page 215

Advertising
background image

INTEGRATING APPLICATIONS
Modifying SCREEN COBOL Source Code to Call Another Application

Since ENABLE will not allow you to add an object if an object
with that name already exists, this procedure prevents you from
using conflicting box names.

MODIFYING SCREEN COBOL SOURCE CODE TO CALL ANOTHER APPLICATION

To provide the capability to call one application from another,
you must modify the SCREEN COBOL source code of the calling
application.

Suppose that you have an application, "A," that displays part of
a record, and another application, "AA," that displays the entire
record. In certain circumstances, the user may want to press a
function key (shifted F3 is reserved for this purpose) to go
directly from the partial record display to a display of the
entire record.

When ENABLE generates the SCREEN COBOL source code for an
application, it includes a paragraph named T9155-CHAIN that
contains code executed by the application when a user presses the
shifted F3 function key. Normally, this code causes the
application to display a message stating that the function key is
not supported. You can, however, modify this paragraph to
include code that causes a call to another application, by
performing the following tasks:

1. Use the text editor to edit the SCREEN COBOL source code for
the calling application. If the source code for an
application is in a file named "applscr," for example, you
can edit this file by entering:

:EDIT applsrc

2. Find the T9155-CHAIN paragraph in the SCREEN COBOL source
code by entering the following:

*LIST /T9155-CHAIN./A

When you enter this command, the editor returns the number of
the line that contains the T9155-CHAIN paragraph.

11-11

Advertising
This manual is related to the following products: