Compaq DEC Text Processing Utility AA-PWCBD-TE User Manual
Guide to the dec text processing utility
Guide to the DEC Text
Processing Utility
Order Number: AA–PWCBD–TE
April 2001
This manual introduces the DEC Text Processing Utility (DECTPU). It
is for experienced programmers as well as new users of DECTPU.
Revision/Update Information:
This manual supersedes the Guide
to the DEC Text Processing Utility,
Version 3.1
Software Version:
OpenVMS Alpha Version 7.3
OpenVMS VAX Version 7.3
The content of this manual has not
changed sinced OpenVMS Version 7.1
Compaq Computer Corporation
Houston, Texas
Table of contents
Document Outline
- Guide to the DEC Text Processing Utility
- Contents
- Preface
- 1 Overview of the DEC Text Processing Utility
- 2 Getting Started with DECTPU
- 3 DEC Text Processing Utility Data Types
- 4 Lexical Elements of the DEC Text Processing Utility Language
- 5 DEC Text Processing Utility Program Development
- A Sample DECTPU Procedures
- B DECTPU Terminal Support
- C DECTPU Debugger Commands
- Index
- Examples
- Example 1–1 Sample User-Written Procedure
- Example 2–1 DCL Command Procedure FILENAME.COM
- Example 2–2 DCL Command Procedure FORTRAN_TS.COM
- Example 2–3 DCL Command Procedure INVISIBLE_TPU.COM
- Example 2–4 DECTPU Command File GSR.TPU
- Example 3–1 Suppressing the Addition of Padding Blanks
- Example 4–1 Global and Local Variable Declarations
- Example 4–2 Global and Local Constant Declarations
- Example 4–3 Procedure That Uses Relational Operators on Markers
- Example 4–4 Simple Procedure with Parameters
- Example 4–5 Complex Procedure with Optional Parameters
- Example 4–6 Procedure That Returns a Result
- Example 4–7 Procedure Within Another Procedure
- Example 4–8 Recursive Procedure
- Example 4–9 Procedure That Uses the CASE Statement
- Example 4–10 Procedure That Uses the ON_ERROR Statement
- Example 4–11 Procedure with a Case-Style Error Handler
- Example 4–12 Procedure That Returns a Value
- Example 4–13 Procedure That Returns a Status
- Example 4–14 Using RETURN in an ON_ERROR Section
- Example 4–15 Simple Error Handler
- Example 5–1 SHOW (SUMMARY) Display
- Example 5–2 Syntax of a DECTPU Program
- Example 5–3 Sample DECTPU Programs
- Example 5–4 Sample Program for a Section File
- Example 5–5 Source Code for Minimal Interface to DECTPU
- Example 5–6 Command File for GOTO_TEXT_MARKER
- Example 5–7 SHOW DEFAULTS BUFFER Display
- Example A–1 Line-Mode Editing
- Example A–2 Procedure to Display Control Characters
- Example A–3 Procedure to Restore Screen to Original Width
- Example A–4 Procedure to Run DECTPU from a Subprocess
- Example B–1 DCL Command Procedure for SET TERM/NOWRAP
- Figures
- Tables
- Table 2–1 Default File Specifications on OpenVMS Systems
- Table 2–2 Journaling Behavior Established by EVE
- Table 2–3 Character Set Values You Can Set with /CHARACTER_SET
- Table 3–1 Keywords Used for Key Names
- Table 3–2 Effects of Two String-Reduction Operations
- Table 4–1 Categories of ASCII Character Set Characters
- Table 4–2 Categories of DEC Multinational Character Set Characters
- Table 4–3 Categories for ISO Latin1 Characters
- Table 4–4 DECTPU Symbols
- Table 4–5 DECTPU Operators
- Table 4–6 Operator Precedence
- Table 5–1 Relationship Between DECTPU Data Types and DECwindows Argument Data Types
- Table 5–2 Special DECTPU Variables That Require a Value from a Layered Application
- Table B–1 Terminal Behavior That Affects DECTPU’s Performance
- Contents