Previous Page | Next Page

Accessing VSAM Data Sets

Reading a VSAM File

To read a VSAM file with an INPUT statement, specify the VSAM option in an INFILE statement:

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.   [cautionend]

Previous Page | Next Page | Top of Page