Compaq BASIC for OpenVMS
Alpha and VAX Systems
User Manual


Previous Contents Index

Chapter 15
15 Formatting Output with the PRINT USING Statement
     15.1     Overview of the PRINT USING Statement
     15.2     Using Format Strings
     15.3     Printing Numbers
         15.3.1         Specifying the Number of Digits
         15.3.2         Specifying Decimal Point Location
         15.3.3         Printing Numbers with Special Symbols
             15.3.3.1             Commas
             15.3.3.2             Asterisk-Fill Fields
             15.3.3.3             Currency Symbols
             15.3.3.4             Negative Fields
             15.3.3.5             E (Exponential) Format
             15.3.3.6             Leading Zeros
             15.3.3.7             Blank-If-Zero Fields
             15.3.3.8             Debits and Credits
     15.4     Printing Strings
         15.4.1         Left-Justified Format
         15.4.2         Right-Justified Format
         15.4.3         Centered Fields
         15.4.4         Extended Fields
     15.5     PRINT USING Statement Error Conditions
Chapter 16
16 Handling Run-Time Errors
     16.1     Default Error Handling
     16.2     User-Supplied Error Handlers
         16.2.1         Protected Regions
         16.2.2         Handlers
         16.2.3         Exiting from Handlers
             16.2.3.1             RETRY Statement
             16.2.3.2             CONTINUE Statement
             16.2.3.3             EXIT HANDLER Statement
         16.2.4         Selecting the Severity of Errors to Handle
         16.2.5         Identifying Errors
             16.2.5.1             Determining the Error Number (ERR)
             16.2.5.2             Determining the Error Line Number (ERL)
             16.2.5.3             Determining Where the Error Occurred (ERN$)
             16.2.5.4             Determining the Error Message Text (ERT$)
             16.2.5.5             Determining OpenVMS Error Information
             16.2.5.6             Determining RMS Error Information
         16.2.6         Ctrl/C Trapping
         16.2.7         Handling Errors in Multiple-Unit Programs
         16.2.8         Forcing Errors
     16.3     Using the ON ERROR Statements
Chapter 17
17 Compiler Directives
     17.1     Overview of Compiler Directives
     17.2     Controlling the Compilation Listing
         17.2.1         %TITLE and %SBTTL Directives
         17.2.2         %IDENT Directive
         17.2.3         %PAGE Directive
         17.2.4         %LIST and %NOLIST Directives
         17.2.5         %CROSS and %NOCROSS Directives
     17.3     Accessing External Source Files
     17.4     Controlling Compilation
         17.4.1         %LET Directive
         17.4.2         %VARIANT Directive
         17.4.3         %ABORT Directive
         17.4.4         %PRINT Directive
         17.4.5         %IF-%THEN-%ELSE-%END %IF Directive
         17.4.6         %DEFINE and %UNDEFINE Directives
     17.5     Record Dependency Relationships in CDD/Repository
Chapter 18
18 Data Representation
     18.1     Integer Format
         18.1.1         Byte-Length Integer Format
         18.1.2         Word-Length Integer Format
         18.1.3         Longword Integer Format
         18.1.4         Quadword Integer Format (Alpha BASIC Only)
     18.2     Real Number Format
         18.2.1         SINGLE Floating-Point Number Format (F_floating)
         18.2.2         DOUBLE Floating-Point Number Format (D_floating)
         18.2.3         GFLOAT Floating-Point Number Format (G_floating)
         18.2.4         HFLOAT Floating-Point Number Format (H_floating)---VAX BASIC Only
         18.2.5         SFLOAT Floating-Point Number Format (S_floating)---Alpha BASIC Only
         18.2.6         TFLOAT Floating-Point Number Format (T_floating)---Alpha BASIC Only
         18.2.7         XFLOAT Floating-Point Number Format (X_floating)---Alpha BASIC Only
     18.3     Packed Decimal Number Format
     18.4     String and Array Descriptor Format
         18.4.1         Fixed-Length String Descriptor Format
         18.4.2         Dynamic String Descriptor Format
     18.5     Array Descriptors
     18.6     Decimal Scalar String Descriptor (Packed Decimal String Descriptor)
Part 3
Part 3 Using BASIC Features on OpenVMS Systems
Chapter 19
19 Advanced File Input and Output
     19.1     RMS I/O to Magnetic Tape
         19.1.1         Allocating and Mounting a Tape
         19.1.2         Opening a Tape File for Output
         19.1.3         Opening a Tape File for Input
         19.1.4         Positioning a Tape
         19.1.5         Writing Records to a File
         19.1.6         Reading Records from a File
         19.1.7         Controlling Tape Output Format
         19.1.8         Rewinding a Tape
         19.1.9         Closing a File
     19.2     Device-Specific I/O
         19.2.1         Device-Specific I/O to Unit Record Devices
         19.2.2         Device-Specific I/O to Magnetic Tape Devices
             19.2.2.1             Allocating and Mounting a Tape
             19.2.2.2             Opening a Tape File for Output
             19.2.2.3             Opening a Tape File for Input
             19.2.2.4             Writing Records to a File
             19.2.2.5             Reading Records from a File
             19.2.2.6             Rewinding a Tape
             19.2.2.7             Closing a Tape
         19.2.3         Device-Specific I/O to Disks
             19.2.3.1             Assigning and Mounting a Disk
             19.2.3.2             Opening a Disk File for Output
             19.2.3.3             Opening a Disk File for Input
             19.2.3.4             Writing Records to a Disk File
             19.2.3.5             Reading Records from a Disk File
     19.3     I/O to Mailboxes
     19.4     Network I/O
         19.4.1         Remote File Access
         19.4.2         Task-to-Task Communication
         19.4.3         Accessing a VAX Rdb/VMS Database


Previous Next Contents Index