Compaq ACMS for OpenVMS
Concepts and Design Guidelines


Previous Contents Index

8.3.2 Using DECforms with ACMS

You refer to DECforms forms in two places in your application's definitions:

The DECforms Forms Manager is a run-time system that provides the interface between the terminal and an ACMS application. The Forms Manager controls the appearance of the display, user input, and data transfer between the form and ACMS. When data is being used in the form, it is placed in form data items. The Forms Manager maps the data items to corresponding ACMS workspace fields through a structure definition called the form record.

8.3.2.1 Design Issues for DECforms and ACMS

Consider the following issues when you define DECforms forms:

8.3.2.2 Deciding the Number of DECforms Forms

A DECforms form can contain one or more panels. You can invoke panels separately or together on the screen. The panel is, in effect, what the user considers a form. However, you can also design a DECforms interface to have one or more DECforms forms. In deciding how many forms to use in your application, consider:

The design issues listed above are in the context of choosing one form or multiple forms. Other design options are:

8.4 Using TDMS

Compaq recommends the use of DECforms for use with ACMS. However, if you need to enhance an existing TDMS interface, follow these guidelines:

8.5 Using TDMS Run-Time Support

This section describes a TDMS run-time support feature that can improve response time for local users. This feature allows you to select whether TDMS run-time support for local users is provided by the Application Execution Controller (EXC) process or by a Command Process (CP).

The EXC handles task flow control for the application. For each ACMS application, there is only one EXC. All tasks in the application are handled by the EXC unique to that application.

The CP handles the user interface for an ACMS application. One or more CPs provide user interface support (menu displays and data presentation). ACMS allows you to have multiple CPs active at one time on a given system, so that you can tailor the resources allocated to the user interface activity according to the number of users and the complexity of the work.

TDMS run-time support by the EXC creates a problem if there are many local TDMS users, because the data presentation work for all of the users is carried out in the one EXC. Consequently the EXC becomes overburdened, and response times degrade.

The TDMS run-time support feature allows you to specify CPs to provide local TDMS run-time support, rather than the EXC providing it automatically. This allows you to accommodate for TDMS loads by adjusting the number of CPs available.

8.5.1 Specifying CPs for Local TDMS Run-Time Support

You control local TDMS run-time support by defining a logical name. For each ACMS application, you decide whether you want the EXC or the CPs to provide local TDMS run-time support. If you decide that the CPs should provide local support, define the system or group logical name ACMS$LOCAL_TDMS_IN_AGENT to equate to the characters T, t, Y, or y, or to an odd-numbered value.

The EXC continues to provide local TDMS run-time support under three conditions:

The EXC process evaluates the logical name when the process is invoked. Therefore, you must define the logical name before starting the application.

You can define this logical name by two different methods:

8.5.2 Defining the Logical Name

The following sections illustrate both methods of defining the logical name for local TDMS run-time support. The DCL-command method defines the logical name systemwide; the ADU-clause method defines it for just one application.

8.5.2.1 DCL-Command Method

The following command causes the CPs to provide local TDMS run-time support for all applications subsequently started on the node. The Y in the command specifies local CP support.


$ DEFINE/SYSTEM/EXEC ACMS$LOCAL_TDMS_IN_AGENT  Y

The following command causes the EXC process to provide local TDMS run-time support for all applications subsequently started on the node. The zero in the command specifies local EXC support.


$ DEFINE/SYSTEM/EXEC ACMS$LOCAL_TDMS_IN_AGENT  0

8.5.2.2 ADU-Clause Method

Example 8-1 illustrates how the APPLICATION LOGICAL clause in the ADU application definition causes the CPs to provide local TDMS run-time support for the application defined by this definition. The 1 in the example is an odd numeric value that specifies local CP support.

Example 8-1 Defining Local CP Support

APPLICATION LOGICAL IS "ACMS$LOCAL_TDMS_IN_AGENT" = "1"; 
 
APPLICATION USERNAME IS ...; 
TASK GROUPS ARE 
  . 
  . 
  . 
END TASK GROUPS; 
END DEFINITION; 

The APPLICATION LOGICAL clause in the ADU application definition in Example 8-2 causes the EXC process to provide local TDMS run-time support for the application defined by this definition. The F in the example specifies local EXC support.

Example 8-2 Defining Local EXC Support

APPLICATION LOGICAL IS "ACMS$LOCAL_TDMS_IN_AGENT" = F; 
APPLICATION USERNAME IS ...; 
TASK GROUPS ARE 
  . 
  . 
  . 
END TASK GROUPS; 
END DEFINITION; 
 

Note that while the numeric value 1 in Example 8-1 requires quotation marks, the string F in Example 8-2 does not. This conforms to the ADU syntax rules. For information about ADU clause syntax, refer to the Compaq ACMS for OpenVMS ADU Reference Manual.

8.6 Using Request I/O and Stream I/O for Nonstandard Devices

Your application may require the use of another forms product or other devices that DECforms does not support. Use request I/O and the RI, or stream I/O, to handle situations such as:

Note

ACMS provides an interface that allows you to call ACMS tasks from an ALL-IN-1 menu. You can invoke ALL-IN-1 under ACMS, in a DCL server. However, running ALL-IN-1 from ACMS in this way can have a severe negative effect on system performance.

Section 8.6.1 describes the Request Interface and request I/O. Section 8.6.2 describes stream I/O.

8.6.1 Using Request I/O and the Request Interface

In most instances, you can use the RI to communicate with unsupported devices. The RI offers these advantages:

Compaq ACMS for OpenVMS Writing Applications describes the details of RI use.

8.6.2 Using Stream I/O

Stream I/O has the following advantages over the RI:


Previous Next Contents Index