![]() |
VSAM COBOL Programming
Duration: 2 days |
Participants: Application developers. |
Objectives:
Upon successful completion of this course you will be able to:
- Write COBOL programs that access and update KSDS, ESDS, and RRDS VSAM files using sequential, dynamic, and random access techniques. |
Overview: Participants learn to access and update VSAM files from batch COBOL programs. Processing includes reading, updating, and where permitted, deleting records from KSDS, ESDS, and RRDS VSAM files. |
Prerequisites: Ability to code basic JCL, use the edit and submit features of TSO/ISPF and code basic IDCAMS control statements to create and manage VSAM files. |
Format: Instructor-led and extensive hands-on computer workshops. |
Related Courses:
After completing this course, consider attending:
- VSAM / IDCAMS Utility - VSAM KSDS Performance and Tuning - VSAM CICS COBOL Programming - File-AID for VSAM |
Topic Outline:
- COBOL View of VSAM Contrast KSDS, ESDS, and RRDS Usage in COBOL Programs - COBOL SELECT Clause in ENVIRONMENT DIVISION ASSIGN TO ORGANIZATION ACCESS MODE RECORD KEY ALTERNATE RECORD KEY FILE STATUS Other clauses - FD and 01s for VSAM Files - JCL for VSAM Files DDNAMES >- File-Status Checking Typical Codes to Check - Procedure Division Verbs for VSAM Open Statement Read Statement Start Current Record Pointer READ NEXT Write Rewrite Delete Close Checking VSAM File Status Codes - SEQUENTIAL vs RANDOM vs DYNAMIC Processing - Flow of Logic Programming Differences between KSDS, ESDS, and RRDS - AIX Processing - Additional Processing Update ESDS Records Update KSDS Records Update RRDS Records VSAM Examples KSDS Create/Load Example ESDS Create/Load Example ESDS Read Example ESDS Update Example ESDS Append Example |
|