COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

25 Executing and Debugging HP COBOL Programs......................................820
Preparing to Execute an HP COBOL Program...........................................................................820
Adding DEFINEs..............................................................................................................820
Overriding File Assignments Made at Compilation Time........................................................821
Specifying Characteristics of Files That a Program Creates.....................................................821
Overriding the NONSTOP Directive...................................................................................822
Specifying a Default Input-Output Device.............................................................................822
Providing for an Unavailable Printer...................................................................................823
Turning On External Switches............................................................................................823
Requesting a Debugger Instead of ABEND..........................................................................823
Specifying Waited Input-Output.........................................................................................823
Using OBEY Files to Prepare for Execution...........................................................................823
Finding Out What Preparation Commands Are Already Active...............................................824
Changing or Clearing Unwanted Preparation Commands.....................................................825
Executing an HP COBOL Program..........................................................................................825
Starting an HP COBOL Program From a TACL Prompt...........................................................825
Specifying Default Input and Output Devices........................................................................826
Specifying the Home Terminal...........................................................................................826
Naming the New Process.................................................................................................827
Running the New Process in the Background.......................................................................828
Run-Time Errors................................................................................................................828
Getting a Program to Enter Debugging Mode..........................................................................829
Before Execution..............................................................................................................829
Programmatically.............................................................................................................829
Forcefully........................................................................................................................829
26 Input and Output Concepts....................................................................830
Files....................................................................................................................................830
System File Names...........................................................................................................830
COBOL File Names.........................................................................................................832
Associating COBOL File Names With System File Names......................................................833
Prereading File Records....................................................................................................836
Processes Handled as Files....................................................................................................836
Intercepting Operating System Messages.................................................................................836
27 Tape Input and Output..........................................................................838
Reading and Writing Tape Files..............................................................................................838
Preventing Prereading.......................................................................................................838
Saving Tape and Time......................................................................................................838
Unlabeled Tape Files........................................................................................................839
Labeled Tape Files...........................................................................................................842
Tape Files of Types Other Than HP.....................................................................................845
Adding DEFINEs for Tape Files...............................................................................................847
Unlabeled Tape Files........................................................................................................847
Labeled Tape Files...........................................................................................................849
Executing HP COBOL Programs That Use Tape Files..................................................................853
Mount Messages.............................................................................................................853
Run-Time Errors................................................................................................................854
28 Disk Input and Output...........................................................................856
Common Disk File Topics.......................................................................................................856
Allocation.......................................................................................................................856
Partitioned Files...............................................................................................................856
Purging Files or Their Data................................................................................................856
Locking...........................................................................................................................857
Ownership and Security...................................................................................................857
Contents 15