Browse Prior Art Database

SAS Guide to VSAM Processing V8

IP.com Disclosure Number: IPCOM000243142D
Original Publication Date: 2000-Dec-31
Included in the Prior Art Database: 2015-Sep-17
Document File: 126 page(s) / 1M

Publishing Venue

SAS Institute Inc.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 3% of the total text.

Page 01 of 126

SAS® Guide to VSAM Processing

Version 8



Page 02 of 126

The correct bibliographic citation for this manual is as follows: SAS Institute Inc., SAS ® Guide to VSAM Processing, Version 8, Cary, NC: SAS Institute Inc., 2000.

SAS Guide to VSAM Processing, Version 8

Copyright © 2000 by SAS Institute Inc., Cary, NC, USA.

ISBN 1-58025-703-8
All rights reserved. Produced in the United States of America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc.

U.S. Government Restricted Rights Notice. Use, duplication, or disclosure of this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in FAR 52.227-19 Commercial Computer Software-Restricted Rights (June 1987).

SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513.
1st printing, June 2000
SAS® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.

IBM® and all other International Business Machines Corporation product or service names are registered trademarks or trademarks of International Business Machines Corporation in the USA and other countries.

Other brand and product names are registered trademarks or trademarks of their respective companies.


Page 03 of 126


4 The Virtual Storage Access Method (VSAM) 3

Introduction 3


What is VSAM? 4
VSAM Data Access Types 11

Chapter 2

      4 SAS Options and Variables for VSAM Processing 15 Introduction 15
SAS System Options 15
SAS Automatic Variables 16
Standard SAS INFILE Options 16
Special SAS Options for VSAM 19
VSAM Option for the FILENAME Statement 24

Chapter 3

      4 Processing VSAM Data Sets in SAS Programs 25 Introduction 25
Determining the Type of an Existing Data Set 26
Referring to VSAM Data Sets 26
Operations on VSAM Data Sets in SAS Programs 26 Examples of Using VSAM Data in SAS Programs 32

Chapter 4

      4 Defining and Loading the Sample VSAM Data Sets 41 Introduction 41
Defining a VSAM Data Set under CMS 41
Defining a VSAM Data Set under OS/390 43
Loading Records into a VSAM Data Set 45

Chapter 5

4 Processing an ESDS in a SAS Job 47

Introduction 47
Special SAS Options Used with an ESDS 48 Reading Records from an ESDS 48
Adding Records to an ESDS 51
Updating Records in an ESDS 52
Combined Operations on an ESDS 53

Chapter 6

4 Processing a KSDS in a SAS Job 55

Introduction 55
Special SAS Options Used with a KSDS 56 Reading Records from a KSDS 57
Adding Records to a KSDS 64

Contents

P A R T 1 SAS Guide to VSAM Processing: Overview and Techniques 1
Chapter 1

Changes and Enhancements v


Page 04 of 126

Updating Records in a KSDS 65

Erasing Records from a KSDS 66 Combined Operations on a KSDS 67

Chapter 7

4 Processing an RRDS in a SAS Job 73

Introduction 73
Specia...