COBOL Manual For TNS And TNS/R Programs
User Manual:
Open the PDF directly: View PDF
Page Count: 2046 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- What’s New in This Manual
- About This Manual
- 1 Introduction
- 2 Source Program Organization and Format
- 3 Language Elements
- 4 Data Fundamentals
- 5 Identification Division
- 6 Environment Division
- 7 Data Division
- 8 Procedure Division
- 9 Procedure Division Verbs
- Procedure Division Verbs
- Procedure Division Verbs
- 10 Source Text Manipulation
- 11 Program Compilation
- Compiler Input
- Compilation Details
- Compiler Output
- Running the Compiler
- Compiler Directives
- Where Compiler Directives Are Allowed
- Categories of Compiler Directives
- ANSI
- BLANK and NOBLANK
- CALL-SHARED
- CANCEL and NOCANCEL
- CHECK
- CODE and NOCODE
- COLUMNS
- COMPACT and NOCOMPACT
- COMPILE
- CONSULT and NOCONSULT
- CROSSREF and NOCROSSREF
- DIAGNOSE-74 and NODIAGNOSE-74
- DIAGNOSE-85 and NODIAGNOSE-85
- DIAGNOSEALL and NODIAGNOSEALL
- ENDIF
- ENDUNIT
- ENV
- ERRORFILE
- ERRORS
- FIPS and NOFIPS
- FLOAT and NOFLOAT
- FMAP
- HEADING
- HEAP
- HIGHPIN
- HIGHREQUESTERS
- IICODE and NOICODE
- IF and IFNOT
- INNERLIST and NOINNERLIST
- INSPECT and NOINSPECT
- LARGEDATA
- LD
- LESS-CODE
- LIBRARY
- LINES
- LIST and NOLIST
- LMAP and NOLMAP
- MAIN
- MAP and NOMAP
- NLD
- NONSTOP
- NON-SHARED
- OPTIMIZE
- PERFORM-TRACE
- PORT and NOPORT
- RESETTOG
- RUNNABLE
- RUNNAMED
- SAVE
- SAVEABEND and NOSAVEABEND
- SEARCH and NOSEARCH
- SECTION
- SETTOG
- SHARED
- SHOWCOPY and NOSHOWCOPY
- SHOWFILE and NOSHOWFILE
- SOURCE
- SQL and NOSQL
- SQLMEM
- SUBSET
- SUBTYPE
- SUPPRESS and NOSUPPRESS
- SYMBOLS and NOSYMBOLS
- SYNTAX
- TANDEM
- TRAP2 and NOTRAP2
- TRAP2-74 and NOTRAP274
- UL
- WARN and NOWARN
- 12 Program Execution
- 13 Libraries and Utility Routines
- Memory Areas
- Linkfiles as Libraries
- System Library
- TNS User Library
- User Library
- Dynamic-Link Libraries (DLLs)
- Files of Dummy Routines
- CBL85UTL Overview
- FastSort Interface Overview
- COBOLLIB Overview
- ZCOBSRL Overview
- CLULIB Overview
- Saved Message Utility (SMU) Overview
- ZCRESRL Overview
- CBL85UTL and ZCOBSRL Routines
- COBOL85^ARMTRAP
- COBOL85^COMPLETION and COBOL_COMPLETION_
- COBOL_CONTROL_
- COBOL_GETENV_
- COBOL_PUTENV_
- COBOL85^RETURN^SORT^ERRORS and COBOL_RETURN_SORT_ERRORS_
- COBOL85^REWIND^SEQUENTIAL and COBOL_REWIND_SEQUENTIAL_
- COBOL85^SET^SORT^PARAM^TEXT and COBOL_SET_SORT_PARAM_TEXT_
- COBOL85^SET^SORT^PARAM^VALUE and COBOL_SET_SORT_PARAM_VALUE_
- COBOL_SET_MAX_RECORD_
- COBOL_SETMODE_
- COBOL85^SPECIAL^OPEN and COBOL_SPECIAL_OPEN_
- COBOLLIB, CLULIB, and ZCOBSRL Routines
- Saved Message Utility (SMU) Routines
- Guardian Environment Level 3 Spooling Routines
- 14 Intrinsic Functions
- Intrinsic Function Types
- Argument Types
- ACOS Function
- ANNUITY Function
- ASIN Function
- ATAN Function
- CHAR Function
- COS Function
- CURRENT-DATE Function
- DATE-OF-INTEGER Function
- DAY-OF-INTEGER Function
- FACTORIAL Function
- INTEGER Function
- INTEGER-OF-DATE Function
- INTEGER-OF-DAY Function
- INTEGER-PART Function
- LENGTH Function
- LOG Function
- LOG10 Function
- LOWER-CASE Function
- MAX Function
- MEAN Function
- MEDIAN Function
- MIDRANGE Function
- MIN Function
- MOD Function
- NUMVAL Function
- NUMVAL-C Function
- ORD Function
- ORD-MAX Function
- ORD-MIN Function
- PRESENT-VALUE Function
- RANDOM Function
- RANGE Function
- REM Function
- REVERSE Function
- SIN Function
- SQRT Function
- STANDARD-DEVIATION Function
- SUM Function
- TAN Function
- UPPER-CASE Function
- VARIANCE Function
- WHEN-COMPILED Function
- 15 Debugging Tools
- 16 ANSI Reference Format
- 17 HP Extensions to ISO COBOL
- 18 HPCOBOL CRE Support
- 19 Using HPCOBOL in the OSS Environment
- Running the COBOL85 Compiler
- Running the NMCOBOL Compiler
- Running HPCOBOL Programs
- Calling OSS Functions From HPCOBOL Programs
- Mixed-Language Programs
- Changing Default Pathnames and Disk Volume
- Files in the OSS Environment
- Line Sequential Files
- Features Unavailable in the OSS Environment
- Features That Operate Differently in the OSS Environment
- 20 HPCOBOL Limits
- 21 Reserved Words
- 22 Creating and Compiling HPCOBOL Source Programs
- Using the TACL Command Log
- Creating or Altering an HPCOBOL Source Program
- Compiling an HPCOBOL Source Program
- Using COPY and SOURCE Libraries
- Creating or Altering a COPY or SOURCE Library
- Including Text From a COPY Library
- Including Text From a SOURCE Library
- Replacing Text-Words in an HPCOBOL Source Program
- Understanding and Controlling the Compiler Listing
- 23 Calling Other Programs and Routines
- 24 Issues Related to Binding and Linking
- 25 Executing and Debugging HPCOBOL Programs
- Preparing to Execute an HPCOBOL Program
- Adding DEFINEs
- Overriding File Assignments Made at Compilation Time
- Specifying Characteristics of Files That a Program Creates
- Enabling Debugging Declaratives
- Overriding the NONSTOP Directive
- Specifying a Default Input-Output Device
- Providing for an Unavailable Printer
- Turning On External Switches
- Requesting a Debugger Instead of ABEND
- Specifying Waited Input-Output
- Using OBEY Files to Prepare for Execution
- Finding Out What Preparation Commands Are Already Active
- Changing or Clearing Unwanted Preparation Commands
- Executing an HPCOBOL Program
- Getting a Program to Enter Debugging Mode
- Preparing to Execute an HPCOBOL Program
- 26 Input and Output Concepts
- 27 Tape Input and Output
- 28 Disk Input and Output
- Common Disk File Topics
- Allocation
- Partitioned Files
- Purging Files or Their Data
- Locking
- Ownership and Security
- Fixed-Length and Variable-Length Records
- Exclusion Modes
- Time Limits
- Reading Files From Called Programs
- Sharing Files Among HPCOBOL Programs
- Sharing Files Among Different-Language Modules
- Modification
- Maximum Number of Files
- Types of HP Disk Files
- Creating and Using HPCOBOL Sequential Files
- Creating and Using HPCOBOL Relative Files
- Creating and Using HPCOBOL Indexed Files
- Creating and Using Queue Files
- Establishing Starting Points in Files
- Optimizing Disk File Processing
- Optimizing Disk File Storage
- Avoiding Deadlock
- Using Enscribe and Operating System Routines
- Physical File Names
- Obtaining File Numbers and Other File Attributes
- Determining Whether Two COBOL File Names Specify the Same Physical File
- Purging a File From an HPCOBOL Program
- Purging the Contents of a File From an HPCOBOL Program
- Renaming a File From an HPCOBOL Program
- Creating a File Having Alternate Keys From an HPCOBOL Program
- Common Disk File Topics
- 29 Terminal Input and Output
- 30 Printer and Spooler Output
- 31 Process Initiation, Communication, and Management
- 32 Fault-Tolerant Processes
- 33 Migrating TNS Programs to Native Programs
- 34 Native COBOL Cross Compiler on PC
- 35 Commands
- 36 Compiler Directives
- ANSI
- BLANK and NOBLANK
- CALL-SHARED
- CANCEL and NOCANCEL
- CHECK
- CODE and NOCODE
- COLUMNS
- COMPACT and NOCOMPACT
- COMPILE
- CONSULT and NOCONSULT
- CROSSREF and NOCROSSREF
- DIAGNOSE-74 and NODIAGNOSE-74
- DIAGNOSE-85 and NODIAGNOSE-85
- DIAGNOSEALL and NODIAGNOSEALL
- ENDIF
- ENDUNIT
- ENV
- ERRORFILE
- ERRORS
- FIPS and NOFIPS
- FLOAT and NOFLOAT
- FMAP
- HEADING
- HEAP
- HIGHPIN
- HIGHREQUESTERS
- ICODE and NOICODE
- IF and IFNOT
- INNERLIST and NOINNERLIST
- INSPECT and NOINSPECT
- LARGEDATA
- LD
- LESS-CODE
- LIBRARY
- LINES
- LIST and NOLIST
- LMAP and NOLMAP
- MAIN
- MAP and NOMAP
- NLD
- NONSTOP
- NON-SHARED
- OPTIMIZE
- PERFORM-TRACE
- PORT and NOPORT
- RESETTOG
- RUNNABLE
- RUNNAMED
- SAVE
- SAVEABEND and NOSAVEABEND
- SEARCH and NOSEARCH
- SECTION
- SETTOG
- SHARED
- SHOWCOPY and NOSHOWCOPY
- SHOWFILE and NOSHOWFILE
- SOURCE
- SQL and NOSQL
- SQLMEM
- SUBSET
- SUBTYPE
- SUPPRESS and NOSUPPRESS
- SYMBOLS and NOSYMBOLS
- SYNTAX
- TANDEM
- TRAP2 and NOTRAP2
- TRAP2-74 and NOTRAP274
- UL
- WARN and NOWARN
- 37 Source Program Organization and Format
- 38 Language Elements and Expressions
- 39 Data References
- 40 Identification Division
- 41 Environment Division
- 42 Data Division
- 43 Procedure Division
- ACCEPT With Mnemonic-Name
- ACCEPT With DATE, DAY, DAY-OF-WEEK, or TIME Phrase
- ADD TO
- ADD GIVING
- ADD CORRESPONDING
- ALTER
- CALL
- CANCEL
- CHECKPOINT
- CLOSE for Sequential and Line Sequential Files
- CLOSE for Relative, Indexed, and Queue Files
- COMPUTE
- CONTINUE
- COPY
- DELETE
- DISPLAY
- DIVIDE INTO
- DIVIDE GIVING
- DIVIDE GIVING REMAINDER
- ENTER
- ENTER COBOL
- EVALUATE
- EXIT
- Unconditional GO TO
- Conditional GO TO
- Delimited-Scope IF
- Conditional IF
- INITIALIZE
- INSPECT TALLYING
- INSPECT REPLACING
- INSPECT TALLYING REPLACING
- INSPECT CONVERTING
- LOCKFILE
- MERGE
- MOVE TO
- MOVE CORRESPONDING
- MULTIPLY BY
- MULTIPLY GIVING
- OPEN
- Unconditional PERFORM
- PERFORM TIMES
- PERFORM UNTIL
- PERFORM VARYING
- READ for Sequential or Dynamic Access
- READ for Line Sequential Access
- READ for Random or Dynamic Access
- RELEASE
- REPLACE
- RETURN
- REWRITE for Sequential, Relative, Indexed, and Queue Files
- REWRITE for Line Sequential Files
- SEARCH VARYING
- SEARCH ALL
- SET TO for Pointer Data Items
- SET TO for Nonpointer Data Items
- SET UP or SET DOWN for Pointer Data Items
- SET UP or SET DOWN for Nonpointer Data Items
- SORT
- START
- STARTBACKUP
- STOP
- STRING
- SUBTRACT FROM
- SUBTRACT GIVING
- SUBTRACT CORRESPONDING
- UNLOCKFILE
- UNLOCKRECORD
- UNSTRING
- USE DEBUGGING
- USE AFTER EXCEPTION
- WRITE for Sequential Files
- WRITE for Line Sequential Files
- WRITE for Relative, Indexed, and Queue Files
- 44 Intrinsic Function Calls
- ACOS
- ANNUITY
- ASIN
- ATAN
- CHAR
- COS
- CURRENT-DATE
- DATE-OF-INTEGER
- DAY-OF-INTEGER
- FACTORIAL
- INTEGER
- INTEGER-OF-DATE
- INTEGER-OF-DAY
- INTEGER-PART
- LENGTH
- LOG
- LOG10
- LOWER-CASE
- MAX
- MEAN
- MEDIAN
- MIDRANGE
- MIN
- MOD
- NUMVAL
- NUMVAL-C
- ORD
- ORD-MAX
- ORD-MIN
- PRESENT-VALUE
- RANDOM
- RANGE
- REM
- REVERSE
- SIN
- SQRT
- STANDARD-DEVIATION
- SUM
- TAN
- UPPER-CASE
- VARIANCE
- WHEN-COMPILED
- 45 CBL85UTL and ZCOBSRL Routine Calls
- COBOL85^ARMTRAP
- COBOL85^COMPLETION
- COBOL_COMPLETION_
- COBOL_CONTROL_
- COBOL_GETENV_
- COBOL_PUTENV_
- COBOL85^RETURN^SORT^ERRORS and COBOL_RETURN_SORT_ERRORS_
- COBOL85^REWIND^SEQUENTIAL and COBOL_REWIND_SEQUENTIAL_
- COBOL85^SET^SORT^PARAM^TEXT and COBOL_SET_SORT_PARAM_TEXT_
- COBOL85^SET^SORT^PARAM^VALUE and COBOL_SET_SORT_PARAM_VALUE_
- COBOL_SET_MAX_RECORD_
- COBOL_SETMODE_
- COBOL85^SPECIAL^OPEN and COBOL_SPECIAL_OPEN_
- 46 COBOLLIB, CLULIB, and ZCRESRL Routine Calls
- 47 Compiler Diagnostic Messages
- 48 Run-Time Diagnostic Messages
- A ASCII Character Set
- B Data Type Correspondence
- Glossary
- Index