[an error occurred while processing this directive]
HP OpenVMS Systems Documentation
HP BASIC for OpenVMS
User Manual
Previous
Contents
Index
Chapter 12
12
Program Segmentation
12.1
HP BASIC Subprograms
12.1.1
SUB Subprograms
12.1.2
FUNCTION Subprograms
12.2
Declaring Subprograms and Parameters
12.3
Compiling Subprograms
12.4
Invoking Subprograms
12.4.1
Invoking SUB Subprograms
12.4.2
Invoking FUNCTION Subprograms
12.5
Returning Program Status
Chapter 13
13
File Input and Output
13.1
Record Formats
13.1.1
Fixed-Length Records
13.1.2
Variable-Length Records
13.1.3
Stream Records
13.2
File Organizations
13.2.1
Terminal-Format Files
13.2.2
Sequential Files
13.2.3
Relative Files
13.2.4
Indexed Files
13.2.5
Virtual Files
13.3
Record Access and Record Context
13.4
I/O and Record Buffers
13.5
Accessing the Contents of a Record
13.5.1
MAP Statement
13.5.2
MAP DYNAMIC and REMAP Statements
13.5.3
MOVE Statement
13.6
File and Record Operations
13.6.1
Opening Files
13.6.2
Creating Virtual Array Files
13.6.3
Locating Records
13.6.4
Reading Records
13.6.5
Writing Records
13.6.6
Deleting Records
13.6.7
Updating Records
13.6.8
Controlling Record Access
13.6.9
Gaining Access to Locked Records
13.6.10
Accessing Records by Record File Address
13.6.11
Transferring Data to Terminal-Format Files
13.6.12
Resetting the File Position
13.6.13
Truncating Files
13.6.14
Renaming Files
13.6.15
Closing Files and Ending I/O
13.6.16
Deleting Files
13.7
File-Related Functions
13.7.1
FSP$ Function
13.7.2
RECOUNT Function
13.7.3
STATUS, VMSSTATUS, and RMSSTATUS Functions
13.8
OPEN Statement Options
13.8.1
BUCKETSIZE Clause
13.8.2
BUFFER Clause
13.8.3
CONNECT Clause
13.8.4
CONTIGUOUS Clause
13.8.5
DEFAULTNAME Clause
13.8.6
EXTENDSIZE Clause
13.8.7
FILESIZE Clause
13.8.8
NOSPAN Clause
13.8.9
RECORDTYPE Clause
13.8.10
TEMPORARY Clause
13.8.11
USEROPEN Clause
13.8.12
WINDOWSIZE Clause
Chapter 14
14
Formatting Output with the PRINT USING Statement
14.1
Overview of the PRINT USING Statement
14.2
Using Format Strings
14.3
Printing Numbers
14.3.1
Specifying the Number of Digits
14.3.2
Specifying Decimal Point Location
14.3.3
Printing Numbers with Special Symbols
14.3.3.1
Commas
14.3.3.2
Asterisk-Fill Fields
14.3.3.3
Currency Symbols
14.3.3.4
Negative Fields
14.3.3.5
E (Exponential) Format
14.3.3.6
Leading Zeros
14.3.3.7
Blank-If-Zero Fields
14.3.3.8
Debits and Credits
14.4
Printing Strings
14.4.1
Left-Justified Format
14.4.2
Right-Justified Format
14.4.3
Centered Fields
14.4.4
Extended Fields
14.5
PRINT USING Statement Error Conditions
Chapter 15
15
Handling Run-Time Errors
15.1
Default Error Handling
15.2
User-Supplied Error Handlers
15.2.1
Protected Regions
15.2.2
Handlers
15.2.3
Exiting from Handlers
15.2.3.1
RETRY Statement
15.2.3.2
CONTINUE Statement
15.2.3.3
EXIT HANDLER Statement
15.2.4
Selecting the Severity of Errors to Handle
15.2.5
Identifying Errors
15.2.5.1
Determining the Error Number (ERR)
15.2.5.2
Determining the Error Line Number (ERL)
15.2.5.3
Determining Where the Error Occurred (ERN$)
15.2.5.4
Determining the Error Message Text (ERT$)
15.2.5.5
Determining OpenVMS Error Information
15.2.5.6
Determining RMS Error Information
15.2.6
Ctrl/C Trapping
15.2.7
Handling Errors in Multiple-Unit Programs
15.2.8
Forcing Errors
15.3
Using the ON ERROR Statements
Previous
Next
Contents
Index