![]() Chapter Contents |
![]() Previous |
![]() Next |
| RENAME |
| Category: | Utility |
| Syntax | |
| Details | |
| Examples | |
| Example 1: Renaming Tables and Catalog Entries | |
| Example 2: Renaming an External File | |
| Example 3: Renaming a Directory | |
| Example 4: Renaming a Data Set Generation | |
| See Also | |
Syntax |
| sysrc=RENAME(old-name,new-name<,type<,description<,generation<,password>>>>); |
| 0 | successful |
0 |
not successful |
'ACCESS''CATALOG''DATA''VIEW''FILE'| Details |
| Examples |
Rename a SAS table from DATA1 to DATA2. Also rename a catalog entry from A.SCL to B.SCL.
rc1=rename('mylib.data1','data2');
rc2=rename('mylib.mycat.a.scl','b','catalog');
/* rename a file that is in another directory */
rc=rename('/local/u/testdir/first',
'/local/u/second','file');
/* rename a PC file */
rc=rename('d:\temp','d:\testfile','file');
rc=rename('/local/u/testdir/','/local/u/oldtestdir','file');
Rename a generation of the data set
work.one to
work.two where the password of
work.one#003 is "blahblah":
rc=rename('work.one','two','data',",'blahblah',3);
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.