You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: COBOL Programming Course #1 - Getting Started/COBOL Programming Course #1 - Getting Started.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1187,7 +1187,7 @@ COBOL programming language has many words with specific meaning to the COBOL com
1187
1187
1188
1188
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:
@@ -1779,7 +1779,7 @@ The maximum length of a picture clause is dependent upon the data type and compi
1779
1779
1780
1780
Where cs is any valid currency symbols such as the dollar sign ($).
1781
1781
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).
1783
1783
1784
1784
1785
1785
### Coding COBOL variable / data-item names
@@ -1840,7 +1840,7 @@ A structured level number hierarchic relationship is available to all DATA DIVIS
1840
1840
1841
1841
### Levels of data
1842
1842
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.
1844
1844
1845
1845
## MOVE and COMPUTE
1846
1846
@@ -2131,7 +2131,7 @@ The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL co
2131
2131
2132
2132
- CBL0002J
2133
2133
2134
-
-CBL0033J
2134
+
-CBL0003J
2135
2135
2136
2136

2137
2137
@@ -2178,10 +2178,10 @@ The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL co
2178
2178
2179
2179
- RUN:PRTLINE(103) is the COBOL program execution output (if correction is successful)
2180
2180
2181
-
10. Submit job, JCL(CBL0033J), using the DATA SET section.
2181
+
10. Submit job, JCL(CBL0003J), using the DATA SET section.
2182
2182
2183
2183
2184
-
11. View CBL0033J ABENDU4038 output, using the JOBS section:
2184
+
11. View CBL0003J ABENDU4038 output, using the JOBS section:
2185
2185
2186
2186
- View the IGZ00355 abend message in RUN:SYSOUT(104) from the COBOL program execution output.
2187
2187
@@ -2193,33 +2193,33 @@ The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL co
2193
2193
2194
2194
2195
2195
2196
-
12. Fix this error by editing JCL(CBL0033J):
2196
+
12. Fix this error by editing JCL(CBL0003J):
2197
2197
2198
2198
- Determine the DDNAME needed, but missing or misspelled.
2199
2199
2200
2200
- Correct it within the code and save
2201
2201
2202
2202
2203
2203
2204
-
13. Re-submit job, JCL(CBL0033J), using the DATA SET section.
2204
+
13. Re-submit job, JCL(CBL0003J), using the DATA SET section.
2205
2205
2206
2206
2207
2207
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.
2209
2209
2210
2210
- RUN:PRTLINE - COBOL program execution output (if correction is successful)
2211
2211
2212
2212

2213
2213
2214
-
*Figure 12. RUN:PRTLINE(103) for JCL(CBL0033J)*
2214
+
*Figure 12. RUN:PRTLINE(103) for JCL(CBL0003J)*
2215
2215
2216
2216
**Lab hints**
2217
2217
2218
2218
13. The error is located on line 11, adjust 'ACCTREX' accordingly.
2219
2219
2220
2220

2221
2221
2222
-
*Figure 13. Error in id.JCL(CBL0033J).jcl*
2222
+
*Figure 13. Error in id.JCL(CBL0003J).jcl*
2223
2223
2224
2224
\newpage
2225
2225
@@ -2638,13 +2638,13 @@ In this case, the Boolean condition is evaluated before the loop is executed. H
2638
2638
2639
2639
2640
2640
```
2641
-
PERFORM UNTIL COUNTER = 10 WITH TEST AFTER
2641
+
PERFORM WITH TEST AFTER UNTIL COUNTER = 10
2642
2642
ADD 1 TO COUNTER GIVING COUNTER
2643
2643
MOVE COUNTER TO MSG-TO-WRITE
2644
2644
WRITE PRINT-REC
2645
2645
END-PERFORM.
2646
2646
```
2647
-
*Example 15. PERFORM UNTIL WITH TEST AFTER*
2647
+
*Example 15. PERFORM WITH TEST AFTER UNTIL*
2648
2648
2649
2649
This would be similar to a "do while" loop in Java:
2650
2650
@@ -2755,13 +2755,13 @@ In summary, this chapter should provide the necessary foundation to understand s
2755
2755
2756
2756
## Lab
2757
2757
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.
2759
2759
2760
2760
#### Using VSCode and Zowe Explorer
2761
2761
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.
2763
2763
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?
2765
2765
2766
2766
a. Observe the new COUNTER line within the WORKING-STORAGE > DATA DIVISION.
2767
2767
@@ -2771,11 +2771,11 @@ This lab utilizes COBOL program CBL0003, located within your id.CBL data set, as
2771
2771
2772
2772
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.
2773
2773
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
2776
2776
together.
2777
2777
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.
2779
2779
2780
2780
5. View output of target program HELLO using the JOBS section and open RUN:SYSOUT.
2781
2781
@@ -3271,7 +3271,7 @@ The sign condition determines whether the algebraic value of a numeric operand i
3271
3271
3272
3272
**Note** : To read more information about these conditions please visit the link:
3273
3273
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)
3275
3275
3276
3276
3277
3277
## Lab
@@ -3454,7 +3454,7 @@ COMPUTE | Restriction does not apply
3454
3454
3455
3455
*Table 2. How the composite of operands is determined*
3456
3456
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).
0 commit comments