SAS 9.2 VSAM Processing for zOS
Original Publication Date: 2009-Dec-31
Included in the Prior Art Database: 2015-Sep-16
SAS Institute Inc.
Page 01 of 136
VSAM Processing for z/OS
Page 02 of 136
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. SAS ® 9.2 VSAM Processing for z/OS. Cary, NC: SAS Institute Inc.
SAS® 9.2 VSAM Processing for z/OS
Copyright © 2009, SAS Institute Inc., Cary, NC, USA
All rights reserved. Produced in the United States of America.
For a hard-copy book: 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.
For a Web download or e-book: Your use of this publication shall be governed by the terms established by the vendor at the time you acquire this publication.
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 electronic book, February 2009
1st printing, March 2009
SAS® Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit the SAS Publishing Web site at support.sas.com/publishing or call 1-800-727-3228.
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 136
P A R T 1 SAS 9.2 VSAM Processing: Overview and Techniques 1
4 The Virtual Storage Access Method (VSAM) 3
What is Virtual Storage Access Method (VSAM)? 3
VSAM Data Access Types 9
4 SAS Options and Variables for VSAM Processing 13
Introduction to SAS Options and Variables for VSAM Processing 13 Using SAS System Options 13
Using SAS Automatic Variables 14
Standard SAS INFILE Options 14
Special SAS Options for VSAM 16
Using the Special SAS Options 20
VSAM Option for the FILENAME Statement 22
4 Accessing VSAM Data Sets 23
Accessing VSAM Data Sets 24
Reading a VSAM File 24
Writing to an Empty VSAM File 24
Updating a VSAM Data Set 24
Using Record-Level Sharing with VSAM 25 Extended-Format VSAM Data Sets 25
VSAM Options for the FILE and INFILE Statements 25
4 Processing VSAM Data Sets in SAS Programs 29
Determining the Type of an Existing Data Set 30
Referring to VSAM Data S...