![](https://csdnimg.cn/release/download_crawler_static/88483425/bg12.jpg)
GCL Programmer's Manual
xvi 47 A2 36UJ Rev05
7. Programmatic Interface
7.1 GCL Interface.................................................................................................................. 7-1
7.1.1 Primitives ........................................................................................................... 7-2
7.1.1.1 GCLINIT ............................................................................................ 7-2
7.1.1.2 GCLTERM......................................................................................... 7-5
7.1.1.3 GCLREAD ......................................................................................... 7-6
7.1.1.4 GCLABORT....................................................................................... 7-8
7.1.1.5 GCLRETRY..................................................................................... 7-10
7.1.2 Primitives in Schematic Program..................................................................... 7-12
7.2 Interface Between Program and Procedure ................................................................. 7-13
7.2.1 Domain............................................................................................................. 7-13
7.2.2 SYSTEM Command ........................................................................................ 7-13
7.3 Programming Rules ...................................................................................................... 7-14
7.4 Example of Application ................................................................................................. 7-15
7.4.1 Programming in COBOL.................................................................................. 7-17
7.4.2 GCL Procedure BANK of IOF Domain ............................................................ 7-20
7.4.3 GCL Procedures BALANCE, DEBIT and CREDIT.......................................... 7-20
7.4.4 Equivalent Programming in GPL ..................................................................... 7-21
7.5 Help Text Handling........................................................................................................ 7-22
7.5.1 Definition of a Help Text .................................................................................. 7-22
7.5.2 Requesting a Help Text ................................................................................... 7-24
7.5.3 Help Operations............................................................................................... 7-25
7.5.4 Conventions..................................................................................................... 7-26
7.5.5 CREATE_HELP_TEXT: CRHELP................................................................... 7-27
7.5.6 Formatting Controls ......................................................................................... 7-28
7.5.7 Examples of Help Texts................................................................................... 7-29
7.5.7.1 Source Text ..................................................................................... 7-29
7.5.7.2 Composed Text............................................................................... 7-31
7.5.7.3 Domain Level Help Text.................................................................. 7-33
7.5.7.4 Command Level Help Text.............................................................. 7-34
7.5.7.5 Parameter Level Help Text ............................................................. 7-35
7.5.8 HELP Primitive................................................................................................. 7-36
7.6 Managing GCL Variables.............................................................................................. 7-38
7.6.1 Global Variables .............................................................................................. 7-38
7.6.2 System Variables............................................................................................. 7-38
7.6.3 GCL Variable Primitives................................................................................... 7-38
7.6.3.1 READVAR ....................................................................................... 7-39
7.6.3.2 MODVAR......................................................................................... 7-41