Type : CREATION_INTERNE
The script does not read external data. It interacts with the local file system of the SAS session (WORK directory).
| 1 | DATA _null_; |
| 2 | LENGTH rc0 $ 32767 rc1 rc2 8; |
| 3 | lib = "myLibB"; |
| 4 | rc0 = DCREATE(lib, "%sysfunc(pathname(work))/"); |
| 5 | put rc0 = ; |
| 6 | rc1 = LIBNAME(lib, "%sysfunc(pathname(work))/" !! lib, "BASE"); |
| 7 | rc2 = LIBREF (lib); |
| 8 | IF rc2 NE 0 THEN |
| 9 | rc1 = LIBNAME(lib, "%sysfunc(pathname(work))", "BASE"); |
| 10 | RUN; |
| 1 | LIBNAME myLibB LIST; |