So, you should use the new variable name in the WHERE option. The RENAME option is applied before the WHERE option.Therefore, the KEEP and DROP options use the old variable name. The RENAME option is applied after the KEEP and DROP options.If you use the RENAME option together with the KEEP, DROP, or WHERE statement, keep the following in mind: So, you can use this option for both the input dataset (SET statement) as well as the output dataset (DATA statement). RENAME=( old-name-1=new-name-1 )Īs you can see, you can change the name of one or multiple variables with one RENAME option. How to Use the RENAME Option and KEEP Option Together The RENAME Optionīefore we show how to use the RENAME option, we start with the syntax of the RENAME option.Rename All Variables Starting with the Same Prefix.Rename All Variables by Adding a Prefix.Rename All Variables by Adding a Suffix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |