Skip to content. | Skip to navigation

Sections
Personal tools
Home Training Courses U2120: UniData and UniVerse Database Programming U2120 Table of Contents

U2120 Table of Contents

Unit 1. Editor and Stack Commands

Invoking the Editor
Editor modes
Editor buffer
Exiting from the Editor
Editor commands
Miscellaneous Editor commands
Inserting lines
Moving line pointer
Searching within the record
Displaying lines
Changing lines
Saving changes
Defining and using blocks
History stack

Unit 2. Compiling and Running Programs

Object code
UV account flavors
UD BASICTYPE
UDT options
BASIC verb
RUN verb
UV cataloging
UV CATALOG verb
Removing UV cataloged entries
Displaying UV catalog entries
MAP command (UV)
Programs in shared memory (UV)
Executing UV cataloged programs
UD cataloging
UD CATALOG verb
UD CATALOG verb options
Removing UD cataloged entries 

Displaying UD catalog entries
UD MAP command
Executing UD cataloged programs

Unit 3. BASIC Language Structure

Structure of BASIC programs
Statement labels
Keywords and Reserved words
Variables
Statement types
Comments
Data types

Unit 4. Assignment Statements

Non-computational expressions
Numeric expressions
String manipulation expressions
Comparison and pattern matching expressions
Pattern matching
Logical and Conditional expressions
Assignment statements
Special assignment operators
Substring assignment
FIELDSTORE

Unit 5. Programming Terminal I/O

Displaying on screen
Directing output
Page pause
Terminal output formatting
Cursor positioning
Getting input from the keyboard
Prompt character
Error message display
Disabling character echo
SYSTEM() function
DATA stack
Unit 6. Program Flow Control 

 

Flow control statements
Subroutine types
Internal subroutines
External subroutines
Sharing variables
Conditional statement: IF
Conditional statement: CASE
Looping statement: FOR ... NEXT
Looping statement: LOOP ... REPEAT
Abandoning iteration: CONTINUE
Abandoning loop: EXIT
Branching statements
GOTO
GOSUB
RETURN
CALL
CHAIN
STOP
ABORT
External subroutines
Common variables
Unit 7. Reading a U2 File

 

U2 files
Generic I/O statement
Opening a U2 file
File information
Reading a record
Lock types
Testing for a record lock
READ
READV
MATREAD
Locking and reading
File locks
Who has the record locked?
RELEASE
Unit 8. Compiler Directives and System Variables 
8.1. Compiler Directives
Changing flavor
Symbolic Equate
Literal Equate
$DEFINE
Conditional compilation
$INCLUDE and $INSERT
8.2. System Variables
System variables
System delimiter
Unit 9. External Execution and Select List Processing 
9.1. External Execution
External execution
PERFORM (UV)
EXECUTE (UV)
EXECUTE (UD)
O/S commands
9.2. Select Lists
Select Lists
Detecting Active Select List
Generating Select List
SELECT statement
SELECT INDEX
GETLIST
FORMLIST
Processing Select Lists
Saving an active Select List
Deleting a saved Select List
Converting to Dynamic Array
Unit 10. Dimensioned and Dynamic Arrays

 

Array defined
Dimensions and extents
Dimensional array
Zero element
Redimensioning (UV)
Redimensioning (UD)
Assignment .
Subroutine arguments
Dynamic array
Array hierarchy
Assignment
Extraction
Replacement
Insertion
Deletion
Sequential processing (REMOVE)
Searching dynamic arrays
LOCATE statement
Search example
Search example sorted
FIND statement
FINDSTR statement
Associated multivalues
Dynamic array functions
Arithmetic
Arithmetic summation
String operations
Comparison and Boolean operators
Other functions
Conversion
MATPARSE/MATREAD
MATBUILD .
FORMLIST/READLIST
Dynamic array delimiters
Dimension OR Dynamic?
Unit 11. Intrinsic Functions

 

Intrinsic function defined
Intrinsic functions covered
Learning functions
11.1. String Manipulation
String manipulation
TRIM()
LEN()
SPACE()
STR()
COUNT()
DCOUNT()
FIELD()
INDEX()
MATCHFIELD()
QUOTE() and SQUOTE()
11.2. TIME and DATE .
 
11.3. Mathematical Functions.
Mathematical functions
ABS() and INT()
MOD() and RND()
11.4. Conversion Functions.
Conversion functions
CONVERT()
EREPLACE()
ASCII, EBCDIC, CHAR, SEQ functions .
OCONV()
Date conversion
Time conversion
Masked character
Masked decimal
ICONV()
FMT() .
UPCASE() and DOWNCASE()
11.5. Status Functions
INMAT()
STATUS()
NUM(), ALPHA(), ISNULL() or ISNV()
ASSIGNED() and UNASSIGNED()
FILEINFO()
11.6. Other Functions
KEYIN() – UV or IN() – UD
SUBR() .
ITYPE()
Unit 12. Writing to U2 Files

 

12.1. WRITE Statements.
Overview of WRITE statements
WRITE statement
WRITEV statement
MATWRITE statement
DELETE statement
12.2. Transactions
Transactions
Starting a transaction
Committing a transaction
Rolling back a transaction
Ending a transaction
Unit 13. Sequential Processing

 

13.1. Printing
Print channels
Sending a line to be printed 8
Heading
FOOTING
Starting a New Page or Screen
Closing Print channel
13.2. Sequential File Access .
Opening for sequential access
Reading a line
Writing a line (UD)
Writing a line (UV) .
Truncating and Closing the file
Unit 14. Troubleshooting Techniques

 

Debugging techniques
Compiler listings
Cross-reference listing
Conditional compilation
UniDebugger
Code Editor
Terminal Emulator
Run-Time Debugger
UniData: DEBUG
UniVerse: RAID
VLIST (UV)

 

Document Actions