I am importing a table from an Access database into SAS where the sequence column became corrupted. I need to create a new sequence column in SAS. I don’t want to re-create the sequence number in Access, as the source tables are replenished on a regular schedule. Is there something like an autonumber column that one can add to SAS?
Share
When you read in a data set in SAS,
_n_refers to the observation number. This should work for you: