Quiz: Development Environment Setup
Multiple Choice
1. What does TSO stand for in the z/OS environment?
a) Terminal System Operations b) Time Sharing Option c) Technical Service Overlay d) Transaction System Output
2. Which JCL statement type defines a dataset (file) for a job step?
a) JOB b) EXEC c) DD d) DSN
3. In the JCL parameter DISP=SHR, what does SHR mean?
a) The dataset is shared across multiple systems b) The dataset can be read by multiple jobs simultaneously c) The dataset is a shared library d) The dataset should be shortened after use
4. What GnuCOBOL flag produces a standalone executable?
a) -c
b) -m
c) -x
d) -e
5. The ABEND code S0C7 typically indicates:
a) Division by zero b) Module not found c) Data exception (non-numeric data in numeric field) d) Protection exception (invalid memory access)
6. On z/OS, COBOL source code is typically stored in what type of dataset?
a) Sequential (PS) b) Partitioned Data Set (PDS) c) VSAM KSDS d) Generation Data Group (GDG)
7. What is the role of JES2 in the z/OS environment?
a) It compiles COBOL programs b) It manages batch job submission, scheduling, and output c) It provides the terminal interface d) It handles database queries
8. In the DD-to-SELECT connection, the COBOL ASSIGN TO clause specifies:
a) The physical dataset name b) The logical file name that maps to a JCL DD statement c) The record length of the file d) The compiler to use
9. Which development environment provides access to real z/OS hardware for free?
a) GnuCOBOL b) Hercules/TK5 c) IBM Z Xplore d) VS Code with COBOL extension
10. What does the JCL parameter COND=(8,LT,STEP1) mean?
a) Execute this step if STEP1 return code was less than 8 b) Skip this step if STEP1 return code was less than 8 c) Wait 8 seconds before running this step d) Run this step only 8 times
Short Answer
11. What are the three JCL statement types, and what does each do?
12. Explain the difference between Area A (columns 8–11) and Area B (columns 12–72) in COBOL source format. Which types of code elements must begin in each area?
13. Name two advantages and two limitations of using GnuCOBOL for this textbook.
14. What is ISPF, and why is it described as "initially bewildering" but "highly efficient"?
15. Explain why understanding JCL is important even for developers who use GnuCOBOL exclusively.
Answer Key
- b) Time Sharing Option
- c) DD
- b) The dataset can be read by multiple jobs simultaneously
- c)
-x - c) Data exception (non-numeric data in numeric field)
- b) Partitioned Data Set (PDS)
- b) It manages batch job submission, scheduling, and output
- b) The logical file name that maps to a JCL DD statement
- c) IBM Z Xplore
- b) Skip this step if STEP1 return code was less than 8
- JOB identifies the job and sets job-level parameters (name, class, notification). EXEC specifies a program or procedure to execute within a job step. DD (Data Definition) defines a dataset and its attributes for use by a program in a step.
- Area A (columns 8–11) is where division headers, section headers, paragraph names, FD entries, and 01-level data items must begin. Area B (columns 12–72) is where COBOL statements, PROCEDURE DIVISION logic, and subordinate data items (02–49 level) are coded. This convention enforces visual structure.
- Advantages: (1) Free and easy to install on any OS; (2) Fast compilation for rapid edit-compile-test cycles. Limitations: (1) Does not support z/OS-specific features like CICS or DB2; (2) Uses ASCII instead of EBCDIC, so some mainframe-specific behaviors differ.
- ISPF is the Interactive System Productivity Facility, a panel-driven text interface for z/OS. It is initially bewildering because it uses hierarchical menus, lacks a mouse, and has its own navigation conventions. It is highly efficient because experienced users can navigate entirely by keyboard, perform complex operations through short commands, and access all z/OS resources from a single interface.
- JCL is essential knowledge because: (1) it is how all COBOL programs are executed in production mainframe environments; (2) it appears in job interviews and certifications; (3) its concepts (compile-link-go, file assignment, conditional execution) are universal to mainframe COBOL regardless of the editor used.