Previous Page | Next Page

Processing an ESDS in a SAS Job

Combined Operations on an ESDS

You might want to perform more than one operation on an ESDS in one DATA step. (For example, perhaps you want to read some records, update other records, and add new records in one DATA step.) Regardless of the number of different operations, you need to specify only one pair of INFILE and FILE statements for the entire DATA step. Specify the VSAM option in both the INFILE and the FILE statements. Specify all other options that you might need to process the ESDS in its INFILE statement.

In a DATA step that combines operations, SAS determines whether you want to add new records or update existing ESDS records based on whether an INPUT statement is associated with the INFILE statement.

Previous Page | Next Page | Top of Page