Skip to content

Commit 6a86ac9

Browse files
authored
Update COBOL Programming with VSCode.md
fix remaining internal links.... CBL001 - CBL0001, added *.CBL to list, 88 level USA-STATE correct
1 parent 045f873 commit 6a86ac9

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

COBOL Programming with VSCode.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Left-to-right: Ilicena, Suzy, Makenzie, Martin, Paul, and Tak
8282

8383
### [Chapter 1. Why COBOL?](#1-Why-COBOL)
8484

85-
### [Chapter 2. VSCode with Z Open Editor and ZOWE extensions](#-2.-VSCode-with-Z-Open-Editor-and-ZOWE-extensions)
85+
### [Chapter 2. VSCode with Z Open Editor and ZOWE extensions](#2.-VSCode-with-Z-Open-Editor-and-ZOWE-extensions)
8686

87-
### [Chapter 3. Installation of VSCode and extensions](#-3.-Installation-of-VSCode-and-extensions)
87+
### [Chapter 3. Installation of VSCode and extensions](#3.-Installation-of-VSCode-and-extensions)
8888

8989
# 1. Why COBOL?
9090

@@ -197,14 +197,16 @@ The IBM Z Open Editor can be installed into VS code by searching the Extensions
197197

198198
## 2.2 Basic editing
199199

200-
For the rest of this chapter we will use the CBL001.cobol sample program to demonstrate how rich of an experience editing COBOL in VSCode can be. So, let's fire up VSCode, install IBM Z Open Editor (if it's not already) open up CBL001.cobol and get started.
200+
For the rest of this chapter we will use the CBL0001 sample program to demonstrate how rich of an experience editing COBOL in VSCode can be. So, let's fire up VSCode, install IBM Z Open Editor (if it's not already) open up CBL001.cobol and get started.
201201

202202
### 2.2.1 Known file extensions
203203

204204
For VSCode to use the capabilities of the IBM Z Open Editor, it needs to know that the file we are editing is in fact COBOL type. VSCode accomplishes this by comparing the location and name of the file being opened against a list of known extensions to map the file to a known language. For COBOL the following associations are used:
205205

206206
- \*.COBOL\*
207207

208+
- \*.CBL\*
209+
208210
- \*.COB\*
209211

210212
- \*.COBCOPY\*
@@ -503,23 +505,23 @@ In this chapter you have been introduced to VSCode and some of the extension too
503505

504506
# Part 2 - Learning COBOL
505507

506-
### [Chapter 4. Basic COBOL](#-4.-Basic-COBOL)
508+
### [Chapter 4. Basic COBOL](#4.-Basic-COBOL)
507509

508-
### [Chapter 5. Data division](#-5.-Data-division)
510+
### [Chapter 5. Data division](#5.-Data-division)
509511

510-
### [Chapter 6. File handling](#-6.-File-handling)
512+
### [Chapter 6. File handling](#6.-File-handling)
511513

512-
### [Chapter 7. Program structure](#-7.-Program-structure)
514+
### [Chapter 7. Program structure](#7.-Program-structure)
513515

514-
### [Chapter 8. File output](#-8.-File-output)
516+
### [Chapter 8. File output](#8.-File-output)
515517

516-
### [Chapter 9. Conditional expressions](#-9.-Conditional-expressions)
518+
### [Chapter 9. Conditional expressions](#9.-Conditional-expressions)
517519

518-
### [Chapter 10. Arithmetic expressions](#-10.-Arithmetic-expressions)
520+
### [Chapter 10. Arithmetic expressions](#10.-Arithmetic-expressions)
519521

520-
### [Chapter 11. Data types](#-11.-Data-types)
522+
### [Chapter 11. Data types](#11.-Data-types)
521523

522-
### [Chapter 12. Intrinsic functions](#-12.-Intrinsic-functions)
524+
### [Chapter 12. Intrinsic functions](#12.-Intrinsic-functions)
523525

524526

525527
# 4. Basic COBOL
@@ -2372,15 +2374,15 @@ WORKING-STORAGE.
23722374
PROCEDURE DIVISION.
23732375
....
23742376
....
2375-
MOVE 'AZ' TO STATE.
2377+
MOVE 'AZ' TO USA-STATE.
23762378
....
23772379
....
23782380
IF STATE = 'TX' DISPLAY 'The State is Texas'
23792381
ELSE DISPLAY 'The State is not Texas'
23802382
END-IF.
23812383
....
23822384
....
2383-
MOVE 'TX' TO STATE.
2385+
MOVE 'TX' TO USA-STATE.
23842386
....
23852387
....
23862388
IF STATE = 'TX' DISPLAY 'The State is Texas'
@@ -3179,11 +3181,11 @@ Refer to CBL0011 line 120 for the proper formatting of the function-name causing
31793181

31803182
# Part 3 - VSCode alternatives and testing
31813183

3182-
### [Chapter 13. Installing IBM Developer for Z](#-13.-Installing-IBM-Developer-for-Z)
3184+
### [Chapter 13. Installing IBM Developer for Z](#13.-Installing-IBM-Developer-for-Z)
31833185

3184-
### [Chapter 14. Enabling IBM Developer for Z to work with COBOL](#-14.-Enabling-IBM-Developer-for-Z-to-work-with-COBOL)
3186+
### [Chapter 14. Enabling IBM Developer for Z to work with COBOL](#14.-Enabling-IBM-Developer-for-Z-to-work-with-COBOL)
31853187

3186-
### [Chapter 15. Using ISPF to work with COBOL](#-15.-Using-ISPF-to-work-with-COBOL)
3188+
### [Chapter 15. Using ISPF to work with COBOL](#15.-Using-ISPF-to-work-with-COBOL)
31873189

31883190
### [Chapter 16. Testing](#-16.-Testing)
31893191

0 commit comments

Comments
 (0)