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
In this lab exercise you will connect to an IBM Z system, view a simple COBOL hello world program in VSCode, submit JCL to compile the COBOL program, and view the output. Refer to "Installation of VSCode and extensions" to configure VSCode with the Zowe Explorer and Z Open Editor extensions if you have not already done so.
1010
1010
@@ -1240,7 +1240,7 @@ Following this chapter is a lab available to compile and execute the COBOL sourc
1240
1240
1241
1241
-**MOVE and COMPUTE**
1242
1242
1243
-
-**Lab 2**
1243
+
-**Lab**
1244
1244
1245
1245
## Variables / Data-items
1246
1246
@@ -1366,7 +1366,7 @@ MOVE and COMPUTE reserved word statements alter the value of variable names. Ea
1366
1366
1367
1367
*Figure 2. MOVE and COMPUTE example*
1368
1368
1369
-
## Lab 2
1369
+
## Lab
1370
1370
1371
1371
**Note** : It may take a few seconds to load in all segments of this lab. If files are not loading, hit the refresh button on the list that appears when hovering over the section bar.
1372
1372
@@ -1456,7 +1456,7 @@ An experienced COBOL programmer can answer the question, "How does an Enterprise
1456
1456
1457
1457
-**Iterative processing of READ-NEXT-RECORD paragraph**
1458
1458
1459
-
-**Lab 3**
1459
+
-**Lab**
1460
1460
1461
1461
1462
1462
## COBOL code used for sequential file handling
@@ -1625,7 +1625,7 @@ Again, the READ-RECORD paragraph executes the COBOL READ statement, resulting in
1625
1625
*Figure 7. Iterative processing*
1626
1626
1627
1627
1628
-
## Lab 3
1628
+
## Lab
1629
1629
1630
1630
The lab associated with this chapter demonstrates the ‘end-of-file’ COBOL coding technique for reading all data records from a sequential file. If a step has an asterisk (\*) next to it, it will have a hint associated at the end of the lab content.
1631
1631
@@ -2293,7 +2293,7 @@ A capability of COBOL data output formatting that is worth noting but not covere
2293
2293
2294
2294
-**PRINT-REC FROM sentences**
2295
2295
2296
-
-**Lab 4**
2296
+
-**Lab**
2297
2297
2298
2298
## Review of COBOL write output process
2299
2299
@@ -2394,7 +2394,7 @@ The COBOL MOVE sentence, on line 1, in the WRITE-HEADERS paragraph is collecting
2394
2394
2395
2395
PRINT-REC is opened for output resulting in PRINT-REC FROM following through with a write PRINT-REC FROM a different header or defined data name layout. The sentences on lines 5 and 6 write the PRINT-REC FROM defined header data names, HEADER-1 and HEADER-2, from Figure 3. The PRINT-REC file descriptor data names in Figure 2. are effectively replaced with the content of the header data names in Figure 3. written to output. The sentences on lines 7 and 8 result in a blank line written between headers. The sentences on lines 9 and 10 write the PRINT-REC FROM defined HEADER-3 and HEADER-4 data names from Figure 3. The PRINT-REC file descriptor data names in Figure 2. are effectively replaced with the content of the header data names in Figure 3.
2396
2396
2397
-
## Lab 4
2397
+
## Lab
2398
2398
2399
2399
This lab utilizes two COBOL programs, CBL0004 and CBL0005, located within your id.CBL data set, as well as two JCL jobs, CBL0004J and CBL0005J, located within your id.JCL data set. The JCL jobs are used to compile and execute the COBOL programs, as discussed in previous chapters.
2400
2400
#### Using VSCode and Zowe Explorer
@@ -2474,7 +2474,7 @@ This chapter dives into how programs make decisions based upon the programmer wr
2474
2474
2475
2475
-**Sign conditions**
2476
2476
2477
-
-**Lab 5**
2477
+
-**Lab**
2478
2478
2479
2479
2480
2480
## Boolean logic, operators, operands, and identifiers
@@ -2761,7 +2761,7 @@ The sign condition determines whether the algebraic value of a numeric operand i
2761
2761
[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)
2762
2762
2763
2763
2764
-
## Lab 5
2764
+
## Lab
2765
2765
2766
2766
This lab requires two COBOL programs, CBL0006 and CBL0007 and two respective JCL Jobs, CBL0006J and CBL0007J, to compile and execute the COBOL programs. All of which are provided to you in your VSCode - Zowe Explorer.
2767
2767
#### Using VSCode and Zowe Explorer:
@@ -2832,7 +2832,7 @@ This chapter aims to introduce the concept of implementing arithmetic expression
2832
2832
2833
2833
-**Examples of COBOL arithmetic statements**
2834
2834
2835
-
-**Lab 6**
2835
+
-**Lab**
2836
2836
2837
2837
2838
2838
## What is an arithmetic expression?
@@ -2987,7 +2987,7 @@ The WRITE-TLIMIT-TBALANCE paragraph shown in Figure 5. is positioned within the
2987
2987
2988
2988
<aname="_Ref36026709"></a>
2989
2989
2990
-
## Lab 6
2990
+
## Lab
2991
2991
2992
2992
This lab requires two COBOL programs, CBL0008 and CBL0009 and two respective JCL Jobs, CBL0008J and CBL0009J, to compile and execute the COBOL programs. All of which are provided to you in your VSCode - Zowe Explorer.
2993
2993
#### Using VSCode and Zowe Explorer
@@ -3056,7 +3056,7 @@ A COBOL programmer must be aware that the computer stored internal data represen
3056
3056
3057
3057
-**COBOL DISPLAY vs COMPUTATIONAL**
3058
3058
3059
-
-**Lab 7**
3059
+
-**Lab**
3060
3060
3061
3061
3062
3062
## Data representation
@@ -3119,9 +3119,9 @@ COBOL can encode and process text data in EBCDIC or ASCII. This means a COBOL p
3119
3119
Enterprise COBOL for z/OS by default utilizes EBCDIC encoding. However, it is possible to read and write ASCII in z/OS. The EBCDIC format representation of numbers and alphabetic characters is in a DISPLAY format. Packed decimal and zoned decimal are NOT in a DISPLAY format. COBOL can describe packed decimal and zoned decimal fields using COMPUTATIONAL, COMP-1, COMP-2, COMP-3, COMP-4, and COMP-5 reserved words.
3120
3120
3121
3121
3122
-
## Lab 7
3122
+
## Lab
3123
3123
3124
-
Many of the previous COBOL lab programs you have worked with thus far are reading records containing two packed decimal fields, the client account limit and the client account balance. In lab 6, the total of all client account limits and balances used a COMPUTE statement, where the COMP-3 fields contained the packed decimal internal data.
3124
+
Many of the previous COBOL lab programs you have worked with thus far are reading records containing two packed decimal fields, the client account limit and the client account balance. In the Arithmetic expressions lab, the total of all client account limits and balances used a COMPUTE statement, where the COMP-3 fields contained the packed decimal internal data.
3125
3125
3126
3126
What happens when an internal packed decimal field is not described using COMP-3? Without using COMP-3 to describe the field, the COBOL program treats the data as DISPLAY data (EBCDIC format). This lab demonstrates what happens during program execution without using COMP-3.
3127
3127
@@ -3186,7 +3186,7 @@ Previous COBOL industry specifications included intrinsic functions, which remai
3186
3186
3187
3187
-**Use of intrinsic functions with reference modifiers**
3188
3188
3189
-
-**Lab 8**
3189
+
-**Lab**
3190
3190
3191
3191
3192
3192
## What is an intrinsic function?
@@ -3355,7 +3355,7 @@ LNAME(4:2)
3355
3355
Reference modification, LNAME(1:1), would return only the first character of data item LNAME, while reference modification, LNAME(4:2), would return the fourth and fifth characters of LNAME as the result of starting in the fourth character position with a length of two. If LNAME of value SMITH was the data item being referenced in the intrinsic function, the first reference would output, S. Considering those same specs, the second reference would output, TH.
3356
3356
3357
3357
3358
-
## Lab 8
3358
+
## Lab
3359
3359
3360
3360
This lab contains data that includes a last name, where last name is all upper-case. It demonstrates the use of intrinsic functions together with reference modification to lower-case the last name characters, except the first character of the last name.
3361
3361
@@ -3368,11 +3368,11 @@ This lab requires two COBOL programs, CBL0011 and CBL0012 and two respective JCL
3368
3368
3369
3369
2. Observe the report output, last name, with first character upper-case and the remaining characters lower-case.
3370
3370
3371
-
Figure 1. , below, illustrates the difference in output from lab 6 compared to this lab. Notice that in the previous lab, the last names were listed in all capitalized characters, whereas, as previously stated, this lab output has only the first character of the last name capitalized.
3371
+
Figure 1. , below, illustrates the difference in output from the Data types lab compared to this lab. Notice that in the previous lab, the last names were listed in all capitalized characters, whereas, as previously stated, this lab output has only the first character of the last name capitalized.
0 commit comments