This course introduces the additional considerations when coding COBOL application programs to access and maintain VSAM files. Using a combination of classroom tuition and extensive hands-on exercises, attendees will learn to code application programs that are able to read and write to VSAM KSDS, ESDS and RRDS data sets. Sequential, random and dynamic access will all be demonstrated, as will the use of alternate indexes where applicable.<br><br>This course is available 'on demand' (minimum 2 students) for public presentations and for one-company, on-site presentations.
VSAM Programming with COBOL
An understanding of COBOL programming in a mainframe environment is assumed. A basic understanding of VSAM files would be advantageous.
- describe the differences in accessing VSAM KSDS, ESDS and RRDS data sets
- code application programs to read from and write to VSAM data sets using the READ, WRITE, DELETE, REWRITE and START commands
- understand and use VSAM status codes and return codes
- understand the use of alternate indexes when accessing VSAM data sets.
Using VSAM Files
VSAM basics; VSAM KSDS, ESDS and RRDS data sets; using Access Method Services (AMS) to define, delete, load and print VSAM files.Reading VSAM Data in a COBOL Program
Identifying the file as VSAM; OPEN and CLOSE of VSAM data sets; file status and retrn codes; reading VSAM data sequentially, randomly and dynamically.Modifying VSAM Data in a COBOL Program
WRITE using sequential access; WRITE using index access; the DELETE statement; the REWRITE statement; handling invalid keys.Using Alternate Indexes
Alternate indexes and paths; defining alternate indexes and paths; identifying the alternate index in COBOL; processing VSAM data using the alternate index.Hands-on Exercises
Extensive hands-on exercises throughout the course reinforce the material covered.
Face-to-face learning in the comfort of our quality nationwide centres, with free refreshments and Wi-Fi.
Find dates and prices
Online booking is currently not available for this course, to find out more please call us on 0345 074 7998 or email us at firstname.lastname@example.org to discuss how we can help.
Fully accredited to ensure we provide the highest possible standards in learning