View previous topic :: View next topic |
Author |
Message |
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Fri May 25, 2018 3:33 pm Post subject: SAS - ERROR: WRITE ACCESS TO MEMBER IS DENIED |
|
|
Following SAS code is working fine -
Code: | LIBNAME mysasds 'DB.SAS.DATASET';
data mysasds.wtclub; |
But when I allocate the dataset in SAS JCL step then I get the error Quote: | ERROR: WRITE ACCESS TO MEMBER MYSASDS.WTCLUB.DATA IS DENIED.
|
JCL:
Code: | //SAS EXEC SAS
//SYSIN DD DISP=SHR,DSN=DB.SAS(MYSASPGM)
//SAS9.MYSASDS DD DISP=SHR,DSN=DB.SAS.DATASET
//SAS9.SASLIST DD SYSOUT=*
//SAS9.SASLOG DD SYSOUT=* |
SAS code:
Code: | data mysasds.wtclub;
|
Alternative SAS Code:
Code: | LIBNAME mysasds BASE;
data mysasds.wtclub; |
_________________ Regards,
Diba |
|
Back to top |
|
|
Dibakar Advanced
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon May 28, 2018 11:54 am Post subject: |
|
|
Looks like SAS need exclusive access to data library. Changing to DISP=OLD solved the problem. _________________ Regards,
Diba |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon May 28, 2018 12:13 pm Post subject: |
|
|
Dibakar,
Thanks for the update and the solution. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|