Chapter Contents |
Previous |
Next |
SAS Companion for the OS/390 Environment |
Accessing IMS-DL/I and CA-IDMS Databases |
Note: The DATA step interface for
IMS-DL/I is a "read/write" interface. The DATA step interface
for CA-IDMS is "read" only.
Accessing ISAM Files |
data newdata; infile isamfile isam; input; /* SAS statements */ run;
Accessing VSAM Data Sets |
Use the VSAM option to indicate that a fileref points to a VSAM external file.
filename in1 'prod.payroll'; data mydata; infile in1 vsam; input ...; /* SAS statements */ run;
Note: A VSAM file can be read sequentially
without your having to specify the VSAM option.
filename out 'myid.newdata' disp=old; data current; file out vsam; put ...; /* SAS statements */ run;
filename mydata 'myid.newdata' disp=old; data newdata; file mydata vsam; infile mydata vsam; /* SAS statements */ run;
Many VSAM-specific options are available with the INFILE and FILE statements. See VSAM Options for the FILE and INFILE Statements under OS/390 for details. For complete information about accessing VSAM data sets, see the SAS Guide to VSAM Processing.
Accessing the Volume Table of Contents (VTOC) |
To access a disk's Volume Table of Contents (VTOC), specify the VTOC option in an INFILE statement. See VTOC Options for the INFILE Statement under OS/390 for more information.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.