Skip to content

Commit 995c5c5

Browse files
committed
Fix indentation of images and captions
Signed-off-by: Hartanto Ario Widjaya <[email protected]>
1 parent 77fd695 commit 995c5c5

File tree

2 files changed

+65
-59
lines changed

2 files changed

+65
-59
lines changed

COBOL Programming Course #2 - Learning COBOL/COBOL Programming Course #2 - Learning COBOL.md

Lines changed: 65 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@ In this lab exercise, you will connect to an IBM Z system, view a simple COBOL h
379379
1. IBM Z Open Editor
380380
2. Zowe Explorer
381381

382-
![](Images/image044.png)
382+
![](Images/image044.png)
383383

384-
*Figure 2a. The IBM Z Open Editor and Zowe Explorer VSCode extensions*
384+
*Figure 2a. The IBM Z Open Editor and Zowe Explorer VSCode extensions*
385385

386-
If you installed Code4z, the list should include:
386+
If you installed Code4z, the list should include:
387387

388388
1. COBOL Language Support
389389
2. Zowe Explorer
@@ -396,155 +396,161 @@ If you installed Code4z, the list should include:
396396

397397
In these exercises, you will only use the COBOL Language Support and Zowe Explorer extensions.
398398

399-
![](Images/image044b.png)
399+
![](Images/image044b.png)
400400

401-
*Figure 2b. The Code4z package of VSCode extensions.*
401+
*Figure 2b. The Code4z package of VSCode extensions.*
402402

403403
**Note:** If your list contains both Z Open Editor and COBOL Language Support, disable one of them, by clicking on the **cog** icon next to the extension in the extensions list, and selecting **disable**.
404404

405405
2. Click the Zowe Explorer icon as shown in Figure 3. Zowe Explorer can list Data Sets, Unix System Services (USS) files, and Jobs output.
406406

407-
![](Images/image046.png)
407+
![](Images/image046.png)
408408

409-
*Figure 3. Zowe Explorer icon*
409+
*Figure 3. Zowe Explorer icon*
410410

411411
3. In order to connect to the lab system, get your team configuration zip file and extract it. You can obtain the team configuration zip file from the [Releases section of the course's GitHub repository](https://github.com/openmainframeproject/cobol-programming-course/releases/latest).
412412

413-
![](Images/image0001.png)
413+
![](Images/image0001.png)
414414

415-
*Figure 4. Extract the ZIP file*
415+
*Figure 4. Extract the ZIP file*
416416

417417
4. Open the extracted folder. You will find the two configuration files as shown in Figure 5.
418418

419-
![](Images/image0002.png)
419+
![](Images/image0002.png)
420420

421-
*Figure 5. Inside the Team configuration file*
421+
*Figure 5. Inside the Team configuration file*
422422

423423
5. Now back on your VSCode window, select the Explorer tab, and press the "Open folder" button in the left bar.
424424

425-
![](Images/image0006.png)
425+
![](Images/image0006.png)
426426

427-
*Figure 6. Click the open folder button*
427+
*Figure 6. Click the open folder button*
428428

429429
6. A pop-up window would show up, select the folder containing the team configuration files.
430430

431-
![](Images/image0003.png)
431+
![](Images/image0003.png)
432432

433-
*Figure 7. Select the team Configuration folder*
433+
*Figure 7a. Select the team Configuration folder*
434+
435+
If you are prompted to trust the authors of the files in the folder as shown in Figure 7b, select **Yes, I trust the authors**.
436+
437+
![](Images/image0008.png)
438+
439+
*Figure 7b. Trust the authors of files the folder*
434440

435441
7. Your connection should be added automatically to the Data Sets list as shown in Figure 8a.
436442

437-
![](Images/image0004.png)
443+
![](Images/image0004.png)
438444

439-
*Figure 8a. LearnCOBOL Connection*
445+
*Figure 8a. LearnCOBOL Connection*
440446

441447
If the connection does not appear, hover to the far right of the Data Sets line and press the + icon. Afterward, select the **LearnCOBOL** connection as shown in Figure 8b.
442448

443-
![](Images/image0005.png)
449+
![](Images/image0005.png)
444450

445-
*Figure 8b. Adding LearnCOBOL Connection manually*
451+
*Figure 8b. Adding LearnCOBOL Connection manually*
446452

447453
8. Press the LearnCOBOL connection.
448454

449-
![](Images/image0007.png)
455+
![](Images/image0007.png)
450456

451-
*Figure 9. Pressing the LearnCOBOL Connection*
457+
*Figure 9. Pressing the LearnCOBOL Connection*
452458

453459
9. The connection prompts for a username as shown in Figure 10.
454460

455-
![](Images/image061.png)
461+
![](Images/image061.png)
456462

457-
*Figure 10. User name prompt*
463+
*Figure 10. User name prompt*
458464

459465
10. **Please enter the username assigned to you! Do not use the sample username of Z99998.** A sample username, is entered as shown in Figure 11. The ID is assigned by the System Administrator.
460466

461-
![](Images/image064.png)
467+
![](Images/image064.png)
462468

463-
*Figure 11. Specified user name*
469+
*Figure 11. Specified user name*
464470

465471
11. The connection prompts for a password as shown in Figure 12.
466472

467-
![](Images/image067.png)
473+
![](Images/image067.png)
468474

469-
*Figure 12. Password prompt*
475+
*Figure 12. Password prompt*
470476

471477
12. Enter your assigned password as shown in Figure 13.
472478

473-
![](Images/image070.png)
479+
![](Images/image070.png)
474480

475-
*Figure 13. Specified password*
481+
*Figure 13. Specified password*
476482

477483
13. Expanding LearnCOBOL shows “Use the search button to display datasets”. Click the magnifying glass icon as shown in Figure 14.
478484

479-
![](Images/image084.png)
485+
![](Images/image084.png)
480486

481-
*Figure 14. Magnifying glass icon to set a filter*
487+
*Figure 14. Magnifying glass icon to set a filter*
482488

483489
14. A prompt to "Search Data Sets" will appear as shown in Figure 15.
484490

485-
![](Images/image086.png)
491+
![](Images/image086.png)
486492

487-
*Figure 15. Filter name to be searched*
493+
*Figure 15. Filter name to be searched*
488494

489495
15. Each user has a high-level qualifier that is the same as their username. Therefore, enter your assigned username as the search criteria as shown in Figure 16. **Please enter the username assigned to you! Do not use the sample username of Z99998.**
490496

491-
![](Images/image088.png)
497+
![](Images/image088.png)
492498

493-
*Figure 16. Entered filter name*
499+
*Figure 16. Entered filter name*
494500

495501
16. A list of data set names beginning with your username will appear as shown in Figure 17.
496502

497-
![](Images/image090.png)
503+
![](Images/image090.png)
498504

499-
*Figure 17. Filtered data set names*
505+
*Figure 17. Filtered data set names*
500506

501507
17. Expand **`<USERNAME>.CBL`** to view COBOL source members, then select member **HELLO** to see a simple COBOL ‘Hello World!’ program as shown in Figure 18.
502508

503-
![](Images/image093.png)
509+
![](Images/image093.png)
504510

505-
*Figure 18. `<USERNAME>.CBL`*
511+
*Figure 18. `<USERNAME>.CBL`*
506512

507513
18. Expand **`<USERNAME>.JCL`** to view JCL members and select member HELLO which is the JCL used to compile and execute a simple ‘Hello World!’ COBOL source code as shown in Figure 19.
508514

509-
![](Images/image095.png)
515+
![](Images/image095.png)
510516

511-
*Figure 19. `<USERNAME>.JCL`*
517+
*Figure 19. `<USERNAME>.JCL`*
512518

513-
19. Right-click on JCL member **HELLO**. A section box appears. Select **Submit Job** for the system to process HELLO JCL as shown in Figure 20. The submitted JCL job compiles the COBOL HELLO source code, then executes the COBOL HELLO program.
519+
19. Right-click on JCL member **HELLO**. A section box appears. Select **Submit Job** for the system to process HELLO JCL as shown in Figure 20. The submitted JCL job compiles the COBOL HELLO source code, then executes the COBOL HELLO program.
514520

515-
![](Images/image097.png)
521+
![](Images/image097.png)
516522

517-
*Figure 20. Submit Job*
523+
*Figure 20. Submit Job*
518524

519-
20. Observe the ‘Jobs’ section in Zowe Explorer as shown in Figure 21.
525+
20. Observe the ‘Jobs’ section in Zowe Explorer as shown in Figure 21.
520526

521-
![](Images/image098.png)
527+
![](Images/image098.png)
522528

523-
*Figure 21. JOBS section*
529+
*Figure 21. JOBS section*
524530

525-
21. Again, click on the + to the far right on the Jobs selection. The result is another prompt to ‘Create new’. Select **LearnCOBOL** from the list as shown in Figure 22.
531+
21. Again, click on the + to the far right on the Jobs selection. The result is another prompt to ‘Create new’. Select **LearnCOBOL** from the list as shown in Figure 22.
526532

527-
![](Images/image100.png)
533+
![](Images/image100.png)
528534

529-
*Figure 22. Select LearnCOBOL connection*
535+
*Figure 22. Select LearnCOBOL connection*
530536

531-
22. As a result, the JCL jobs owned by your username appear. HELLOCBL is the JCL job name previously submitted. Expand **HELLOCBL** output to view sections of the output as shown in Figure 23.
537+
22. As a result, the JCL jobs owned by your username appear. HELLOCBL is the JCL job name previously submitted. Expand **HELLOCBL** output to view sections of the output as shown in Figure 23.
532538

533-
![](Images/image102.png)
539+
![](Images/image102.png)
534540

535-
*Figure 23. HELLOCBL output*
541+
*Figure 23. HELLOCBL output*
536542

537-
23. Select **COBRUN:SYSPRINT(101)** to view the COBOL compiler output. Scroll forward in the COBOL compile to locate the COBOL source code compiled into an executable module as shown in Figure 24. Observe the Indicator Area in column 7, A Area beginning in column 8, and B Area beginning in column 12. Also, observe the period (.) scope terminators in the COBOL source.
543+
23. Select **COBRUN:SYSPRINT(101)** to view the COBOL compiler output. Scroll forward in the COBOL compile to locate the COBOL source code compiled into an executable module as shown in Figure 24. Observe the Indicator Area in column 7, A Area beginning in column 8, and B Area beginning in column 12. Also, observe the period (.) scope terminators in the COBOL source.
538544

539-
![](Images/image104.png)
545+
![](Images/image104.png)
540546

541-
*Figure 24. COBOL compiler output*
547+
*Figure 24. COBOL compiler output*
542548

543-
24. View the COBOL program execution by selecting **COBRUN:SYSOUT(104)** from the LEARNCOBOL in the Jobs section of Zowe Explorer as shown in Figure 25.
549+
24. View the COBOL program execution by selecting **COBRUN:SYSOUT(104)** from the LEARNCOBOL in the Jobs section of Zowe Explorer as shown in Figure 25.
544550

545-
![](Images/image106.png)
551+
![](Images/image106.png)
546552

547-
*Figure 25. COBOL program execution*
553+
*Figure 25. COBOL program execution*
548554

549555
25. Do note that you will need to open the **LearnCOBOL** folder every time you connect to the system, repeating step 5 to 7. To enable your connection profile to be accessible anywhere on your machine, you will need to move your configuration files (i.e. `zowe.config.json` and `zowe.schema.json`) from the LearnCOBOL folder to the Zowe global location. By default this is `C:\Users\%USERNAME%\.zowe` for Windows or `~/.zowe` for Linux and macOS.
550556

92.2 KB
Loading

0 commit comments

Comments
 (0)