Skip to content

Commit 030a868

Browse files
authored
Merge branch 'master' into prepare-for-publishing
2 parents 439100c + 90dcc02 commit 030a868

File tree

2 files changed

+58
-31
lines changed
  • COBOL Programming Course #1 - Getting Started/Labs
  • COBOL Programming Course #2 - Advanced Topics/Labs

2 files changed

+58
-31
lines changed
Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
1-
COBOL labs
2-
4 folders
1+
# COBOL Programming Course #1 - Getting Started - Lab Setup
32

4-
1. **cbl** – COBOL source code
5-
2. **jcl** – JCL to compile, link, and execute COBOL source code
6-
3. **jclproc** – JCL PROCEDUREs used for labs in JCL folder
7-
4. **data** – COBOL program input records
3+
The labs for this course are set up on z/OS 2.4 with Enterprise COBOL v6.3. Modification may be necessary if your installation uses a different version.
84

9-
Note:
10-
**cbl** folder
11-
- copy cobol source members into student id.CBL partitioned data set name
5+
Please note that the following instruction is provided as-is. Neither this project nor the Open Mainframe Project will be held responsible or liable for any loss, costs, liabilities, or damages resulting from your direct or indirect use of this Lab Setup.
126

13-
**jcl** folder
14-
- copy jcl members into student id.JCL partitioned data set name
15-
- jcl members reference student id.CBL and student id.LOAD partitioned data set names
7+
## Contents
168

17-
**jclproc** folder
18-
- members need to be copied into z/OS JES procedure library
9+
There are 4 folders within this directory:
10+
- **cbl**, containing the actual COBOL source code
11+
- **jcl**, containing the JCL used to compile, link, and execute COBOL source code
12+
- **jclproc**, containing the supplied cataloged procedure used in the JCL
13+
- **data**, containing the data used as input for the COBOL program
1914

20-
**data** folder
21-
- member **data** must be transferred binary to z/OS because the data contains EBCDIC and Packed Decimal
22-
- member **xdata** is a viewable ASCII data but the packed decimal fields were translated to ASCII and are unreadable
15+
There are 2 kinds of data provided inside the **data** folder:
16+
- **data** is a binary file that is still encoded in EBCDIC with packed decimal
17+
- **xdata** is a viewable ASCII file, however, the packed decimal fields are unreadable
2318

19+
There are 3 supplied cataloged procedures inside the **jclproc** folder:
20+
- **IGYWC** for COBOL code compilation
21+
- **IGYWCL** for COBOL code compilation and link-edit
22+
- **IGYWCLG** for COBOL code compilation, link-edit, and execution
23+
24+
## Setup
25+
26+
For the following instructions, `&SYSUID.` refers to the course taker's ID.
27+
28+
To set up your environment for the Course,
29+
- You will need to copy the members from **cbl** to your own PDS. The Course Document and JCL assume that the PDS is `&SYSUID..CBL`.
30+
- You will need to copy the members from **jcl** to your own PDS. The Course Document assumes that the PDS is `&SYSUID..JCL`.
31+
- You will need to transfer the binary **data** from the data folder to your own sequential data set. The Course Document and JCL assume that the PDS is `&SYSUID..DATA`.
32+
- You will need to make sure that the procedures IGYWC, IGYWCL, and IGYWCLG are available in your procedure library.
33+
34+
Note that the JCL references the following data sets,
35+
- `&SYSUID..CBL` where the COBOL source codes are stored
36+
- `&SYSUID..LOAD` where the COBOL load modules are stored
37+
- `&SYSUID..DATA` where the input data are stored
Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1-
COBOL labs
2-
4 folders
1+
# COBOL Programming Course #2 - Advanced Topics - Lab Setup
32

4-
1. **cbl** – COBOL source code
5-
2. **jcl** – JCL to compile, link, and execute COBOL source code
6-
3. **jclproc** – JCL PROCEDUREs used for labs in JCL folder
3+
The labs for this course are set up on z/OS 2.4 with Enterprise COBOL v6.3 and Db2 for z/OS 12. Modification may be necessary if your installation uses a different version.
74

8-
Note:
9-
**cbl** folder
10-
- copy cobol source members into student id.CBL partitioned data set name
5+
Please note that the following instruction is provided as-is. Neither this project nor the Open Mainframe Project will be held responsible or liable for any loss, costs, liabilities, or damages resulting from your direct or indirect use of this Lab Setup.
116

12-
**jcl** folder
13-
- copy jcl members into student id.JCL partitioned data set name
14-
- jcl members reference student id.CBL and student id.LOAD partitioned data set names
15-
- jcl setup for DB2 assume Course 1 data are available
7+
## Contents
168

17-
**jclproc** folder
18-
- members need to be copied into z/OS JES procedure library
9+
There are 3 folders within this directory:
10+
- **cbl**, containing the actual COBOL source code
11+
- **jcl**, containing the JCL used to compile, link, and execute COBOL source code
12+
- **jclproc**, containing the supplied cataloged procedure used in the JCL
1913

14+
There are 3 supplied cataloged procedures inside the **jclproc** folder:
15+
- **DB2CBL** for COBOL code compilation, link-edit, and Db2 binding
16+
- **DB2JCL** for the execution of SQL statements via JCL
17+
- **DSNUPROC** for invoking Db2 online utility
2018

19+
## Setup
20+
21+
For the following instructions, `&SYSUID.` refers to the course taker's ID.
22+
23+
To set up your own environment for the Course,
24+
- You will need to make sure that the Lab Setup for Course 1 has been followed.
25+
- You will need to copy the members from **cbl** to your own PDS. The Course Document and JCL assume that the PDS is `&SYSUID..CBL`.
26+
- You will need to copy the members from **jcl** to your own PDS. The Course Document assumes that the PDS is `&SYSUID..JCL`.
27+
- You will need to make sure that the procedures DB2CBL, DB2JCL, and DSNUPROC are available in your procedure library.
28+
29+
Note that the JCL references the following data sets,
30+
- `&SYSUID..CBL` where the COBOL source codes are stored
31+
- `&SYSUID..LOAD` where the COBOL load modules are stored
32+
- `&SYSUID..DATA` where the input data are stored
33+
- `&SYSUID..DBRMLIB` where the Db2 database request module output is stored, generated when the course taker submitted either the DB2SETUP or DBRMLIB JCL

0 commit comments

Comments
 (0)