Compaq AAQ2G1FTK Marine Radio User Manual


 
11.3 Designing Video Forms with Screen Section ACCEPT and DISPLAY . . . . 11–31
11.3.1 Using Screen Section Options . . . ............................ 11–32
11.3.1.1 Comparison of Screen Section Extensions with Other Extensions
of ACCEPT and DISPLAY . . . ............................ 11–34
12 Interprogram Communication
12.1 Multiple COBOL Program Run Units ............................ 12–1
12.1.1 Examples of COBOL Run Units . . ............................ 12–1
12.1.2 Calling Procedures ........................................ 12–2
12.2 COBOL Program Attributes .................................... 12–3
12.2.1 The INITIAL Clause . . .................................... 12–4
12.2.2 The EXTERNAL Clause .................................... 12–5
12.3 Transferring Flow of Control ................................... 12–5
12.3.1 The CALL Statement . . .................................... 12–5
12.3.2 Nesting CALL Statements .................................. 12–6
12.3.3 The EXIT PROGRAM Statement . ............................ 12–8
12.4 Accessing Another Program’s Data Division ........................ 12–8
12.4.1 The USING Phrase . . . .................................... 12–9
12.4.2 The Linkage Section . . .................................... 12–12
12.5 Communicating with Contained COBOL Programs ................. 12–13
12.5.1 The COMMON Clause . .................................... 12–14
12.5.2 The GLOBAL Clause . . .................................... 12–15
12.5.2.1 Sharing GLOBAL Data ................................. 12–15
12.5.2.2 Sharing GLOBAL Files ................................. 12–15
12.5.2.3 Sharing USE Procedures ................................ 12–16
12.5.2.4 Sharing Other Resources ................................ 12–18
12.6 Calling Compaq COBOL Programs from Other Languages . ........... 12–19
12.6.1 Calling COBOL Programs from C ............................ 12–19
12.7 Calling Non-COBOL Programs from Compaq COBOL ................ 12–25
12.7.1 Calling a Fortran Program .................................. 12–25
12.7.2 Calling a BASIC Program .................................. 12–27
12.7.3 Calling a C Program . . .................................... 12–29
12.8 Special Considerations for Interprogram Communication . . ........... 12–30
12.8.1 CALL and CANCEL Arguments . ............................ 12–30
12.8.2 Calling OpenVMS Alpha Shareable Images (OpenVMS) ........... 12–30
12.8.3 Calling Tru64 UNIX Shareable Objects (Tru64 UNIX) . . ........... 12–30
12.8.4 Case Sensitivity on Tru64 UNIX and Windows NT ............... 12–30
12.8.4.1 Linker Case Sensitivity ................................. 12–30
12.8.4.2 Calling C Programs from Compaq COBOL on Tru64 UNIX and
Windows NT ......................................... 12–31
12.8.4.3 Calling COBOL Programs from C on Tru64 UNIX and Windows
NT ................................................ 12–31
12.8.5 Additional Information . .................................... 12–32
13 Using Compaq COBOL in the Alpha Common Language
Environment
13.1 Routines, Procedures, and Functions . ............................ 13–1
13.2 The OpenVMS Alpha Calling Standard (OpenVMS) ................. 13–2
13.2.1 Register and Stack Usage .................................. 13–2
13.2.2 Return of the Function Value ................................ 13–3
13.2.3 The Argument List ........................................ 13–3
13.3 OpenVMS Alpha System Routines (OpenVMS) . . ................... 13–3
x