COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
USE DEBUGGING...........................................................................................................484
USE AFTER EXCEPTION....................................................................................................484
WRITE.................................................................................................................................487
WRITE for Sequential Files.................................................................................................487
WRITE for Line Sequential Files..........................................................................................494
WRITE for Relative, Indexed, and Queue Files......................................................................494
10 Source Text Manipulation.......................................................................499
COPY Statement...................................................................................................................499
REPLACING Phrase...............................................................................................................503
COPY Libraries.....................................................................................................................505
Specifying Library Names.................................................................................................506
Library Format.................................................................................................................506
REPLACE Statement...............................................................................................................508
11 Program Compilation.............................................................................512
Compiler Input.....................................................................................................................512
Main Programs................................................................................................................513
Calling and Called Programs............................................................................................513
How an HP COBOL Program Calls a Non-COBOL Program..................................................514
Compilation Units............................................................................................................514
Compilation Details..............................................................................................................516
Processes Involved in Compilation......................................................................................516
Temporary File Placement..................................................................................................516
CALL and ENTER Statement Processing: Overview................................................................516
CALL and ENTER Statement Processing: Detailed Explanation................................................518
#RECEIVE Blocks.............................................................................................................522
Compiler Output...................................................................................................................524
Listing Creation................................................................................................................524
Object File Creation.........................................................................................................524
Object File Size...............................................................................................................524
Generating Instrumented Object Code for Use With the Code Coverage Tool..........................525
Manipulating Object Files.................................................................................................525
Compilation Statistics.......................................................................................................525
Completion Codes...........................................................................................................526
Running the Compiler............................................................................................................527
PARAM Commands..........................................................................................................527
Predefined SEARCH DEFINEs............................................................................................528
Starting a Compilation.....................................................................................................529
Terminating a Compilation................................................................................................533
Compiler Directives...............................................................................................................533
Where Compiler Directives Are Allowed.............................................................................533
Categories of Compiler Directives......................................................................................535
ANSI..............................................................................................................................539
BLANK and NOBLANK....................................................................................................539
CALL-SHARED.................................................................................................................540
CANCEL and NOCANCEL...............................................................................................541
CHECK..........................................................................................................................541
CODECOV.....................................................................................................................542
COLUMNS.....................................................................................................................542
COMPILE........................................................................................................................543
CONSULT and NOCONSULT............................................................................................544
DIAGNOSE-74 and NODIAGNOSE-74..............................................................................545
DIAGNOSE-85 and NODIAGNOSE-85..............................................................................548
DIAGNOSEALL and NODIAGNOSEALL.............................................................................548
ELD................................................................................................................................548
8 Contents










