Used after a CREATE, MODIFY, REMOVE, REPAIR, and REPORT statement to specify the tables to process a statement action. Also, you can specify the current passwords or encryption key value of the data sets in the TABLES statement, if different from the metadata-bound library passwords or recorded encryption key.
Default: | When no TABLES statement is specified, the TABLES _ALL_ statement is the default behavior. |
Requirement: | The TABLES statement must be preceded by a CREATE, MODIFY, REMOVE, REPAIR, REPORT, or another TABLES statement. |
Tip: | Each password and encryption key option must be coded on a separate line to ensure that they are properly blotted in the log. |
Example: | Using the TABLES Statement |
name of one or more SAS data sets
specifies password options to apply to all data sets.
limits the action of the previous CREATE, MODIFY, or REPAIR statements to the library level and does not apply the action to any table.
is required if any options are included, such as passwords or MEMTYPE=. Here is an example:
tables table-name / pw=password;
specifies the encryption type.
specifies the SAS Proprietary algorithm.
specifies no encryption.
specifies Advanced Encryption Standard (AES) encryption and is required if changing and encrypting with a new key value and TABLESONLY=YES in the action statement.
See | Encrypted Data Set Considerations |
specifies a key value for AES encryption.
Requirement | ENCRYPTKEY= data set option is required if the data file has AES encryption and the key is not recorded for the library. |
Tip | The ENCRYPTKEY= value is a passphrase that can be up to 64 characters long from which the actual AES encryption key is later derived, but it is referred to as the encryption key in most SAS documentation. |
See | Encrypted Data Set Considerations |
ENCRYPTKEY= Data Set Option in SAS Data Set Options: Reference |
restricts processing to a single member type of DATA or VIEW. If not specified, then the default is both types.
specifies SAS data file member type.
specifies SAS view member type.
Alias | MTYPE=, MT= |
Default | ALL |
specifies the current password of the data set.
specifies the current ALTER= password of the data set.
specifies the current READ= password of the data set.
specifies the current WRITE= password of the data set.