D Porting to Compaq COBOL from Other Compilers
D.1
Porting Assistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D.2
Flagged Foreign Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D.3
Implemented Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index
Examples
1-1
Accessing Environment Variables and Command-Line Arguments . . .
1-2
1-3
1-4
1-5
Using RMS-CURRENT Special Registers to Detect Errors
1-6
(OpenVMS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1
Success/Failure Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1
3-2
Sample Record Description Using the MOVE CORRESPONDING
Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1
One-Dimensional Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Multiple Data Items in a One-Dimensional Table . . . . . . . . . . . . . . . .
4-2
4-3
Defining a Table with an Index and an Ascending Search Key . . . . . .
Defining a Two-Dimensional Table . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-4
4-5
Defining a Three-Dimensional Table . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6
Defining a Variable-Length Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-7
Sample Record Description Defining a Table . . . . . . . . . . . . . . . . . . . .
4-8
4-9
4-10
4-11
4-12
4-13
4-14
4-15
4-16
Subscripting a Multidimensional Table . . . . . . . . . . . . . . . . . . . . . . . .
4-17
4-18
Sample Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-19
A Serial Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-20
4-21
4-22
Using SEARCH and Varying an Index not Associated with the Target
Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-23
4-24
5-1
Sample Overflow Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
xiv
D-1
D-3
D-3
1-24
1-45
1-45
1-49
1-56
1-58
2-5
3-6
3-11
4-2
4-2
4-3
4-4
4-5
4-6
4-7
4-8
4-8
4-9
4-10
4-10
4-11
4-12
4-13
4-13
4-15
4-19
4-20
4-21
4-21
4-22
4-22
4-23
5-2
5-5
Need help?
Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?
Questions and answers