Skip to content

Commit 879d002

Browse files
committed
Merge branch 'master' into contributing-guidelines
2 parents f5816e7 + 6cffd34 commit 879d002

26 files changed

+270
-60
lines changed

ADOPTERS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Adopters
2+
Our many learners, contributors, and community members are the adopters of this project.

COBOL Programming Course #1 - Getting Started/COBOL Programming Course #1 - Getting Started.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ COBOL programming language has many words with specific meaning to the COBOL com
11871187

11881188
A few COBOL reserved words pertinent to this book are: PERFORM, MOVE, COMPUTE, IF, THEN, ELSE, EVALUATE, PICTURE, etc.. You can find a table of all COBOL reserved words is located at:
11891189

1190-
[https://www.ibm.com/support/knowledgecenter/zh/SSZJPZ_9.1.0/com.ibm.swg.im.iis.ds.mfjob.dev.doc/topics/r_dmnjbref_COBOL_Reserved_Words.html](https://www.ibm.com/support/knowledgecenter/zh/SSZJPZ_9.1.0/com.ibm.swg.im.iis.ds.mfjob.dev.doc/topics/r_dmnjbref_COBOL_Reserved_Words.html)
1190+
[https://www.ibm.com/support/knowledgecenter/SS6SG3_6.3.0/lr/ref/rlres.html](https://www.ibm.com/support/knowledgecenter/SS6SG3_6.3.0/lr/ref/rlres.html)
11911191

11921192

11931193
### What is a COBOL statement?
@@ -1779,7 +1779,7 @@ The maximum length of a picture clause is dependent upon the data type and compi
17791779

17801780
Where cs is any valid currency symbols such as the dollar sign ($).
17811781

1782-
All PIC clause symbols are described in the [Enterprise COBOL for z/OS Language Reference manual](https://www.ibm.com/support/knowledgecenter/SS6SG3_4.2.0/com.ibm.entcobol.doc_4.2/PGandLR/igy3lr50.pdf).
1782+
All PIC clause symbols are described in the [Enterprise COBOL for z/OS Language Reference manual](http://publibfp.boulder.ibm.com/epubs/pdf/igy6lr30.pdf).
17831783

17841784

17851785
### Coding COBOL variable / data-item names
@@ -1840,7 +1840,7 @@ A structured level number hierarchic relationship is available to all DATA DIVIS
18401840

18411841
### Levels of data
18421842

1843-
After a record is defined, it can be subdivided to provide more detailed data references as seen in Figure 1. A level number is a one-digit or two-digit integer between 01 and 49, or one of three special level numbers: 66, 77, or 88 where the variable names are assigned attributes different from the 01-49-level numbers. The relationship between level numbers within a group item defines the hierarchy of data within that group. A group item includes all group and elementary items that follow it until a level number less than or equal to the level number of that group is encountered.
1843+
After a record is defined, it can be subdivided to provide more detailed data references as seen in Figure 1. A level number is a one-digit or two-digit integer between 01 and 49, or one of three special level numbers: 66, 77, or 88 where the variable names are assigned attributes different from the 01-49-level numbers. The relationship between level numbers within a group item defines the hierarchy of data within that group. A group item includes all group and elementary items that follow it until a level number less than or equal to the level number of that group is encountered. An elementary item is an item which cannot be further subdivided. These items have a PIC clause because they reserve storage for the item.
18441844

18451845
## MOVE and COMPUTE
18461846

@@ -2131,7 +2131,7 @@ The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL co
21312131

21322132
- CBL0002J
21332133

2134-
- CBL0033J
2134+
- CBL0003J
21352135

21362136
![](Images/image133.png)
21372137

@@ -2178,10 +2178,10 @@ The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL co
21782178

21792179
- RUN:PRTLINE(103) is the COBOL program execution output (if correction is successful)
21802180

2181-
10. Submit job, JCL(CBL0033J), using the DATA SET section.
2181+
10. Submit job, JCL(CBL0003J), using the DATA SET section.
21822182

21832183

2184-
11. View CBL0033J ABENDU4038 output, using the JOBS section:
2184+
11. View CBL0003J ABENDU4038 output, using the JOBS section:
21852185

21862186
- View the IGZ00355 abend message in RUN:SYSOUT(104) from the COBOL program execution output.
21872187

@@ -2193,33 +2193,33 @@ The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL co
21932193

21942194

21952195

2196-
12. Fix this error by editing JCL(CBL0033J):
2196+
12. Fix this error by editing JCL(CBL0003J):
21972197

21982198
- Determine the DDNAME needed, but missing or misspelled.
21992199

22002200
- Correct it within the code and save
22012201

22022202

22032203

2204-
13. Re-submit job, JCL(CBL0033J), using the DATA SET section.
2204+
13. Re-submit job, JCL(CBL0003J), using the DATA SET section.
22052205

22062206

22072207

2208-
14. View CBL0033J output using the JOBS section, your output should look like Figure 12.
2208+
14. View CBL0003J output using the JOBS section, your output should look like Figure 12.
22092209

22102210
- RUN:PRTLINE - COBOL program execution output (if correction is successful)
22112211

22122212
![](Images/image138.png)
22132213

2214-
*Figure 12. RUN:PRTLINE(103) for JCL(CBL0033J)*
2214+
*Figure 12. RUN:PRTLINE(103) for JCL(CBL0003J)*
22152215

22162216
**Lab hints**
22172217

22182218
13. The error is located on line 11, adjust 'ACCTREX' accordingly.
22192219

22202220
![](Images/image140.png)
22212221

2222-
*Figure 13. Error in id.JCL(CBL0033J).jcl*
2222+
*Figure 13. Error in id.JCL(CBL0003J).jcl*
22232223

22242224
\newpage
22252225

@@ -2638,13 +2638,13 @@ In this case, the Boolean condition is evaluated before the loop is executed. H
26382638

26392639

26402640
```
2641-
PERFORM UNTIL COUNTER = 10 WITH TEST AFTER
2641+
PERFORM WITH TEST AFTER UNTIL COUNTER = 10
26422642
ADD 1 TO COUNTER GIVING COUNTER
26432643
MOVE COUNTER TO MSG-TO-WRITE
26442644
WRITE PRINT-REC
26452645
END-PERFORM.
26462646
```
2647-
*Example 15. PERFORM UNTIL WITH TEST AFTER*
2647+
*Example 15. PERFORM WITH TEST AFTER UNTIL*
26482648

26492649
This would be similar to a "do while" loop in Java:
26502650

@@ -2755,13 +2755,13 @@ In summary, this chapter should provide the necessary foundation to understand s
27552755

27562756
## Lab
27572757

2758-
This lab utilizes COBOL program CBL0003, located within your id.CBL data set, as well as JCL job CBL0003J, located within your id.JCL data set. The JCL jobs are used to compile and execute the COBOL programs, as discussed in previous chapters.
2758+
This lab utilizes COBOL program CBL0033, located within your id.CBL data set, as well as JCL job CBL0033J, located within your id.JCL data set. The JCL jobs are used to compile and execute the COBOL programs, as discussed in previous chapters.
27592759

27602760
#### Using VSCode and Zowe Explorer
27612761

2762-
1. Take a moment and look over the source code of the COBOL program provided: CBL0003.
2762+
1. Take a moment and look over the source code of the COBOL program provided: CBL0033.
27632763

2764-
2. Compare CBL0003 with CBL0001 and CBL0002 from the previous lab. Do you notice the differences?
2764+
2. Compare CBL0033 with CBL0001 and CBL0002 from the previous lab. Do you notice the differences?
27652765

27662766
a. Observe the new COUNTER line within the WORKING-STORAGE > DATA DIVISION.
27672767

@@ -2771,11 +2771,11 @@ This lab utilizes COBOL program CBL0003, located within your id.CBL data set, as
27712771

27722772
c. These paragraphs perform the same loop as in CBL0001, but using the PERFORM statement in different ways. The CALLING-SUBPROGRAM calls the HELLO program, already presented in the second Lab of this course.
27732773

2774-
3. Submit job: CBL0003J. This JCL first compiles the program HELLO,
2775-
then compiles CBL0003 and links the result of both compilations
2774+
3. Submit job: CBL0033J. This JCL first compiles the program HELLO,
2775+
then compiles CBL0033 and links the result of both compilations
27762776
together.
27772777

2778-
4. View CBL0003J output using the JOBS section and open RUN:PRTLINE, observe the report is identical to CBL0001.
2778+
4. View CBL0033J output using the JOBS section and open RUN:PRTLINE, observe the report is identical to CBL0001.
27792779

27802780
5. View output of target program HELLO using the JOBS section and open RUN:SYSOUT.
27812781

@@ -3271,7 +3271,7 @@ The sign condition determines whether the algebraic value of a numeric operand i
32713271

32723272
**Note** : To read more information about these conditions please visit the link:
32733273

3274-
[IBM Knowledge Center - Enterprise COBOL for z/OS 4.2.0](https://www.ibm.com/support/knowledgecenter/en/SS6SG3_4.2.0/com.ibm.entcobol.doc_4.2/PGandLR/ref/rlpdsxco.htm)
3274+
[IBM Knowledge Center - Enterprise COBOL for z/OS 6.3.0](https://www.ibm.com/support/knowledgecenter/SS6SG3_6.3.0/lr/ref/rlpdsxco.html)
32753275

32763276

32773277
## Lab
@@ -3454,7 +3454,7 @@ COMPUTE | Restriction does not apply
34543454

34553455
*Table 2. How the composite of operands is determined*
34563456

3457-
In all arithmetic statements, it is important to define data with enough digits and decimal places to ensure the required accuracy in the result. Arithmetic precision details are available in the [IBM Enterprise COBOL Programming Guide Appendix A](https://www.ibm.com/support/pages/enterprise-cobol-zos-documentation-library).
3457+
In all arithmetic statements, it is important to define data with enough digits and decimal places to ensure the required accuracy in the result. Arithmetic precision details are available in the [IBM Enterprise COBOL Programming Guide Appendix A](http://publibfp.boulder.ibm.com/epubs/pdf/igy6pg30.pdf).
34583458

34593459

34603460

COBOL Programming Course #1 - Getting Started/Labs/cbl/ADDAMT.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
ACCEPT MORE-DATA
3535
INSPECT MORE-DATA CONVERTING 'noyes' to 'NOYES'
3636
END-PERFORM
37-
STOP RUN.
37+
GOBACK.

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0001.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
CLOSE-STOP.
7878
CLOSE ACCT-REC.
7979
CLOSE PRINT-LINE.
80-
STOP RUN.
80+
GOBACK.
8181
*
8282
READ-RECORD.
8383
READ ACCT-REC

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0002.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
CLOSE-STOP.
5959
CLOSE ACCT-REC.
6060
CLOSE PRINT-LINE.
61-
STOP RUN.
61+
GOBACK.
6262
*
6363
READ-RECORD.
6464
READ ACCT-REC

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0004.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
CLOSE-STOP.
145145
CLOSE ACCT-REC.
146146
CLOSE PRINT-LINE.
147-
STOP RUN.
147+
GOBACK.
148148
*
149149
READ-RECORD.
150150
READ ACCT-REC

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0005.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
CLOSE-STOP.
145145
CLOSE ACCT-REC.
146146
CLOSE PRINT-LINE.
147-
STOP RUN.
147+
GOBACK.
148148
*
149149
READ-RECORD.
150150
READ ACCT-REC

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0006.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
WRITE PRINT-REC FROM CLIENTS-PER-STATE.
135135
CLOSE ACCT-REC.
136136
CLOSE PRINT-LINE.
137-
STOP RUN.
137+
GOBACK.
138138
*
139139
READ-RECORD.
140140
READ ACCT-REC

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0007.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
WRITE PRINT-REC FROM CLIENTS-PER-STATE.
135135
CLOSE ACCT-REC.
136136
CLOSE PRINT-LINE.
137-
STOP RUN.
137+
GOBACK.
138138
*
139139
READ-RECORD.
140140
READ ACCT-REC

COBOL Programming Course #1 - Getting Started/Labs/cbl/CBL0008.cobol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
CLOSE-STOP.
157157
CLOSE ACCT-REC.
158158
CLOSE PRINT-LINE.
159-
STOP RUN.
159+
GOBACK.
160160
*
161161
READ-RECORD.
162162
READ ACCT-REC

0 commit comments

Comments
 (0)