COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Contents
About This Document...................................................................................25
Supported Release Version Updates (RVUs)................................................................................25
Intended Audience..................................................................................................................25
Acknowledgment....................................................................................................................25
New and Changed Information................................................................................................25
New and Changed Information for 520347–011....................................................................25
New and Changed Information for 520347–010...................................................................26
New and Changed Information for 520347–009...................................................................26
New and Changed Information for 520347–008...................................................................26
New and Changed Information for 520347–007...................................................................26
New and Changed Information for 520347–006..................................................................26
New and Changed Information for 520347–005...................................................................26
New and Changed Information for 520347–004...................................................................27
Document Organization..........................................................................................................28
Notation Conventions..............................................................................................................30
COBOL Conventions..........................................................................................................30
Manuals to Which This Manual Refers.......................................................................................34
Publishing History...................................................................................................................37
HP Encourages Your Comments................................................................................................37
1 Introduction.............................................................................................38
SPR Requirements for Increased Enscribe Limits for the H06.28/J06.17 Release...............................38
HP COBOL Language.............................................................................................................38
Embedded SQL/MP...........................................................................................................39
Embedded SQL/MX...........................................................................................................39
Summary of Execution Modes..................................................................................................40
HP COBOL Compilers for TNS/E Programs................................................................................40
Guardian and OSS Environments..............................................................................................40
Compiler Input.......................................................................................................................41
Compiler Output.....................................................................................................................41
Combining Separately Compiled Source Programs......................................................................41
Executing Loadfiles.................................................................................................................42
Guardian Environment........................................................................................................42
OSS Environment...............................................................................................................42
2 Source Program Organization and Format...................................................43
Source Program Components...................................................................................................43
Reference Format for Source Program Lines................................................................................44
Indicator Area...................................................................................................................44
Area A and Area B............................................................................................................46
Restrictions........................................................................................................................46
COPY Libraries.......................................................................................................................48
Nested Source Programs.........................................................................................................48
Directly Contained Programs and Indirectly Contained Programs..............................................48
Scope of User-Defined Names.............................................................................................49
Common Programs.................................................................................................................51
Programs in the Same Run Unit.................................................................................................51
Initial Programs......................................................................................................................51
How Programs Share Resources................................................................................................51
Global and Local Names....................................................................................................52
External and Internal Objects..............................................................................................52
Shared Data.....................................................................................................................53
Contents 3










