Command Interpreter Access and Variables Programmer's Guide MPE/iX 5.0 Documentation
Command Interpreter Access and Variables Programmer's Guide
Table of Contents
Command Interpreter Access and Variables Programmer's Guide
Command Interpreter Access and Variables Programmer's Guide : COPYRIGHT NOTICE
Ch 1. Introduction
What Is the Command Interpreter?
How Is the Command Interpreter Used?
How Programmers Use the CI
Ch 2. Accessing the Command Interpreter
Issuing Commands Directly
Reissuing and Modifying Commands
Issuing Commands Through UDCs
Creating a UDC File
Executing a UDC
Specifying UDC Options
Issuing Commands Through Command Files
Creating a Command File
Executing a Command File
Specifying Options for Command Files
Issuing Commands from an Application Program
Parameter Handling
ANYPARM
Ch 3. Setting and Manipulating Variables
Setting User-Defined Variables
Defining Variable Type
Displaying User-Defined Variables
Naming Variables
Deleting User-Defined Variables
Using Predefined Variables
Displaying Values
Modifying Values
Accessing Variable Values
Implicit Dereferencing
Explicit Dereferencing
Recursive Dereferencing
Substituting Strings
Ch 4. Evaluating Expressions
Using Expressions in CI Commands
Performing Arithmetic Operations
Evaluating Strings
Performing Bit Operations
Converting Numbers
Evaluating File Characteristics
Comparing Results
Expression Substitution
Ch 5. Using Language Constructs Available with CI
Obtaining Input
Identifying Parameters
Prompting for Input
Retrieving Input from a File
Branching After Evaluation
Creating Processing Loops
Reporting Results
Displaying Output to the Terminal
Redirecting Output to a File
Returning to Calling Environment
Ch 6. Accessing Variables and CI Commands in Applications
Using Intrinsics to Set Variables
Using Intrinsics to Retrieve Variables
Using Intrinsics to Execute CI Commands
Ch 7. Sample Command Files
To Center a String
To Set a Function Key
To Add User Capabilities
To Retrieve File Information
To Create a Calculator
To Create a Menu of Options
To List Multiple Files
Ch 8. Command Input/Output Redirection (CIOR)
Redirecting Command Input and Output
Redirecting Command Input
Redirecting Command Output
Redirecting Both Command Input and Output
Redirecting I/O with a File Backreference
Appending Redirected Command Output
Redirecting Output to a Device File
The Append Option with Device Files
Stacked I/O Redirection
Things to Remember about Redirection Constructions
Escaping Redirection
Redirection File Defaults
Determining Redirection: HPSTDIN and HPSTDLIST
Ap A. Predefined Variables
Ap B. Evaluator Functions
INDEX
Index
MPE/iX 5.0 Documentation