Compaq COBOL
User Manual


Previous Contents Index

Chapter 11
11 Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
     11.1     Using ACCEPT and DISPLAY for I/O
     11.2     Designing Video Forms with ACCEPT and DISPLAY Statement Extensions
         11.2.1         Clearing a Screen Area
         11.2.2         Horizontal and Vertical Positioning of the Cursor
         11.2.3         Assigning Character Attributes to Your Format Entries
         11.2.4         Using the CONVERSION Phrase to Display Numeric Data
         11.2.5         Handling Data with ACCEPT Options
             11.2.5.1             Using CONVERSION with ACCEPT Data
             11.2.5.2             Using ON EXCEPTION When Accepting Data with CONVERSION
             11.2.5.3             Protecting the Screen
             11.2.5.4             Using NO ECHO with ACCEPT Data
             11.2.5.5             Assigning Default Values to Data Fields
         11.2.6         Using Terminal Keys to Define Special Program Functions
         11.2.7         Using the EDITING Phrase
     11.3     Designing Video Forms with Screen Section ACCEPT and DISPLAY
         11.3.1         Using Screen Section Options
             11.3.1.1             Comparison of Screen Section Extensions with Other Extensions of ACCEPT and DISPLAY
Chapter 12
12 Interprogram Communication
     12.1     Multiple COBOL Program Run Units
         12.1.1         Examples of COBOL Run Units
         12.1.2         Calling Procedures
     12.2     COBOL Program Attributes
         12.2.1         The INITIAL Clause
         12.2.2         The EXTERNAL Clause
     12.3     Transferring Flow of Control
         12.3.1         The CALL Statement
         12.3.2         Nesting CALL Statements
         12.3.3         The EXIT PROGRAM Statement
     12.4     Accessing Another Program's Data Division
         12.4.1         The USING Phrase
         12.4.2         The Linkage Section
     12.5     Communicating with Contained COBOL Programs
         12.5.1         The COMMON Clause
         12.5.2         The GLOBAL Clause
             12.5.2.1             Sharing GLOBAL Data
             12.5.2.2             Sharing GLOBAL Files
             12.5.2.3             Sharing USE Procedures
             12.5.2.4             Sharing Other Resources
     12.6     Calling Compaq COBOL Programs from Other Languages
         12.6.1         Calling COBOL Programs from C
     12.7     Calling Non-COBOL Programs from Compaq COBOL
         12.7.1         Calling a Fortran Program
         12.7.2         Calling a BASIC Program
         12.7.3         Calling a C Program
     12.8     Special Considerations for Interprogram Communication
         12.8.1         CALL and CANCEL Arguments
         12.8.2         Calling OpenVMS Alpha Shareable Images (OpenVMS)
         12.8.3         Calling Tru64 UNIX Shareable Objects (Tru64 UNIX)
         12.8.4         Case Sensitivity on Tru64 UNIX and Windows NT
             12.8.4.1             Linker Case Sensitivity
             12.8.4.2             Calling C Programs from Compaq COBOL on Tru64 UNIX and Windows NT
             12.8.4.3             Calling COBOL Programs from C on Tru64 UNIX and Windows NT
         12.8.5         Additional Information
Chapter 13
13 Using Compaq COBOL in the Alpha Common Language Environment
     13.1     Routines, Procedures, and Functions
     13.2     The OpenVMS Alpha Calling Standard (OpenVMS)
         13.2.1         Register and Stack Usage
         13.2.2         Return of the Function Value
         13.2.3         The Argument List
     13.3     OpenVMS Alpha System Routines (OpenVMS)
         13.3.1         OpenVMS Alpha Run-Time Library Routines
         13.3.2         System Services
     13.4     Calling Routines
         13.4.1         Determining the Type of Call (OpenVMS)
         13.4.2         Defining the Argument (OpenVMS)
         13.4.3         Calling the External Routine (OpenVMS)
         13.4.4         Calling System Routines (OpenVMS)
             13.4.4.1             System Routine Arguments (OpenVMS)
             13.4.4.2             Calling a System Routine in a Function Call (OpenVMS)
             13.4.4.3             Calling a System Routine in a Procedure Call (OpenVMS)
         13.4.5         Checking the Condition Value (OpenVMS)
             13.4.5.1             Library Return Status and Condition Value Symbols (OpenVMS)
         13.4.6         Locating the Result (OpenVMS)
     13.5     Establishing and Removing User Condition Handlers (OpenVMS)
     13.6     Examples (OpenVMS)
Chapter 14
14 Using the REFORMAT Utility
     14.1     Running the REFORMAT Utility
     14.2     ANSI-to-Terminal Format Conversion
     14.3     Terminal-to-ANSI Format Conversion
     14.4     REFORMAT Error Messages
Chapter 15
15 Optimizing Your Compaq COBOL Program
     15.1     Specifying Optimization on the Compiler Command Line
     15.2     Specifying Alignment of Data for Optimum Performance
     15.3     Using COMP Data Items for Speed
     15.4     Other Ways to Improve the Performance of Operations on Numeric Data
         15.4.1         Mixing Scale Factors and Data Types
         15.4.2         Limiting Significant Digits
         15.4.3         Reducing the Compexity of Arithmetic Expressions
         15.4.4         Selection of Data Types (OpenVMS)
     15.5     Choices in Procedure Division Statements
         15.5.1         Using GO TO DEPENDING ON Instead of IF, GO TO
         15.5.2         Using Indexing Instead of Subscripting
         15.5.3         Using SEARCH ALL Instead of SEARCH
         15.5.4         Selecting Hypersort for Sorting Tasks
         15.5.5         Minimizing USE Procedures with LINKAGE SECTION References
     15.6     I/O Operations
         15.6.1         Using the APPLY Clause
             15.6.1.1             Using the PREALLOCATION Phrase of the APPLY Clause
             15.6.1.2             Using the EXTENSION Phrase of the APPLY Clause
             15.6.1.3             Using the DEFERRED-WRITE Phrase of the APPLY Clause
             15.6.1.4             Using the FILL-SIZE ON Phrase of the APPLY Clause
             15.6.1.5             Using the WINDOW Phrase of the APPLY Clause
         15.6.2         Using Multiple Buffers
         15.6.3         Sharing Record Areas
         15.6.4         Using COMP Unsigned Longword Integers
     15.7     Optimizing File Design (OpenVMS)
         15.7.1         Sequential Files
         15.7.2         Relative Files
             15.7.2.1             Maximum Record Number (MRN)
             15.7.2.2             Cell Size
             15.7.2.3             Bucket Size
             15.7.2.4             File Size
         15.7.3         Indexed Files
             15.7.3.1             Optimizing Indexed File I/O
             15.7.3.2             Calculating Key Index Levels
             15.7.3.3             Caching Index Roots
     15.8     Image Activation Optimization (Tru64 UNIX)


Previous Next Contents Index