Type : CREATION_INTERNE
The script does not use any external data. It only manipulates library references and system paths based on the active SAS session.
| 1 | DATA _null_; |
| 2 | LENGTH rc0 $ 32767 rc1 rc2 8; |
| 3 | rc0 = DCREATE("dsSQLtmp", "%sysfunc(pathname(work))/" ); |
| 4 | rc1 = LIBNAME("dsSQL", "%sysfunc(pathname(work))/dsSQLtmp", "BASE"); |
| 5 | rc2 = LIBREF ("dsSQL" ); |
| 6 | IF rc2 NE 0 THEN |
| 7 | rc1 = LIBNAME("dsSQL", "%sysfunc(pathname(work))", "BASE"); |
| 8 | RUN; |
| 1 | /* list the details about the library in the log */ |
| 2 | LIBNAME dsSQL LIST; |
| 3 |