Skip to content

Commit 44c0fad

Browse files
committed
SQL Capability within Enterprise COBOL
Signed-off-by: MikeBauerCA <[email protected]>
1 parent 4f81092 commit 44c0fad

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

COBOL Programming Course #2 - Advanced Topics/COBOL Programming Course #2 - Advanced Topics.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,37 @@ Observe ":CUSTOMER-RECORD" in the EXEC SQL FETCH statement. A colon (:) precede
129129
*Example 3. COBOL Data Item for storing variables where Db2 is the data source*
130130

131131
## SQL Capability within Enterprise COBOL
132+
Learning SQL is a separate technical skill. The objective of this brief chapter is familiarization with Enterprise COBOL use of SQL API. A COBOL program is capable of any SQL communication with Db2 for z/OS assuming necessary authority is granted. SQL has four catagories as outlined in Example 4. Learning SQL is necessary for a COBOL programmer to become proficient with using the Db2 API for a variety of possible applications where COBOL provides the what, how, and when logic of executing specific SQL.
133+
134+
```
135+
DDL - Data Definition Language
136+
CREATE
137+
ALTER
138+
DROP
139+
140+
DML - Data Manipulation Language
141+
SELECT
142+
INSERT
143+
UPDATE
144+
DELETE
145+
146+
DCL - Data Control Langauge
147+
GRANT
148+
REVOKE
149+
150+
TCL - Transaction Control Language
151+
COMMIT
152+
ROLLBACK
153+
```
154+
*Example 4. SQL Categories*
132155

133156
### Enterprise COBOL Application Programming and SQL Guide
157+
Db2 for z/OS V12 is the most current release of Db2 at the moment. The Db2 V12 for z/OS Application Programming and SQL Guide is available using internet search SC27-8845, the Db2 for z/OS professional manual number. Db2 V12 for z/OS SQL Reference is also necessary to advance programming API capability (SC27-8859).
134158

135159
### Db2 Data Base Administration (DBA) vs Application Programming
160+
In large enterprise, the roles and responsibilities are divided for a number of reasons. The responsibility of the DBA would include the DDL and DCL outlined in Example 4. The DBA is responsibile for managing the entire relational data base environment to insure availability, security, performance, etc. The system programmers and DBAs frequently setup the application development procedures for COBOL programmer development, testing, and maintenance of the COBOL business applications. A COBOL application programmer is typically provided documented procedures to follow to apply their COBOL programming and SQL API expertise.
161+
162+
Enterprise COBOL is a learning journey. Each Enterprise COBOL API is a separate learning journey. As is the case with most professional endeavors, learning, repetition, and applying what is learned is re-iterative process leading to advanced skill levels.
136163

137164
## Lab
138165

0 commit comments

Comments
 (0)