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

Getting Break Ownership......................................................................................................893
Transferring Break Ownership................................................................................................894
Communicating With an Operator or Process...........................................................................895
Writing to a Console........................................................................................................895
Writing to a Terminal or Printer..........................................................................................896
Reading From a Terminal or Process...................................................................................896
Reading and Writing Numeric Data...................................................................................896
Logging Program Activity Information to a Terminal...................................................................897
30 Printer and Spooler Output....................................................................899
Using a Printer Directly..........................................................................................................899
Understanding Spoolers........................................................................................................899
Spooler Components........................................................................................................899
Jobs...............................................................................................................................900
Using a Spooler...................................................................................................................903
Spooling Compiler Listings................................................................................................903
Spooling Program Output.................................................................................................903
Using PERUSE.................................................................................................................906
Using SPOOLCOM..........................................................................................................909
Controlling Vertical Spacing in a Printed Report........................................................................911
Skipping Lines.................................................................................................................911
Overprinting Lines............................................................................................................911
Skipping to a Printer Control Tape Channel Punch................................................................912
Skipping to a New Page...................................................................................................912
Formatting Pages of a Printed Report.......................................................................................912
Logging Program Activity Information to a Printer......................................................................913
DISPLAY..........................................................................................................................914
WRITE............................................................................................................................914
31 Process Initiation, Communication, and Management................................915
Memory and Virtual Memory.................................................................................................916
Initiating a Process From an HP COBOL Program......................................................................916
Communicating With a Process..............................................................................................916
$RECEIVE.......................................................................................................................916
Process Names................................................................................................................920
Example of Simple Interprocess Communication...................................................................921
RECEIVE-CONTROL Paragraph..........................................................................................923
At-End Condition.............................................................................................................924
Summary of $RECEIVE Rules.............................................................................................924
Simple Server Example.....................................................................................................925
Managing a Process.............................................................................................................929
Determining the Process Handle.........................................................................................929
Determining the Node (System Number).............................................................................929
Identifying the Message Source.........................................................................................930
Determining the Status......................................................................................................932
Identifying the Creator......................................................................................................937
Monitoring Descendants’ Completion.................................................................................939
Changing the Creator ID..................................................................................................942
Suspending a Process.......................................................................................................942
32 Fault-Tolerant Processes..........................................................................944
NonStop Operating System...................................................................................................944
Introduction to the Fault-Tolerant Facility..............................................................................944
Introduction to TMF..........................................................................................................945
Choosing the Fault-Tolerant Facility or TMF..........................................................................945
Fault-Tolerant Facility.............................................................................................................945
Contents 17