Contents
About
What's New in the SAS 9.2 VSAM Processing for z/OS
SAS 9.2 VSAM Processing: Overview and Techniques
The Virtual Storage Access Method (VSAM)
What is Virtual Storage Access Method (VSAM)?
VSAM Data Access Types
SAS Options and Variables for VSAM Processing
Introduction to SAS Options and Variables for VSAM Processing
Using SAS System Options
Using SAS Automatic Variables
Standard SAS INFILE Options
Special SAS Options for VSAM
Using the Special SAS Options
VSAM Option for the FILENAME Statement
Accessing VSAM Data Sets
Accessing VSAM Data Sets
Reading a VSAM File
Writing to an Empty VSAM File
Updating a VSAM Data Set
Using Record-Level Sharing with VSAM
Extended-Format VSAM Data Sets
VSAM Options for the FILE and INFILE Statements
Processing VSAM Data Sets in SAS Programs
Determining the Type of an Existing Data Set
Referring to VSAM Data Sets
Operations on VSAM Data Sets in SAS Programs
Reading Records from a VSAM Data Set
Adding Records to a VSAM Data Set
Updating Records in VSAM Data Sets
Erasing Records from a VSAM Data Set
Combined Operations
Examples of Using VSAM Data in SAS Programs
Defining and Loading a VSAM Data Set
Defining a VSAM Data Set
Loading Records into a VSAM Data Set
Processing an ESDS in a SAS Job
Introduction to ESDS
Special SAS Options Used with an ESDS
Reading Records from an ESDS
Adding Records to an ESDS
Updating Records in an ESDS
Combined Operations on an ESDS
Adding Records after Reading
Processing a KSDS in a SAS Job
Introduction to KSDS
Special SAS Options Used with a KSDS
Reading Records from a KSDS
Adding Records to a KSDS
Updating Records in a KSDS
Erasing Records from a KSDS
Combined Operations on a KSDS
Processing an RRDS in a SAS Job
Introduction to Processing an RRDS
Special SAS Options Used with an RRDS
Reading Records from an RRDS
Adding Records to an RRDS
Updating Records in an RRDS
Erasing Records from an RRDS
Combined Operations on an RRDS
Using Alternate Indexes for VSAM Data Sets
Introduction to Using Alternate Indexes
Creating an Alternate Index for an ESDS
Creating an Alternate Index for an Existing KSDS
Calculating Record Size
Error-Handling Techniques and Error Messages
What are Physical and Logical Errors?
Physical Errors
Logical Errors
Error-Handling Techniques
Some Common Causes of Logical Errors
COBOL Status Key Values and VSAM Feedback Codes
Appendices
System Options Dictionary
VSAMLOAD System Option
VSAMREAD System Option
VSAMRLS System Option
VSAMUPDATE System Option
Sample STUDENT Data Set
Sample STUDENT Data Set
IBM Documentation
IBM Documentation
Recommended Reading
Glossary
Product
Release
Base SAS
9.2
Type
Usage and Reference
Copyright Date
February 2009
Last Updated
26Feb2009